[Phphtmllib-devel] SF.net SVN: phphtmllib:[3374] trunk/open2300/lib
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2010-02-26 07:17:21
|
Revision: 3374 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3374&view=rev Author: hemna Date: 2010-02-26 07:17:15 +0000 (Fri, 26 Feb 2010) Log Message: ----------- fixed some small issues Modified Paths: -------------- trunk/open2300/lib/core/page/open2300Page.inc trunk/open2300/lib/modules/home/widgets/TickerConditions.inc Modified: trunk/open2300/lib/core/page/open2300Page.inc =================================================================== --- trunk/open2300/lib/core/page/open2300Page.inc 2010-02-26 07:15:15 UTC (rev 3373) +++ trunk/open2300/lib/core/page/open2300Page.inc 2010-02-26 07:17:15 UTC (rev 3374) @@ -146,8 +146,8 @@ $table = TABLEtag::factory("1024",0,0,0,"center"); $table->add_row(new TDtag(array("id" => "headtopleft"), "Pilot Hill, CA Weather"), - new TDtag(array("id" => "headtopcenter"), "something"), - new TDtag(array("id" => "headtopright"), "nothing")); + new TDtag(array("id" => "headtopcenter"), ""), + new TDtag(array("id" => "headtopright"), "")); $table->add_row(new TDtag(array("id" => "pageheader", "colspan" => "3"), $header)); Modified: trunk/open2300/lib/modules/home/widgets/TickerConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/TickerConditions.inc 2010-02-26 07:15:15 UTC (rev 3373) +++ trunk/open2300/lib/modules/home/widgets/TickerConditions.inc 2010-02-26 07:17:15 UTC (rev 3374) @@ -93,9 +93,7 @@ $sql = "select datetime,wind_speed, wind_angle, wind_direction from weather where ". "wind_speed = (select max(wind_speed) from weather where datetime like :date) ". "and datetime like :date2"; - $stmt = $db->queryBindOneRow($sql, - array(":date" => $today.'%', - ":date2" => $today.'%')); + $stmt = $db->queryBindOneRowCache($sql, array(":date" => $today.'%',":date2" => $today.'%'), 60*5); $log->debug(var_export($stmt,true)); $this->peak_wind['speed'] = $stmt->wind_speed; $this->peak_wind['angle'] = $stmt->wind_angle; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |