From 3cbe4c45a9072a312e632cac5b277a7c48b4d37b Mon Sep 17 00:00:00 2001 From: ceb Date: Fri, 8 Nov 2002 22:35:44 +0000 Subject: [PATCH] moved justweb to use xslt --- phpgwapi/templates/justweb/css/phpgw.css | 37 ++++- phpgwapi/templates/justweb/phpgw.xsl | 180 +++++++++++++++++++++++ phpgwapi/templates/justweb/scripts.js | 51 +++++++ 3 files changed, 266 insertions(+), 2 deletions(-) create mode 100644 phpgwapi/templates/justweb/phpgw.xsl create mode 100644 phpgwapi/templates/justweb/scripts.js diff --git a/phpgwapi/templates/justweb/css/phpgw.css b/phpgwapi/templates/justweb/css/phpgw.css index 99e70bc041..ff4277eaea 100644 --- a/phpgwapi/templates/justweb/css/phpgw.css +++ b/phpgwapi/templates/justweb/css/phpgw.css @@ -1,7 +1,7 @@ body,p,td,th,table,input,form,option { - font-family: Verdana,Arial,Helvetica,sans-serif; - font-size: 10pt; + font-family: Georgia,Times New Roman,Times,serif; + font-size: 11pt; font-style: normal; font-weight: normal; line-height: normal; @@ -33,6 +33,39 @@ a.th,a.th_text font-weight: bold; } +.top_top +{ + background: url(../images/menu_filler.png); +} + +.top +{ + background: url(../images/blue_filler.png); + color: #FFFFFF; +} + +.menubar +{ + background: url(../images/menu_bar_bg.png); + color: #FFFFFF; +} + +.menubar_left +{ + background: url(../images/menu_bar_left.png); +} + +.menubar_right +{ + background: url(../images/menu_bar_right.png); +} + +.left +{ + background: url(../images/side_bar_bg.png); +} + + table.portal { width: 100%; diff --git a/phpgwapi/templates/justweb/phpgw.xsl b/phpgwapi/templates/justweb/phpgw.xsl new file mode 100644 index 0000000000..d9cb75001a --- /dev/null +++ b/phpgwapi/templates/justweb/phpgw.xsl @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="website_title"/> + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
phpGroupWare
+
+ + + + + + +
+
+ + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+
+ + + + window.status=' + + '; return true; + + phpGroupWare + + + +
+ + +
+ + + + + + + + + + {$title} + + + diff --git a/phpgwapi/templates/justweb/scripts.js b/phpgwapi/templates/justweb/scripts.js new file mode 100644 index 0000000000..406bdc03cc --- /dev/null +++ b/phpgwapi/templates/justweb/scripts.js @@ -0,0 +1,51 @@ + + var myNavBar1 = new NavBar(0); + var dhtmlMenu; + //define menu items (first parameter of NavBarMenu specifies main category width, second specifies sub category width in pixels) + //add more menus simply by adding more "blocks" of same code below + + dhtmlMenu = new NavBarMenu(60, 120); + dhtmlMenu.addItem(new NavBarMenuItem("Home", "{home}")); + myNavBar1.addMenu(dhtmlMenu); + + dhtmlMenu = new NavBarMenu(60, 140); + dhtmlMenu.addItem(new NavBarMenuItem("Edit", "")); + dhtmlMenu.addItem(new NavBarMenuItem("Add new Appointment", "{appt}")); + dhtmlMenu.addItem(new NavBarMenuItem("Add new Todo", "{todo}")); + myNavBar1.addMenu(dhtmlMenu); + + dhtmlMenu = new NavBarMenu(125, 140); + dhtmlMenu.addItem(new NavBarMenuItem("Preferences", "")); + dhtmlMenu.addItem(new NavBarMenuItem("General", "{prefs}")); + dhtmlMenu.addItem(new NavBarMenuItem("Email", "{email}")); + dhtmlMenu.addItem(new NavBarMenuItem("Calendar", "{calendar}")); + dhtmlMenu.addItem(new NavBarMenuItem("Addressbook", "{addressbook}")); + myNavBar1.addMenu(dhtmlMenu); + + dhtmlMenu = new NavBarMenu(62, 120); + dhtmlMenu.addItem(new NavBarMenuItem("Help", "")); + dhtmlMenu.addItem(new NavBarMenuItem("General", "")); + myNavBar1.addMenu(dhtmlMenu); + + //set menu colors + myNavBar1.setColors("#343434", "#eeeeee", "#60707C", "#ffffff", "#888888", "#eeeeee", "#60707C", "#ffffff", "#777777") + myNavBar1.setFonts("Verdana", "Normal", "Normal", "10pt", "Verdana", "Normal", "Normal", "10pt"); + + //uncomment below line to center the menu (valid values are "left", "center", and "right" + //myNavBar1.setAlign("center") + + var fullWidth; + + function init() + { + //Get width of window, need to account for scrollbar width in Netscape. + + fullWidth = getWindowWidth() + - (isMinNS4 && getWindowHeight() < getPageHeight() ? 16 : 0); + + myNavBar1.moveTo(10,36); + myNavBar1.resize(500 /*fullWidth*/); + myNavBar1.setSizes(0,1,1); + myNavBar1.create(); + myNavBar1.setzIndex(2); + }