Commit adc37bd28a241566730bdd721ff24aab5b2c929d
1 parent
d5a89fd0
updated heading background colouring
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1335 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
21 additions
and
4 deletions
presentation/lookAndFeel/knowledgeTree/dashboardUI.inc
| ... | ... | @@ -21,7 +21,14 @@ require_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 21 | 21 | */ |
| 22 | 22 | function renderPendingCollaborationDocuments($aPendingDocumentList) { |
| 23 | 23 | global $default; |
| 24 | - $sToRender = "\t<tr align=\"left\" bgcolor=\"#996600\">\n"; | |
| 24 | + | |
| 25 | + if (count($aPendingDocumentList) > 0) { | |
| 26 | + $sBgColor = "#9D9D7F"; | |
| 27 | + } else { | |
| 28 | + $sBgColor = "#CECEBF"; | |
| 29 | + } | |
| 30 | + $sToRender = "\t<tr align=\"left\" bgcolor=\"$sBgColor\">\n"; | |
| 31 | + | |
| 25 | 32 | $sToRender .= "\t\t<th class=\"sectionHeading\" colspan=\"2\">Pending Documents</th>\n"; |
| 26 | 33 | $sToRender .= "\t</tr>\n"; |
| 27 | 34 | for ($i = 0; $i < count($aPendingDocumentList); $i++) { |
| ... | ... | @@ -40,7 +47,12 @@ function renderPendingCollaborationDocuments($aPendingDocumentList) { |
| 40 | 47 | */ |
| 41 | 48 | function renderCheckedOutDocuments($aCheckedOutDocumentList) { |
| 42 | 49 | global $default; |
| 43 | - $sToRender = "\t<tr align=\"left\" bgcolor=\"#996600\">\n"; | |
| 50 | + if (count($aCheckedOutDocumentList) > 0) { | |
| 51 | + $sBgColor = "#9D9D7F"; | |
| 52 | + } else { | |
| 53 | + $sBgColor = "#CECEBF"; | |
| 54 | + } | |
| 55 | + $sToRender = "\t<tr align=\"left\" bgcolor=\"$sBgColor\">\n"; | |
| 44 | 56 | $sToRender .= "\t\t<th class=\"sectionHeading\" colspan=\"2\">Checked Out Documents</th>\n"; |
| 45 | 57 | $sToRender .= "\t</tr>\n"; |
| 46 | 58 | |
| ... | ... | @@ -72,7 +84,12 @@ function renderCheckedOutDocuments($aCheckedOutDocumentList) { |
| 72 | 84 | */ |
| 73 | 85 | function renderSubscriptionAlerts($aSubscriptionAlertList) { |
| 74 | 86 | global $default; |
| 75 | - $sToRender = "\t<tr align=\"left\" bgcolor=\"#996600\">\n"; | |
| 87 | + if (count($aSubscriptionAlertList) > 0) { | |
| 88 | + $sBgColor = "#9D9D7F"; | |
| 89 | + } else { | |
| 90 | + $sBgColor = "#CECEBF"; | |
| 91 | + } | |
| 92 | + $sToRender = "\t<tr align=\"left\" bgcolor=\"$sBgColor\">\n"; | |
| 76 | 93 | $sToRender .= "\t\t<th class=\"sectionHeading\" colspan=\"2\">Subscription Alerts</th>\n"; |
| 77 | 94 | $sToRender .= "\t</tr>\n"; |
| 78 | 95 | for ($i = 0; $i < count($aSubscriptionAlertList); $i++) { |
| ... | ... | @@ -88,7 +105,7 @@ function renderSubscriptionAlerts($aSubscriptionAlertList) { |
| 88 | 105 | */ |
| 89 | 106 | function renderQuickLinks($aQuickLinks) { |
| 90 | 107 | global $default; |
| 91 | - $sToRender .= "\t<tr align=\"left\" bgcolor=\"#996600\">\n"; | |
| 108 | + $sToRender .= "\t<tr align=\"left\" bgcolor=\"#9D9D7F\">\n"; | |
| 92 | 109 | $sToRender .= "\t\t<th class=\"sectionHeading\">Quick Links</th>\n"; |
| 93 | 110 | $sToRender .= "\t</tr>\n"; |
| 94 | 111 | for ($i = 0; $i < count($aQuickLinks); $i++) { | ... | ... |