Commit 3993303f64298c231f914c24faf23295068bcca2
1 parent
fdb5dc12
added appropriate background colour for archived restoration requests section
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2440 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
15 additions
and
18 deletions
presentation/lookAndFeel/knowledgeTree/dashboardUI.inc
| @@ -40,32 +40,29 @@ function renderPendingWebDocuments($aPendingDocumentList) { | @@ -40,32 +40,29 @@ function renderPendingWebDocuments($aPendingDocumentList) { | ||
| 40 | } | 40 | } |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | - | ||
| 44 | function renderRestorationRequests($aRestorationRequests) { | 43 | function renderRestorationRequests($aRestorationRequests) { |
| 45 | global $default; | 44 | global $default; |
| 46 | 45 | ||
| 47 | if (count($aRestorationRequests) > 0) { | 46 | if (count($aRestorationRequests) > 0) { |
| 48 | $sBgColor = "#9D9D7F"; | 47 | $sBgColor = "#9D9D7F"; |
| 49 | - $sToRender = "\t\t\t<tr align=\"left\" bgcolor=\"$sBgColor\">\n"; | ||
| 50 | - | ||
| 51 | - $sToRender .= "\t\t\t\t<th class=\"sectionHeading\" colspan=\"2\"><font color=\"ffffff\">Archived Document Restoration Requests</font></th>\n"; | ||
| 52 | - $sToRender .= "\t\t\t</tr>\n"; | ||
| 53 | - for ($i = 0; $i < count($aRestorationRequests); $i++) { | ||
| 54 | - $oDocument = Document::get($aRestorationRequests[$i]->getDocumentID()); | ||
| 55 | - if ($oDocument) { | ||
| 56 | - $sToRender .= "\t\t\t<tr>\n"; | ||
| 57 | - $sToRender .= "\t\t\t\t<td colspan=\"2\">" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), "<img src=\"$default->graphicsUrl/widgets/dstatus.gif\" border=\"0\"/> " . $oDocument->getDisplayPath()) . "</td>\n"; | ||
| 58 | - $sToRender .= "\t\t\t</tr>\n"; | ||
| 59 | - } | ||
| 60 | - } | ||
| 61 | - return $sToRender; | ||
| 62 | } else { | 48 | } else { |
| 63 | - return ""; | ||
| 64 | - } | 49 | + $sBgColor = "#CECEBF"; |
| 50 | + } | ||
| 51 | + $sToRender = "\t\t\t<tr align=\"left\" bgcolor=\"$sBgColor\">\n"; | ||
| 52 | + | ||
| 53 | + $sToRender .= "\t\t\t\t<th class=\"sectionHeading\" colspan=\"2\"><font color=\"ffffff\">Archived Document Restoration Requests</font></th>\n"; | ||
| 54 | + $sToRender .= "\t\t\t</tr>\n"; | ||
| 55 | + for ($i = 0; $i < count($aRestorationRequests); $i++) { | ||
| 56 | + $oDocument = Document::get($aRestorationRequests[$i]->getDocumentID()); | ||
| 57 | + if ($oDocument) { | ||
| 58 | + $sToRender .= "\t\t\t<tr>\n"; | ||
| 59 | + $sToRender .= "\t\t\t\t<td colspan=\"2\">" . generateControllerLink("viewDocument", "fDocumentID=" . $oDocument->getID(), "<img src=\"$default->graphicsUrl/widgets/dstatus.gif\" border=\"0\"/> " . $oDocument->getDisplayPath()) . "</td>\n"; | ||
| 60 | + $sToRender .= "\t\t\t</tr>\n"; | ||
| 61 | + } | ||
| 62 | + } | ||
| 63 | + return $sToRender; | ||
| 65 | } | 64 | } |
| 66 | 65 | ||
| 67 | - | ||
| 68 | - | ||
| 69 | /** | 66 | /** |
| 70 | * Displays the pending collaboration documents | 67 | * Displays the pending collaboration documents |
| 71 | * | 68 | * |