diff --git a/lib/visualpatterns/NavBar.inc b/lib/visualpatterns/NavBar.inc
index 2e5e0eb..b51343b 100644
--- a/lib/visualpatterns/NavBar.inc
+++ b/lib/visualpatterns/NavBar.inc
@@ -62,6 +62,15 @@ class NavBar {
$this->prefs = "$default->graphicsUrl/prefs/norm.gif";
$this->help = "$default->graphicsUrl/help/norm.gif";
$this->logout = "$default->graphicsUrl/logout/norm.gif";
+
+ $this->mdocsClass = "dash";
+ $this->homeClass = "dash";
+ $this->subscriptionsClass = "dash";
+ $this->asearchClass = "dash";
+ $this->adminClass = "dash";
+ $this->prefsClass = "dash";
+ $this->helpClass = "dash";
+ $this->logoutClass = "dash";
}
/**
@@ -86,45 +95,54 @@ class NavBar {
if($section == "General") {
$this->home = "$default->graphicsUrl/home/over.gif";
$this->nwColourBar = "$default->graphicsUrl/home/def.gif";
+ $this->homeClass = "dashactive";
}
if(($section == "Manage Documents") || ($section == "Manage Categories") || ($section == "Manage Document Types")) {
$this->mdocs = "$default->graphicsUrl/mdocs/over.gif";
$this->nwColourBar = "$default->graphicsUrl/mdocs/def.gif";
+ $this->mdocsClass = "dashactive";
}
if($section == "Discussion Threads" ) {
$this->mdocs = "$default->graphicsUrl/mdocs/over.gif";
$this->nwColourBar = "$default->graphicsUrl/mdocs/def.gif";
+ $this->mdocsClass = "dashactive";
}
if($section == "Subscriptions") {
$this->subscriptions = "$default->graphicsUrl/subscriptions/over.gif";
$this->nwColourBar = "$default->graphicsUrl/subscriptions/def.gif";
+ $this->subscriptionsClass = "dashactive";
}
if(($section == "Standard Search") || ($section == "Advanced Search")) {
$this->asearch = "$default->graphicsUrl/asearch/over.gif";
$this->nwColourBar = "$default->graphicsUrl/asearch/def.gif";
+ $this->asearchClass = "dashactive";
}
if(substr($section, -14) == "Administration") {
$this->admin = "$default->graphicsUrl/admin/over.gif";
$this->nwColourBar = "$default->graphicsUrl/admin/def.gif";
+ $this->adminClass = "dashactive";
}
if($section == "Preferences") {
$this->prefs = "$default->graphicsUrl/prefs/over.gif";
$this->nwColourBar = "$default->graphicsUrl/prefs/def.gif";
+ $this->prefsClass = "dashactive";
}
if($section == "Help") {
$this->help = "$default->graphicsUrl/help/over.gif";
$this->nwColourBar = "$default->graphicsUrl/help/def.gif";
+ $this->helpClass = "dashactive";
}
if($section == "Logout") {
$this->logout = "$default->graphicsUrl/logout/over.gif";
$this->nwColourBar = "$default->graphicsUrl/logout/def.gif";
+ $this->logoutClass = "dashactive";
}
}
@@ -168,24 +186,67 @@ class NavBar {
$this->help,
$this->logout);
+ $aTopMenuClasses = array($this->homeClass,
+ $this->mdocsClass,
+ $this->subscriptionsClass,
+ $this->asearchClass,
+ $this->adminClass,
+ $this->prefsClass,
+ $this->helpClass,
+ $this->logoutClass);
+
+ $aTopMenuWords = array(
+ _("Dashboard"),
+ _("Browse Collections"),
+ _("Subscriptions"),
+ _("Advanced Search"),
+ _("Admin"),
+ _("Preferences"),
+ _("Help"),
+ _("Logout"),
+ );
+
+ $aTopMenuColourClass = array(
+ "dashboard",
+ "browse",
+ "subscriptions",
+ "asearch",
+ "admin",
+ "prefs",
+ "help",
+ "logout",
+ );
+
// create array of menu colour images
$aColourMenuImages = array($colourHome,$colourmdocs,$coloursubscriptions,$colourasearch,$colouradmin,$colourprefs,$colourhelp,$colourlogout);
- //set up the links
- for ($i = 0; $i < count($aTopMenuLinks); $i++) {
- if (strcmp($aTopMenuLinks[$i], "help") == 0) {
- $sTopMenu .= "
| \n";
- $sColourMenu .= " | \n";
- } else {
- $sTopMenu .= "" . (strlen($aTopMenuLinks[$i]) > 0 ? "" : "") . " | \n";
- $sColourMenu .= "" . (strlen($aTopMenuLinks[$i]) > 0 ? "" : "") . " | \n";
+ if ($default->useTextButtons === false) {
+ //set up the links
+ for ($i = 0; $i < count($aTopMenuLinks); $i++) {
+ if (strcmp($aTopMenuLinks[$i], "help") == 0) {
+ $sTopMenu .= " | \n";
+ $sColourMenu .= " | \n";
+ } else {
+ $sTopMenu .= "" . (strlen($aTopMenuLinks[$i]) > 0 ? "" : "") . " | \n";
+ $sColourMenu .= "" . (strlen($aTopMenuLinks[$i]) > 0 ? "" : "") . " | \n";
+ }
+ }
+ } else {
+ for ($i = 0; $i < count($aTopMenuLinks); $i++) {
+ if (strcmp($aTopMenuLinks[$i], "help") == 0) {
+ $sTopMenu .= "" . strtoupper($aTopMenuWords[$i]) . " | \n";
+ $sColourMenu .= " | \n";
+ } else {
+ $sTopMenu .= "" . (strlen($aTopMenuLinks[$i]) > 0 ? "" : "") . "" . strtoupper($aTopMenuWords[$i]) . " | \n";
+ $sColourMenu .= "" . (strlen($aTopMenuLinks[$i]) > 0 ? "" : "") . " | \n";
+ }
}
}
$toRender = new PatternCustom;
// build the nav bar
- $bar = "\n";
+ $bar = "\n";
$bar .= "\t\n";
$bar .= "\t\t graphicsUrl/logo.jpg\" width=\"30\" height=\"36\"/> | \n";
$bar .= "\t
\n";
@@ -211,7 +272,8 @@ class NavBar {
}
$bar .= "\t\t\n";
$bar .= "\t\n";
- $bar .= "$sTopMenu \n";
+ /* $bar .= "$sTopMenu \n"; */
+ $bar .= "$sTopMenu \n";
$bar .= "$sColourMenu
| \n";
$bar .= " \n";
diff --git a/presentation/lookAndFeel/knowledgeTree/stylesheet.php b/presentation/lookAndFeel/knowledgeTree/stylesheet.php
index f6d45a3..17f8a7d 100644
--- a/presentation/lookAndFeel/knowledgeTree/stylesheet.php
+++ b/presentation/lookAndFeel/knowledgeTree/stylesheet.php
@@ -176,3 +176,120 @@ span.disabledbutton {
display: block;
margin-top: 4px;
}
+
+span.dash {
+ font-size: 7pt;
+ font-weight: 600;
+ /* height: 20px; */
+ /* border: 1px solid #FFF; */
+ border-left: 2px solid #FFF;
+ border-top: 2px solid #FFF;
+ background-color: #9D9D7F;
+ text-align: center;
+ white-space: nowrap;
+ display: block;
+ /* margin: 2px; */
+ /* padding: 1px; */
+ padding-left: 5px;
+ padding-right: 5px;
+ padding-top: 2px;
+ padding-bottom: 1px;
+ text-decoration: none;
+ font-style : normal;
+ color : #FFFFFF;
+}
+
+span.dash:Hover {
+ /* background-color: #EEE; */
+ text-decoration: none;
+}
+
+span.dashactive {
+ font-size: 7pt;
+ font-weight: 600;
+ /* height: 20px; */
+ /* border: 1px solid #FFF; */
+ border-left: 2px solid #FFF;
+ border-top: 2px solid #FFF;
+ background-color: #1A4383;
+ text-align: center;
+ white-space: nowrap;
+ display: block;
+ /* margin: 2px; */
+ padding-left: 5px;
+ padding-right: 5px;
+ padding-top: 2px;
+ padding-bottom: 1px;
+ text-decoration: none;
+ font-style : normal;
+ color : #FFFFFF;
+}
+
+span.dashactive:Hover {
+ /* background-color: #EEE; */
+ text-decoration: none;
+}
+
+td.colour_dashboard {
+ border-left: 2px solid #FFF;
+ border-top: 2px solid #FFF;
+ height: 10px;
+ width: 100%;
+ background-color: #007A3F;
+}
+
+td.colour_browse {
+ border-left: 2px solid #FFF;
+ border-top: 2px solid #FFF;
+ height: 10px;
+ width: 100%;
+ background-color: #57AFAE;
+}
+
+td.colour_subscriptions {
+ border-left: 2px solid #FFF;
+ border-top: 2px solid #FFF;
+ height: 10px;
+ width: 100%;
+ background-color: #FFC602;
+}
+
+td.colour_asearch {
+ border-left: 2px solid #FFF;
+ border-top: 2px solid #FFF;
+ height: 10px;
+ width: 100%;
+ background-color: #A1571B;
+}
+
+td.colour_admin {
+ border-left: 2px solid #FFF;
+ border-top: 2px solid #FFF;
+ height: 10px;
+ width: 100%;
+ background-color: #056DCE;
+}
+
+td.colour_prefs {
+ border-left: 2px solid #FFF;
+ border-top: 2px solid #FFF;
+ height: 10px;
+ width: 100%;
+ background-color: #F87308;
+}
+
+td.colour_help {
+ border-left: 2px solid #FFF;
+ border-top: 2px solid #FFF;
+ height: 10px;
+ width: 100%;
+ background-color: #80CE05;
+}
+
+td.colour_logout {
+ border-left: 2px solid #FFF;
+ border-top: 2px solid #FFF;
+ height: 10px;
+ width: 100%;
+ background-color: #CE0505;
+}
|
|