[Phphtmllib-devel] SF.net SVN: phphtmllib:[3396] trunk/open2300
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2010-02-27 18:52:53
|
Revision: 3396 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3396&view=rev Author: hemna Date: 2010-02-27 18:52:47 +0000 (Sat, 27 Feb 2010) Log Message: ----------- made the raw data(datalist) available Modified Paths: -------------- trunk/open2300/htdocs/css/main.css trunk/open2300/htdocs/js/main.js trunk/open2300/lib/core/page/open2300Page.inc trunk/open2300/lib/modules/home/page/WeatherDataListPage.inc Modified: trunk/open2300/htdocs/css/main.css =================================================================== --- trunk/open2300/htdocs/css/main.css 2010-02-27 18:47:26 UTC (rev 3395) +++ trunk/open2300/htdocs/css/main.css 2010-02-27 18:52:47 UTC (rev 3396) @@ -15,7 +15,7 @@ } #pageheader { - background-color: #AFB5FF; + background-color: #FFFFFF; width: 100%; height:150px; background: url('/images/banners/spring/morning_cloudy.jpg') no-repeat top center; @@ -190,6 +190,9 @@ table.prevnext td a{text-decoration: none} +#idWxDataList { + padding-top:5px; +} .datalist_col_head { Modified: trunk/open2300/htdocs/js/main.js =================================================================== --- trunk/open2300/htdocs/js/main.js 2010-02-27 18:47:26 UTC (rev 3395) +++ trunk/open2300/htdocs/js/main.js 2010-02-27 18:52:47 UTC (rev 3396) @@ -115,35 +115,9 @@ } -function start_weather_dl_updates() { - set_orig_time(new Date()); - var counter = new PeriodicalExecuter(function() { - - var time = new Date(); - var new_ts = Math.round( (time.getTime())/1000); - var conds = new Array(); - conds['ageh'] = time.getHours() - orig_time.getHours(); - conds['agem'] = time.getMinutes() - orig_time.getMinutes(); - conds['ages'] = time.getSeconds() - orig_time.getSeconds(); - $('idUpdateSeconds').update(convertTime(new_ts - orig_ts)); - },2); - new PeriodicalExecuter(function(pe) { - new Ajax.Updater('idCurrentConditions','/?ajax=1&ajaxid=idCurrentConditions&target=current-conditions&junk='+get_junk() , - {method:'get',asynchronous:true,evalScripts:true, - onComplete: function() { - new Effect.Highlight('idcclastupdate', {duration: 5.0}); - set_orig_time(new Date()); - }}) - }, - 63); - } - - - - function get_junk() { var d = new Date(); var junk=d.getMonth()+1+''+d.getDay()+''+d.getHours()+''+d.getMinutes()+''+d.getSeconds(); Modified: trunk/open2300/lib/core/page/open2300Page.inc =================================================================== --- trunk/open2300/lib/core/page/open2300Page.inc 2010-02-27 18:47:26 UTC (rev 3395) +++ trunk/open2300/lib/core/page/open2300Page.inc 2010-02-27 18:52:47 UTC (rev 3396) @@ -165,7 +165,8 @@ $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')) + LItag::factory(Atag::factory(RequestBuilder::build_url('WxDate'), 'Old Data')), + LItag::factory(Atag::factory(RequestBuilder::build_url('WeatherDataListPage'), 'Raw Data')) ); $div->add($ul); Modified: trunk/open2300/lib/modules/home/page/WeatherDataListPage.inc =================================================================== --- trunk/open2300/lib/modules/home/page/WeatherDataListPage.inc 2010-02-27 18:47:26 UTC (rev 3395) +++ trunk/open2300/lib/modules/home/page/WeatherDataListPage.inc 2010-02-27 18:52:47 UTC (rev 3396) @@ -44,15 +44,10 @@ $container = Container::factory(); //add some graphs - $right_div = new DIVtag(array('id' => 'idRightContent')); + $right_div = new DIVtag(array('id' => 'idWxDataList')); $right_div->add(new WXDataList); - $container->add($right_div); - - $script = SCRIPTtag::factory(); - $script->add("Event.observe(window, 'load', start_weather_dl_updates);"); - - $container->add($script); + $container->add($right_div); return $container; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |