Commit 75ad447f602d1843df78bb0ee8bf908533a7b51d
1 parent
36dff29a
Fixed syntax on email message
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2109 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
5 additions
and
5 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/createDependantDocumentBL.php
| @@ -38,7 +38,7 @@ if (checkSession()) { | @@ -38,7 +38,7 @@ if (checkSession()) { | ||
| 38 | 38 | ||
| 39 | 39 | ||
| 40 | $sBody = $oUser->getName() . ", a step in the document collaboration process requires you to create a new document. " . | 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 | //if we have a template document | 42 | //if we have a template document |
| 43 | if (!($oTemplateDocument === false)) { | 43 | if (!($oTemplateDocument === false)) { |
| 44 | $sBody .= "The document entitled " . generateLink("/control.php", "action=viewDocument&fDocumentID=" . $oTemplateDocument->getID(), $oTemplateDocument->getName()) . " " . | 44 | $sBody .= "The document entitled " . generateLink("/control.php", "action=viewDocument&fDocumentID=" . $oTemplateDocument->getID(), $oTemplateDocument->getName()) . " " . |
| @@ -56,7 +56,7 @@ if (checkSession()) { | @@ -56,7 +56,7 @@ if (checkSession()) { | ||
| 56 | $oDocument = Document::get($fDocumentID); | 56 | $oDocument = Document::get($fDocumentID); |
| 57 | 57 | ||
| 58 | $oPatternCustom = & new PatternCustom(); | 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 | $main->setCentralPayload($oPatternCustom); | 60 | $main->setCentralPayload($oPatternCustom); |
| 61 | $main->setFormAction($_SERVER["PHP_SELF"] . "?fDocumentID=$fDocumentID&fForStore=1"); | 61 | $main->setFormAction($_SERVER["PHP_SELF"] . "?fDocumentID=$fDocumentID&fForStore=1"); |
| 62 | $main->setErrorMessage("An error occured whilst trying to create the dependant document"); | 62 | $main->setErrorMessage("An error occured whilst trying to create the dependant document"); |
| @@ -69,7 +69,7 @@ if (checkSession()) { | @@ -69,7 +69,7 @@ if (checkSession()) { | ||
| 69 | $oDocument = Document::get($fDocumentID); | 69 | $oDocument = Document::get($fDocumentID); |
| 70 | 70 | ||
| 71 | $oPatternCustom = & new PatternCustom(); | 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 | $main->setCentralPayload($oPatternCustom); | 73 | $main->setCentralPayload($oPatternCustom); |
| 74 | $main->setFormAction($_SERVER["PHP_SELF"] . "?fDocumentID=$fDocumentID&fForStore=1"); | 74 | $main->setFormAction($_SERVER["PHP_SELF"] . "?fDocumentID=$fDocumentID&fForStore=1"); |
| 75 | $main->render(); | 75 | $main->render(); |
presentation/lookAndFeel/knowledgeTree/documentmanagement/createDependantDocumentUI.inc
| @@ -9,7 +9,7 @@ function getFolderPath($iFolderID) { | @@ -9,7 +9,7 @@ function getFolderPath($iFolderID) { | ||
| 9 | return "<table border=\"0\" width = 100%><tr><td bgcolor=\"$sTDBGColour\">$sFolderPathLink</td></tr></table>\n"; | 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 | global $default; | 13 | global $default; |
| 14 | $sToRender = renderHeading("Create a new dependant document"); | 14 | $sToRender = renderHeading("Create a new dependant document"); |
| 15 | $sToRender .= getFolderPath($iFolderID); | 15 | $sToRender .= getFolderPath($iFolderID); |
| @@ -70,7 +70,7 @@ function getUnitDropDown($iDocumentID, $iUnitID) { | @@ -70,7 +70,7 @@ function getUnitDropDown($iDocumentID, $iUnitID) { | ||
| 70 | } | 70 | } |
| 71 | $oPatternListBox = & new PatternListBox($default->owl_units_table, "Name", "id", "fUnitID"); | 71 | $oPatternListBox = & new PatternListBox($default->owl_units_table, "Name", "id", "fUnitID"); |
| 72 | $oPatternListBox->setPostBackOnChange(true); | 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 | if (isset($iUnitID)) { | 74 | if (isset($iUnitID)) { |
| 75 | $oPatternListBox->setSelectedValue($iUnitID); | 75 | $oPatternListBox->setSelectedValue($iUnitID); |
| 76 | } | 76 | } |