Commit adc37bd28a241566730bdd721ff24aab5b2c929d

Authored by Michael Joseph
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
presentation/lookAndFeel/knowledgeTree/dashboardUI.inc
@@ -21,7 +21,14 @@ require_once("$default->fileSystemRoot/lib/users/User.inc"); @@ -21,7 +21,14 @@ require_once("$default->fileSystemRoot/lib/users/User.inc");
21 */ 21 */
22 function renderPendingCollaborationDocuments($aPendingDocumentList) { 22 function renderPendingCollaborationDocuments($aPendingDocumentList) {
23 global $default; 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 $sToRender .= "\t\t<th class=\"sectionHeading\" colspan=\"2\">Pending Documents</th>\n"; 32 $sToRender .= "\t\t<th class=\"sectionHeading\" colspan=\"2\">Pending Documents</th>\n";
26 $sToRender .= "\t</tr>\n"; 33 $sToRender .= "\t</tr>\n";
27 for ($i = 0; $i < count($aPendingDocumentList); $i++) { 34 for ($i = 0; $i < count($aPendingDocumentList); $i++) {
@@ -40,7 +47,12 @@ function renderPendingCollaborationDocuments($aPendingDocumentList) { @@ -40,7 +47,12 @@ function renderPendingCollaborationDocuments($aPendingDocumentList) {
40 */ 47 */
41 function renderCheckedOutDocuments($aCheckedOutDocumentList) { 48 function renderCheckedOutDocuments($aCheckedOutDocumentList) {
42 global $default; 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 $sToRender .= "\t\t<th class=\"sectionHeading\" colspan=\"2\">Checked Out Documents</th>\n"; 56 $sToRender .= "\t\t<th class=\"sectionHeading\" colspan=\"2\">Checked Out Documents</th>\n";
45 $sToRender .= "\t</tr>\n"; 57 $sToRender .= "\t</tr>\n";
46 58
@@ -72,7 +84,12 @@ function renderCheckedOutDocuments($aCheckedOutDocumentList) { @@ -72,7 +84,12 @@ function renderCheckedOutDocuments($aCheckedOutDocumentList) {
72 */ 84 */
73 function renderSubscriptionAlerts($aSubscriptionAlertList) { 85 function renderSubscriptionAlerts($aSubscriptionAlertList) {
74 global $default; 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 $sToRender .= "\t\t<th class=\"sectionHeading\" colspan=\"2\">Subscription Alerts</th>\n"; 93 $sToRender .= "\t\t<th class=\"sectionHeading\" colspan=\"2\">Subscription Alerts</th>\n";
77 $sToRender .= "\t</tr>\n"; 94 $sToRender .= "\t</tr>\n";
78 for ($i = 0; $i < count($aSubscriptionAlertList); $i++) { 95 for ($i = 0; $i < count($aSubscriptionAlertList); $i++) {
@@ -88,7 +105,7 @@ function renderSubscriptionAlerts($aSubscriptionAlertList) { @@ -88,7 +105,7 @@ function renderSubscriptionAlerts($aSubscriptionAlertList) {
88 */ 105 */
89 function renderQuickLinks($aQuickLinks) { 106 function renderQuickLinks($aQuickLinks) {
90 global $default; 107 global $default;
91 - $sToRender .= "\t<tr align=\"left\" bgcolor=\"#996600\">\n"; 108 + $sToRender .= "\t<tr align=\"left\" bgcolor=\"#9D9D7F\">\n";
92 $sToRender .= "\t\t<th class=\"sectionHeading\">Quick Links</th>\n"; 109 $sToRender .= "\t\t<th class=\"sectionHeading\">Quick Links</th>\n";
93 $sToRender .= "\t</tr>\n"; 110 $sToRender .= "\t</tr>\n";
94 for ($i = 0; $i < count($aQuickLinks); $i++) { 111 for ($i = 0; $i < count($aQuickLinks); $i++) {