Commit 636b4e590a048204abb4558c250c026f4229dfe7
1 parent
41bdbe1e
Never been used.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4372 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
0 additions
and
93 deletions
presentation/lookAndFeel/knowledgeTree/help/emailHelp.php deleted
| 1 | -<?php | ||
| 2 | -/** | ||
| 3 | -* emailHelp.php | ||
| 4 | -* | ||
| 5 | -* Creates the Help page | ||
| 6 | -* Creates the form and functionaility for emailing bugs to the developers | ||
| 7 | -* | ||
| 8 | -* | ||
| 9 | -* @author Mukhtar Dharsey | ||
| 10 | -* @date 22 January 2003 | ||
| 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 | - // include the page template (with navbar) | ||
| 22 | - require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | ||
| 23 | - // when email button sent..send email | ||
| 24 | - if ($submit) { | ||
| 25 | - //set up body and link | ||
| 26 | - | ||
| 27 | - $hyperlink = $linkToBug; | ||
| 28 | - $body = $message . " <br>This bug can be found on this page: " . "<a href = ". $hyperlink .">". $hyperlink ."</a>"; | ||
| 29 | - | ||
| 30 | - //create email object | ||
| 31 | - $emailLink= new Email(); | ||
| 32 | - //send email | ||
| 33 | - $success = $emailLink->send($toEmail,$subject,$body); | ||
| 34 | - | ||
| 35 | - //if successful ..rerender the page | ||
| 36 | - if ($success) { | ||
| 37 | - $Center = "<br>Email Successfully Sent</br>"; | ||
| 38 | - $oPatternCustom = & new PatternCustom(); | ||
| 39 | - $oPatternCustom->setHtml($Center); | ||
| 40 | - $main->setCentralPayload($oPatternCustom); | ||
| 41 | - $main->render(); | ||
| 42 | - } else { | ||
| 43 | - $Center = "<br>Email Unsuccessful</br>"; | ||
| 44 | - $oPatternCustom = & new PatternCustom(); | ||
| 45 | - $oPatternCustom->setHtml($Center); | ||
| 46 | - $main->setCentralPayload($oPatternCustom); | ||
| 47 | - $main->render(); | ||
| 48 | - } | ||
| 49 | - } else { | ||
| 50 | - //create the necessary HTML for the emailing | ||
| 51 | - $Center = " | ||
| 52 | - <br> | ||
| 53 | - </br> | ||
| 54 | - <Center><b> Email the Development Team if you have found a Bug</b></center> | ||
| 55 | - <br> | ||
| 56 | - </br> | ||
| 57 | - <TABLE BORDER=\"0\" CELLSPACING=\"2\" CELLPADDING=\"2\"> | ||
| 58 | - <tr> | ||
| 59 | - <td>To Email: <TD WIDTH=\"100%\"><INPUT type=\"Text\" name=\"toEmail\" size=\"30\" value = \"dmsHelp@jamwarehouse.com \"></td></td> | ||
| 60 | - </tr> | ||
| 61 | - <tr> | ||
| 62 | - <td>Your Name: <TD WIDTH=\"80%\"><INPUT type=\"Text\" name=\"fromName\" size=\"30\"></td></td> | ||
| 63 | - </tr> | ||
| 64 | - <tr> | ||
| 65 | - <td>Your Email: <TD WIDTH=\"80%\"><INPUT type=\"Text\" name=\"fromEmail\" size=\"30\"></td></td> | ||
| 66 | - </tr> | ||
| 67 | - <tr> | ||
| 68 | - <td>Subject: <TD WIDTH=\"80%\"><INPUT type=\"Text\" name=\"subject\" size=\"30\" value = \"Bug Found: \" ></td></td> | ||
| 69 | - </tr> | ||
| 70 | - <tr> | ||
| 71 | - <td>Link to Page: <TD WIDTH=\"80%\"><INPUT type=\"Text\" name=\"linkToBug\" size=\"60\" ></td></td> | ||
| 72 | - </tr> | ||
| 73 | - <tr> | ||
| 74 | - <td>Bug Description: <TD WIDTH=\"80%\"><TEXTAREA NAME=\"message\" COLS=\"45\" ROWS=\"5\" WRAP=\"VIRTUAL\"></TEXTAREA></td></td> | ||
| 75 | - </td> | ||
| 76 | - </tr> | ||
| 77 | - <tr> | ||
| 78 | - | ||
| 79 | - </tr> | ||
| 80 | - </table> | ||
| 81 | - <center><INPUT type=\"Submit\" name=\"submit\" value=\"Send Email\"></center> | ||
| 82 | - "; | ||
| 83 | - | ||
| 84 | - $oPatternCustom = & new PatternCustom(); | ||
| 85 | - $oPatternCustom->setHtml($Center); | ||
| 86 | - $main->setCentralPayload($oPatternCustom); | ||
| 87 | - $main->setFormAction($_SERVER["PHP_SELF"]); | ||
| 88 | - $main->render(); | ||
| 89 | - | ||
| 90 | - } | ||
| 91 | -} | ||
| 92 | - | ||
| 93 | -?> | ||
| 94 | \ No newline at end of file | 0 | \ No newline at end of file |