Commit 16e502f32dbd9bf7d1154c94c7c1093b6e8d5f1f

Authored by michael
1 parent 234b4bfe

removed old unused page


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2281 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/emailLink.php deleted
1   -<?php
2   -/**
3   -* emailLink.php
4   -*
5   -* Creates the form and functionaility for emailing a link to some1
6   -*
7   -*
8   -* @author Mukhtar Dharsey
9   -* @date 22 January 2003
10   -*/
11   -
12   -
13   -require_once("../../../../config/dmsDefaults.php");
14   -
15   -global $default;
16   -require_once("$default->fileSystemRoot/lib/email/Email.inc");
17   -
18   -
19   -if(checkSession())
20   -{
21   -
22   -
23   -// include the page template (with navbar)
24   -require_once("$default->fileSystemRoot/presentation/webPageTemplate.inc");
25   - // when email button sent..send email
26   -if ($submit)
27   -{
28   - //set up body and link
29   -
30   - $body = "<b> Here's a interesting link: </b>";
31   - $docID = $fDocumentID;
32   - //link has to be changed to respective server where everything is stored.
33   - $link = $default->owl_url . "control.php?action=viewDocument&fDocumentID=" . $docID;
34   -
35   - $hyperlink = "<a href = ". $link .">" . $link. "</a>";
36   -
37   - //create email object
38   - $emailLink= new Email();
39   - //send email
40   - $success = $emailLink->sendHyperLink($fromEmail,$fromName,$toEmail,$subject,$body, $hyperlink);
41   -
42   - //if successful ..rerender the page
43   - if($success == True)
44   - {
45   - $Center = "<br>Email Successfully Sent</br>";
46   - $oPatternCustom = & new PatternCustom();
47   - $oPatternCustom->setHtml($Center);
48   - $main->setCentralPayload($oPatternCustom);
49   - $main->render();
50   - }
51   - Else
52   - {
53   - $Center = "<br>Email Unsuccessful</br>";
54   - $oPatternCustom = & new PatternCustom();
55   - $oPatternCustom->setHtml($Center);
56   - $main->setCentralPayload($oPatternCustom);
57   - $main->render();
58   - }
59   -
60   -
61   -
62   -}
63   -//create the necessary HTML for the emailing
64   -$Center = "
65   - <br>
66   - </br>
67   - <TABLE BORDER=\"0\" CELLSPACING=\"2\" CELLPADDING=\"2\">
68   - <tr>
69   - <td>To Email: <TD WIDTH=\"100%\"><INPUT type=\"Text\" name=\"toEmail\" size=\"30\"></td></td>
70   - </tr>
71   - <tr>
72   - <td>Your Name: <TD WIDTH=\"80%\"><INPUT type=\"Text\" name=\"fromName\" size=\"30\"></td></td>
73   - </tr>
74   - <tr>
75   - <td>Your Email: <TD WIDTH=\"80%\"><INPUT type=\"Text\" name=\"fromEmail\" size=\"30\"></td></td>
76   - </tr>
77   - <tr>
78   - <td>Subject: <TD WIDTH=\"80%\"><INPUT type=\"Text\" name=\"subject\" size=\"30\"></td></td>
79   - </tr>
80   - <tr>
81   - <td>
82   - </td>
83   - </tr>
84   - <tr>
85   - <td><center><TD WIDTH=\"80%\"><INPUT type=\"Submit\" name=\"submit\" value=\"Send Email\"></center></td></td>
86   - </tr>
87   - </table>
88   - ";
89   -
90   -$oPatternCustom = & new PatternCustom();
91   -$oPatternCustom->setHtml($Center);
92   -$main->setCentralPayload($oPatternCustom);
93   -$main->setFormAction($_SERVER["PHP_SELF"]);
94   -$main->render();
95   -
96   -
97   -
98   -
99   -}
100   -
101   -?>
102 0 \ No newline at end of file