Commit 6b10c15e28f84021ed0404beafa3d76193f1006c
1 parent
a2c29bf6
removed commented code
added back button when adding settings git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1966 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
17 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/archiving/archiveSettingsUI.inc
| @@ -15,22 +15,6 @@ require_once("../../../../../config/dmsDefaults.php"); | @@ -15,22 +15,6 @@ require_once("../../../../../config/dmsDefaults.php"); | ||
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | /** | 17 | /** |
| 18 | - * Display the heading | ||
| 19 | - * FIXME: need to refactor this | ||
| 20 | - */ | ||
| 21 | -/*function renderHeading($sHeading) { | ||
| 22 | - global $default; | ||
| 23 | - $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | ||
| 24 | - $sColor = $default->siteMap->getSectionColour($sSectionName, "th"); | ||
| 25 | - $sToRender = "<table border=\"0\" width=\"600\">\n"; | ||
| 26 | - $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\"><font color=\"ffffff\">$sHeading</font></th></tr>\n"; | ||
| 27 | - $sToRender .= "<tr/>\n"; | ||
| 28 | - $sToRender .= "<tr/>\n"; | ||
| 29 | - $sToRender .= "</table>\n"; | ||
| 30 | - return $sToRender; | ||
| 31 | -}*/ | ||
| 32 | - | ||
| 33 | -/** | ||
| 34 | * Displays an error message | 18 | * Displays an error message |
| 35 | */ | 19 | */ |
| 36 | function renderErrorMessage($sErrorMessage) { | 20 | function renderErrorMessage($sErrorMessage) { |
| @@ -208,7 +192,8 @@ function renderArchiveSettingsForm($oDocumentArchiving = null) { | @@ -208,7 +192,8 @@ function renderArchiveSettingsForm($oDocumentArchiving = null) { | ||
| 208 | $sToRender .= "<tr><td colspan=\"2\"><input type=\"image\" src=\"$default->graphicsUrl/widgets/update.gif\" border=\"0\">\n"; | 192 | $sToRender .= "<tr><td colspan=\"2\"><input type=\"image\" src=\"$default->graphicsUrl/widgets/update.gif\" border=\"0\">\n"; |
| 209 | $sToRender .= "<a href=\"$default->rootUrl/control.php?action=modifyDocumentArchiveSettings&fDocumentID=$fDocumentID&fDelete=1\"><img src=\"$default->graphicsUrl/widgets/remove.gif\" border=\"0\" /></a>\n"; | 193 | $sToRender .= "<a href=\"$default->rootUrl/control.php?action=modifyDocumentArchiveSettings&fDocumentID=$fDocumentID&fDelete=1\"><img src=\"$default->graphicsUrl/widgets/remove.gif\" border=\"0\" /></a>\n"; |
| 210 | } else { | 194 | } else { |
| 211 | - $sToRender .= "<tr><td colspan=\"2\"><input type=\"image\" src=\"$default->graphicsUrl/widgets/submit.gif\" border=\"0\">\n"; | 195 | + $sToRender .= "<tr><td colspan=\"2\"><input type=\"image\" src=\"$default->graphicsUrl/widgets/submit.gif\" border=\"0\">\n"; |
| 196 | + $sToRender .= "<a href=\"$default->rootUrl/control.php?action=addDocumentArchiveSettings&fDocumentID=$fDocumentID\"><img src=\"$default->graphicsUrl/widgets/back.gif\" border=\"0\"></a>\n"; | ||
| 212 | } | 197 | } |
| 213 | $sToRender .= "<a href=\"$default->rootUrl/control.php?action=viewDocument&fDocumentID=$fDocumentID\"><img src=\"$default->graphicsUrl/widgets/cancel.gif\" border=\"0\" /></a></td></tr>\n"; | 198 | $sToRender .= "<a href=\"$default->rootUrl/control.php?action=viewDocument&fDocumentID=$fDocumentID\"><img src=\"$default->graphicsUrl/widgets/cancel.gif\" border=\"0\" /></a></td></tr>\n"; |
| 214 | $sToRender .= "</table>"; | 199 | $sToRender .= "</table>"; |