[Phphtmllib-devel] SF.net SVN: phphtmllib:[3358] trunk/open2300/lib/core/page/open2300Page.inc
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2010-02-22 08:11:49
|
Revision: 3358 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3358&view=rev Author: hemna Date: 2010-02-22 08:11:42 +0000 (Mon, 22 Feb 2010) Log Message: ----------- menu Modified Paths: -------------- trunk/open2300/lib/core/page/open2300Page.inc Modified: trunk/open2300/lib/core/page/open2300Page.inc =================================================================== --- trunk/open2300/lib/core/page/open2300Page.inc 2010-02-22 08:11:24 UTC (rev 3357) +++ trunk/open2300/lib/core/page/open2300Page.inc 2010-02-22 08:11:42 UTC (rev 3358) @@ -112,6 +112,7 @@ protected function head_content() { $this->add_css_link("/css/main.css"); $this->add_css_link("/css/fonts.css"); + $this->add_css_link("/css/menu.css"); //$this->add_js_link( '/js/scriptaculous-js-1.7.0/lib/prototype.js' ); //$this->add_js_link( '/js/scriptaculous-js-1.7.0/src/scriptaculous.js' ); @@ -125,10 +126,30 @@ $header = new DIVtag(array('id' => 'pageheader')); $header->add( new DIVtag(array('id' => 'idPageHeadText'),"Hemna's Weather Station"), - new DIVtag(array('id' => 'idPageSubHeadText'),"Pilot Hill, CA") ); + new DIVtag(array('id' => 'idPageSubHeadText'),"Pilot Hill, CA"), + new DIVtag(array('id' => self::ID_MENU), $this->menu_block()) ); + return $header; } + + /** + * Returns menu widget object + * to use + * + * @return MenuBarWidget + */ + protected protected function menu_block() { + $div = new DIVtag(array('id' => 'idMenuItems')); + $ul = ULtag::factory( + LItag::factory(Atag::factory(RequestBuilder::build_url('HomePage'), 'Home')), + LItag::factory(Atag::factory(RequestBuilder::build_url('WxDate'), 'Old Data')) + ); + $div->add($ul); + $div->set_collapse(); + return $div; + } + /** * We override this method to automatically * break up the main block into a @@ -139,7 +160,7 @@ protected function main_block() { $main = new DIVtag(); - $main->set_id("maincontent"); + $main->set_id(self::ID_BODY); $table = TABLEtag::factory("100%", 0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |