Commit 6967784ba32a3712a4172ec5e3daf947ca2456b1

Authored by Michael Joseph
1 parent 7b66b163

added heading


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1383 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
... ... @@ -13,6 +13,18 @@
13 13 * @package presentation.lookAndFeel.knowledgeTree.documentManager
14 14 */
15 15  
  16 +function renderHeading() {
  17 + global $default;
  18 + $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
  19 + $sColor = $default->siteMap->getSectionColour($sSectionName, "th");
  20 + $sToRender = "<table border=\"0\" width=\"100%\">\n";
  21 + $sToRender .= "<tr align=\"left\"><th class=\"sectionHeading\" bgcolor=\"$sColor\">Document Detail</th></tr>\n";
  22 + $sToRender .= "<tr/>\n";
  23 + $sToRender .= "<tr/>\n";
  24 + $sToRender .= "</table>\n";
  25 + return $sToRender;
  26 +}
  27 +
16 28 function renderDocumentPath($oDocument) {
17 29 global $default;
18 30 $sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
... ... @@ -124,7 +136,7 @@ function renderNonEditableDocumentRouting($oDocument) {
124 136 function getEditPage($oDocument) {
125 137 global $default;
126 138 $iDocumentID = $oDocument->getID();
127   - $sToRender = renderDocumentPath($oDocument) . "\n<br>\n";
  139 + $sToRender = renderHeading() . renderDocumentPath($oDocument) . "\n<br>\n";
128 140 $sToRender .= "<table border = 0>\n";
129 141 $sToRender .= "<tr>\n";
130 142 $sToRender .= "<td>\n";
... ... @@ -215,7 +227,7 @@ function getEditPage($oDocument) {
215 227 function getViewPage($oDocument) {
216 228 global $default;
217 229 $iDocumentID = $oDocument->getID();
218   - $sToRender = renderDocumentPath($oDocument) . "\n<br>\n";
  230 + $sToRender = renderHeading() . renderDocumentPath($oDocument) . "\n<br>\n";
219 231 $sToRender .= "<table border = 0>\n";
220 232 $sToRender .= "<tr>\n";
221 233 $sToRender .= "<td>\n";
... ... @@ -276,7 +288,7 @@ function getViewPage($oDocument) {
276 288 */
277 289 function getCheckOutEditPage($oDocument, $bCheckedOut = false) {
278 290 global $default;
279   - $sToRender = renderDocumentPath($oDocument) . "\n<br>\n";
  291 + $sToRender = renderHeading() . renderDocumentPath($oDocument) . "\n<br>\n";
280 292 $sToRender .= "<table border = 0>\n";
281 293 $sToRender .= "<tr>\n";
282 294 $sToRender .= "<td>\n";
... ... @@ -324,7 +336,7 @@ function getCheckOutEditPage($oDocument, $bCheckedOut = false) {
324 336 */
325 337 function getCheckInEditPage($oDocument) {
326 338 global $default;
327   - $sToRender = renderDocumentPath($oDocument) . "\n<br>\n";
  339 + $sToRender = renderHeading() . renderDocumentPath($oDocument) . "\n<br>\n";
328 340 $sToRender .= "<table border = 0>\n";
329 341 $sToRender .= "<tr>\n";
330 342 $sToRender .= "<td>\n";
... ...