Commit 5216c1b0c2dbc8a0495283ce2934cc75df1d324d

Authored by rob
1 parent 2fc5063d

Fixed syntax on email message


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2109 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/createDependantDocumentBL.php
... ... @@ -38,7 +38,7 @@ if (checkSession()) {
38 38  
39 39  
40 40 $sBody = $oUser->getName() . ", a step in the document collaboration process requires you to create a new document. " .
41   - generateLink("/control.php","action=dashboard","Log onto KnowledgeTree") . " and select the relevant link under the 'Dependant Documents' heading on your dashboard when you are ready upload it.";
  41 + generateLink("/control.php","action=dashboard","Log onto KnowledgeTree") . " and select the relevant link under the 'Dependant Documents' heading on your dashboard when you are ready to upload it. ";
42 42 //if we have a template document
43 43 if (!($oTemplateDocument === false)) {
44 44 $sBody .= "The document entitled " . generateLink("/control.php", "action=viewDocument&fDocumentID=" . $oTemplateDocument->getID(), $oTemplateDocument->getName()) . " " .
... ... @@ -56,7 +56,7 @@ if (checkSession()) {
56 56 $oDocument = Document::get($fDocumentID);
57 57  
58 58 $oPatternCustom = & new PatternCustom();
59   - $oPatternCustom->setHtml(getAddPage($oDocument->getFolderID(), $fDocumentID, $fUnitID, $fUserID, $fDocumentTitle, $fTemplateDocument));
  59 + $oPatternCustom->setHtml(getPage($oDocument->getFolderID(), $fDocumentID, $fUnitID, $fUserID, $fDocumentTitle, $fTemplateDocument));
60 60 $main->setCentralPayload($oPatternCustom);
61 61 $main->setFormAction($_SERVER["PHP_SELF"] . "?fDocumentID=$fDocumentID&fForStore=1");
62 62 $main->setErrorMessage("An error occured whilst trying to create the dependant document");
... ... @@ -69,7 +69,7 @@ if (checkSession()) {
69 69 $oDocument = Document::get($fDocumentID);
70 70  
71 71 $oPatternCustom = & new PatternCustom();
72   - $oPatternCustom->setHtml(getAddPage($oDocument->getFolderID(), $fDocumentID, $fUnitID, $fUserID, $fDocumentTitle, $fTemplateDocument));
  72 + $oPatternCustom->setHtml(getPage($oDocument->getFolderID(), $fDocumentID, $fUnitID, $fUserID, $fDocumentTitle, $fTemplateDocument));
73 73 $main->setCentralPayload($oPatternCustom);
74 74 $main->setFormAction($_SERVER["PHP_SELF"] . "?fDocumentID=$fDocumentID&fForStore=1");
75 75 $main->render();
... ...
presentation/lookAndFeel/knowledgeTree/documentmanagement/createDependantDocumentUI.inc
... ... @@ -9,7 +9,7 @@ function getFolderPath($iFolderID) {
9 9 return "<table border=\"0\" width = 100%><tr><td bgcolor=\"$sTDBGColour\">$sFolderPathLink</td></tr></table>\n";
10 10 }
11 11  
12   -function getAddPage($iFolderID, $iDocumentID, $iUnitID, $iUserID, $sDocumentTitle, $sTemplateDocument) {
  12 +function getPage($iFolderID, $iDocumentID, $iUnitID, $iUserID, $sDocumentTitle, $sTemplateDocument) {
13 13 global $default;
14 14 $sToRender = renderHeading("Create a new dependant document");
15 15 $sToRender .= getFolderPath($iFolderID);
... ... @@ -70,7 +70,7 @@ function getUnitDropDown($iDocumentID, $iUnitID) {
70 70 }
71 71 $oPatternListBox = & new PatternListBox($default->owl_units_table, "Name", "id", "fUnitID");
72 72 $oPatternListBox->setPostBackOnChange(true);
73   - $oPatternListBox->setOnChangeAction("setActionAndSubmit('" . $_SERVER["PHP_SELF"] . "?fDocumentID=$iDocumentID&fForAdd=1')");
  73 + $oPatternListBox->setOnChangeAction("setActionAndSubmit('" . $_SERVER["PHP_SELF"] . "?fDocumentID=$iDocumentID')");
74 74 if (isset($iUnitID)) {
75 75 $oPatternListBox->setSelectedValue($iUnitID);
76 76 }
... ...