Commit 58c4862adb6fa28eb801d3cf3821b7c10576e223

Authored by michael
1 parent f909191c

prettified html content of email link mail


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2294 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/emailBL.php
@@ -34,18 +34,20 @@ if (checkSession()) { @@ -34,18 +34,20 @@ if (checkSession()) {
34 //if the to address is valid, send the mail 34 //if the to address is valid, send the mail
35 global $default; 35 global $default;
36 $oUser = User::get($_SESSION["userID"]); 36 $oUser = User::get($_SESSION["userID"]);
  37 + $sMessage = "<font face=\"arial\" size=\"2\">";
37 if (isset($fToName)) { 38 if (isset($fToName)) {
38 - $sMessage = "$fToName,<br><br>Your colleague, " . $oUser->getName() . ", wishes you to view the document entitled '" . $oDocument->getName() . "'.\n Click on the hyperlink below to view it"; 39 + $sMessage .= "$fToName,<br><br>Your colleague, " . $oUser->getName() . ", wishes you to view the document entitled '" . $oDocument->getName() . "'.\n Click on the hyperlink below to view it";
39 } else { 40 } else {
40 - $sMessage = "Your colleague, " . $oUser->getName() . ", wishes you to view the document entitled '" . $oDocument->getName() . "'.\n Click on the hyperlink below to view it"; 41 + $sMessage .= "Your colleague, " . $oUser->getName() . ", wishes you to view the document entitled '" . $oDocument->getName() . "'.\n Click on the hyperlink below to view it.";
41 } 42 }
42 // add the link to the document to the mail 43 // add the link to the document to the mail
43 - $sMessage .= ' ' . generateControllerLink("viewDocument", "fDocumentID=$fDocumentID", $oDocument->getName()); 44 + $sMessage .= "<br>" . generateControllerLink("viewDocument", "fDocumentID=$fDocumentID", $oDocument->getName());
44 45
45 // add optional comment 46 // add optional comment
46 if (strlen($fComment) > 0) { 47 if (strlen($fComment) > 0) {
47 - $sMessage .= "<br><br>$fComment"; 48 + $sMessage .= "<br><br>Comments:<br>$fComment";
48 } 49 }
  50 + $sMessage .= "</font>";
49 51
50 $sTitle = "Link: " . $oDocument->getName() . " from " . $oUser->getName(); 52 $sTitle = "Link: " . $oDocument->getName() . " from " . $oUser->getName();
51 53