diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/emailLink.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/emailLink.php deleted file mode 100644 index 8c54e5f..0000000 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/emailLink.php +++ /dev/null @@ -1,101 +0,0 @@ -fileSystemRoot/lib/email/Email.inc"); - - -if(checkSession()) -{ - - -// include the page template (with navbar) -require_once("$default->fileSystemRoot/presentation/webPageTemplate.inc"); - // when email button sent..send email -if ($submit) -{ - //set up body and link - - $body = " Here's a interesting link: "; - $docID = $fDocumentID; - //link has to be changed to respective server where everything is stored. - $link = $default->owl_url . "control.php?action=viewDocument&fDocumentID=" . $docID; - - $hyperlink = "" . $link. ""; - - //create email object - $emailLink= new Email(); - //send email - $success = $emailLink->sendHyperLink($fromEmail,$fromName,$toEmail,$subject,$body, $hyperlink); - - //if successful ..rerender the page - if($success == True) - { - $Center = "
Email Successfully Sent
"; - $oPatternCustom = & new PatternCustom(); - $oPatternCustom->setHtml($Center); - $main->setCentralPayload($oPatternCustom); - $main->render(); - } - Else - { - $Center = "
Email Unsuccessful
"; - $oPatternCustom = & new PatternCustom(); - $oPatternCustom->setHtml($Center); - $main->setCentralPayload($oPatternCustom); - $main->render(); - } - - - -} -//create the necessary HTML for the emailing -$Center = " -
-
- - - - - - - - - - - - - - - - - - - -
To Email:
Your Name:
Your Email:
Subject:
-
- "; - -$oPatternCustom = & new PatternCustom(); -$oPatternCustom->setHtml($Center); -$main->setCentralPayload($oPatternCustom); -$main->setFormAction($_SERVER["PHP_SELF"]); -$main->render(); - - - - -} - -?> \ No newline at end of file