From adc37bd28a241566730bdd721ff24aab5b2c929d Mon Sep 17 00:00:00 2001 From: Michael Joseph Date: Tue, 4 Mar 2003 10:40:48 +0000 Subject: [PATCH] updated heading background colouring --- presentation/lookAndFeel/knowledgeTree/dashboardUI.inc | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/dashboardUI.inc b/presentation/lookAndFeel/knowledgeTree/dashboardUI.inc index 99dba9f..ec57579 100644 --- a/presentation/lookAndFeel/knowledgeTree/dashboardUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/dashboardUI.inc @@ -21,7 +21,14 @@ require_once("$default->fileSystemRoot/lib/users/User.inc"); */ function renderPendingCollaborationDocuments($aPendingDocumentList) { global $default; - $sToRender = "\t\n"; + + if (count($aPendingDocumentList) > 0) { + $sBgColor = "#9D9D7F"; + } else { + $sBgColor = "#CECEBF"; + } + $sToRender = "\t\n"; + $sToRender .= "\t\tPending Documents\n"; $sToRender .= "\t\n"; for ($i = 0; $i < count($aPendingDocumentList); $i++) { @@ -40,7 +47,12 @@ function renderPendingCollaborationDocuments($aPendingDocumentList) { */ function renderCheckedOutDocuments($aCheckedOutDocumentList) { global $default; - $sToRender = "\t\n"; + if (count($aCheckedOutDocumentList) > 0) { + $sBgColor = "#9D9D7F"; + } else { + $sBgColor = "#CECEBF"; + } + $sToRender = "\t\n"; $sToRender .= "\t\tChecked Out Documents\n"; $sToRender .= "\t\n"; @@ -72,7 +84,12 @@ function renderCheckedOutDocuments($aCheckedOutDocumentList) { */ function renderSubscriptionAlerts($aSubscriptionAlertList) { global $default; - $sToRender = "\t\n"; + if (count($aSubscriptionAlertList) > 0) { + $sBgColor = "#9D9D7F"; + } else { + $sBgColor = "#CECEBF"; + } + $sToRender = "\t\n"; $sToRender .= "\t\tSubscription Alerts\n"; $sToRender .= "\t\n"; for ($i = 0; $i < count($aSubscriptionAlertList); $i++) { @@ -88,7 +105,7 @@ function renderSubscriptionAlerts($aSubscriptionAlertList) { */ function renderQuickLinks($aQuickLinks) { global $default; - $sToRender .= "\t\n"; + $sToRender .= "\t\n"; $sToRender .= "\t\tQuick Links\n"; $sToRender .= "\t\n"; for ($i = 0; $i < count($aQuickLinks); $i++) { -- libgit2 0.21.4