phphtmllib-devel Mailing List for phpHtmlLib (Page 14)
Status: Beta
Brought to you by:
hemna
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(33) |
Jul
(2) |
Aug
(3) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
|
Mar
(4) |
Apr
|
May
(3) |
Jun
(1) |
Jul
(10) |
Aug
(5) |
Sep
|
Oct
|
Nov
(2) |
Dec
(5) |
2004 |
Jan
(1) |
Feb
(8) |
Mar
(139) |
Apr
(65) |
May
(32) |
Jun
(55) |
Jul
(21) |
Aug
(60) |
Sep
(43) |
Oct
(1) |
Nov
(18) |
Dec
(34) |
2005 |
Jan
(25) |
Feb
(2) |
Mar
(49) |
Apr
(13) |
May
(40) |
Jun
(22) |
Jul
(21) |
Aug
(59) |
Sep
(178) |
Oct
(54) |
Nov
(3) |
Dec
(49) |
2006 |
Jan
(21) |
Feb
(1) |
Mar
(5) |
Apr
(29) |
May
(86) |
Jun
(79) |
Jul
(52) |
Aug
(127) |
Sep
(187) |
Oct
(90) |
Nov
(61) |
Dec
(48) |
2007 |
Jan
(79) |
Feb
(136) |
Mar
(58) |
Apr
(139) |
May
(293) |
Jun
(112) |
Jul
(138) |
Aug
(112) |
Sep
(148) |
Oct
(76) |
Nov
(29) |
Dec
(66) |
2008 |
Jan
(45) |
Feb
(60) |
Mar
(119) |
Apr
(169) |
May
(172) |
Jun
(136) |
Jul
(107) |
Aug
(114) |
Sep
(104) |
Oct
(26) |
Nov
(50) |
Dec
(48) |
2009 |
Jan
(9) |
Feb
(35) |
Mar
(22) |
Apr
(43) |
May
(83) |
Jun
(68) |
Jul
(58) |
Aug
(21) |
Sep
(23) |
Oct
(62) |
Nov
(36) |
Dec
(26) |
2010 |
Jan
(16) |
Feb
(83) |
Mar
(73) |
Apr
(51) |
May
(76) |
Jun
(96) |
Jul
(70) |
Aug
(33) |
Sep
(10) |
Oct
(1) |
Nov
(2) |
Dec
|
2011 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
(12) |
Apr
|
May
(1) |
Jun
(2) |
Jul
|
Aug
(3) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
(3) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(5) |
Oct
(1) |
Nov
|
Dec
(1) |
2014 |
Jan
(2) |
Feb
(1) |
Mar
|
Apr
(2) |
May
(1) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
(2) |
Oct
(2) |
Nov
(3) |
Dec
|
2015 |
Jan
(1) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <he...@us...> - 2009-03-01 21:14:13
|
Revision: 3233 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3233&view=rev Author: hemna Date: 2009-03-01 21:13:56 +0000 (Sun, 01 Mar 2009) Log Message: ----------- sizes Modified Paths: -------------- trunk/open2300/lib/modules/graphs/SingleDataDateLineGraph.inc trunk/open2300/lib/modules/graphs/SingleDataDateScatterGraph.inc trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc trunk/open2300/lib/modules/home/page/HomePage.inc Modified: trunk/open2300/lib/modules/graphs/SingleDataDateLineGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/SingleDataDateLineGraph.inc 2009-03-01 21:12:16 UTC (rev 3232) +++ trunk/open2300/lib/modules/graphs/SingleDataDateLineGraph.inc 2009-03-01 21:13:56 UTC (rev 3233) @@ -67,7 +67,7 @@ public function render() { // Create the graph. These two calls are always required - $graph = new Graph(450,200,"auto"); + $graph = new Graph(510,200,"auto"); $graph->img->SetImgFormat('gif'); $graph->SetScale("datlin"); Modified: trunk/open2300/lib/modules/graphs/SingleDataDateScatterGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/SingleDataDateScatterGraph.inc 2009-03-01 21:12:16 UTC (rev 3232) +++ trunk/open2300/lib/modules/graphs/SingleDataDateScatterGraph.inc 2009-03-01 21:13:56 UTC (rev 3233) @@ -55,7 +55,7 @@ public function render() { // Create the graph. These two calls are always required - $graph = new Graph(400,200,"auto"); + $graph = new Graph(510,200,"auto"); $graph->img->SetImgFormat('gif'); $graph->SetScale("datlin"); //$graph->SetTickDensity(TICKD_DENSE, TICKD_VERYSPARSE); Modified: trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc 2009-03-01 21:12:16 UTC (rev 3232) +++ trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc 2009-03-01 21:13:56 UTC (rev 3233) @@ -33,7 +33,7 @@ public function render() { // Create the graph. These two calls are always required - $graph = new Graph(480,200,"auto"); + $graph = new Graph(510,200,"auto"); $graph->img->SetImgFormat('gif'); $graph->SetScale("datlin"); //$graph->SetY2Scale("lin"); Modified: trunk/open2300/lib/modules/home/page/HomePage.inc =================================================================== --- trunk/open2300/lib/modules/home/page/HomePage.inc 2009-03-01 21:12:16 UTC (rev 3232) +++ trunk/open2300/lib/modules/home/page/HomePage.inc 2009-03-01 21:13:56 UTC (rev 3233) @@ -73,14 +73,14 @@ $right_div->add(new DIVtag(array('id' => 'idRainLineGraphdiv', 'style'=> 'padding-top:5px;padding-bottom:5px;height:201px;'),$rain_img)); $radar_img = IMGtag::factory("http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=DAX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=0.172&noclutter=0&t=1235925219&lat=38.81977081&lon=-121.02596283&label=Pilot+Hill%2C+CA&showstorms=0&map.x=400&map.y=240¢erx=21¢ery=408&transx=-379&transy=168&showlabels=1&severe=0&rainsnow=0&lightning=0&smooth=0", - 440,300); + 460,320); $radar_img->set_id('idRadarImg'); $radar_div = new DIVtag(array('id' => 'idRadardiv'),$radar_img); - $table = TABLEtag::factory("100%",0,0,10); + $table = TABLEtag::factory("100%",0,0,5); - $table->add_row(new TDtag(array('style' => 'vertical-align:top;width:480px;'),$right_div), + $table->add_row(new TDtag(array('style' => 'vertical-align:top;width:510px;'),$right_div), new TDtag(array('style' => 'vertical-align:top;'),$radar_div)); return $table; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-03-01 21:12:25
|
Revision: 3232 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3232&view=rev Author: hemna Date: 2009-03-01 21:12:16 +0000 (Sun, 01 Mar 2009) Log Message: ----------- size changes Modified Paths: -------------- trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc trunk/open2300/lib/modules/home/page/HomePage.inc Modified: trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc 2009-03-01 21:10:28 UTC (rev 3231) +++ trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc 2009-03-01 21:12:16 UTC (rev 3232) @@ -33,7 +33,7 @@ public function render() { // Create the graph. These two calls are always required - $graph = new Graph(450,200,"auto"); + $graph = new Graph(480,200,"auto"); $graph->img->SetImgFormat('gif'); $graph->SetScale("datlin"); //$graph->SetY2Scale("lin"); Modified: trunk/open2300/lib/modules/home/page/HomePage.inc =================================================================== --- trunk/open2300/lib/modules/home/page/HomePage.inc 2009-03-01 21:10:28 UTC (rev 3231) +++ trunk/open2300/lib/modules/home/page/HomePage.inc 2009-03-01 21:12:16 UTC (rev 3232) @@ -73,14 +73,14 @@ $right_div->add(new DIVtag(array('id' => 'idRainLineGraphdiv', 'style'=> 'padding-top:5px;padding-bottom:5px;height:201px;'),$rain_img)); $radar_img = IMGtag::factory("http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=DAX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=0.172&noclutter=0&t=1235925219&lat=38.81977081&lon=-121.02596283&label=Pilot+Hill%2C+CA&showstorms=0&map.x=400&map.y=240¢erx=21¢ery=408&transx=-379&transy=168&showlabels=1&severe=0&rainsnow=0&lightning=0&smooth=0", - 410,300); + 440,300); $radar_img->set_id('idRadarImg'); $radar_div = new DIVtag(array('id' => 'idRadardiv'),$radar_img); $table = TABLEtag::factory("100%",0,0,10); - $table->add_row(new TDtag(array('style' => 'vertical-align:top;width:460px;'),$right_div), + $table->add_row(new TDtag(array('style' => 'vertical-align:top;width:480px;'),$right_div), new TDtag(array('style' => 'vertical-align:top;'),$radar_div)); return $table; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-03-01 21:10:37
|
Revision: 3231 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3231&view=rev Author: hemna Date: 2009-03-01 21:10:28 +0000 (Sun, 01 Mar 2009) Log Message: ----------- size changes Modified Paths: -------------- trunk/open2300/lib/modules/graphs/SingleDataDateLineGraph.inc trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc trunk/open2300/lib/modules/home/page/HomePage.inc Modified: trunk/open2300/lib/modules/graphs/SingleDataDateLineGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/SingleDataDateLineGraph.inc 2009-03-01 21:07:42 UTC (rev 3230) +++ trunk/open2300/lib/modules/graphs/SingleDataDateLineGraph.inc 2009-03-01 21:10:28 UTC (rev 3231) @@ -67,7 +67,7 @@ public function render() { // Create the graph. These two calls are always required - $graph = new Graph(400,200,"auto"); + $graph = new Graph(450,200,"auto"); $graph->img->SetImgFormat('gif'); $graph->SetScale("datlin"); Modified: trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc 2009-03-01 21:07:42 UTC (rev 3230) +++ trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc 2009-03-01 21:10:28 UTC (rev 3231) @@ -33,7 +33,7 @@ public function render() { // Create the graph. These two calls are always required - $graph = new Graph(400,200,"auto"); + $graph = new Graph(450,200,"auto"); $graph->img->SetImgFormat('gif'); $graph->SetScale("datlin"); //$graph->SetY2Scale("lin"); Modified: trunk/open2300/lib/modules/home/page/HomePage.inc =================================================================== --- trunk/open2300/lib/modules/home/page/HomePage.inc 2009-03-01 21:07:42 UTC (rev 3230) +++ trunk/open2300/lib/modules/home/page/HomePage.inc 2009-03-01 21:10:28 UTC (rev 3231) @@ -80,7 +80,7 @@ $table = TABLEtag::factory("100%",0,0,10); - $table->add_row(new TDtag(array('style' => 'vertical-align:top;width:410px;'),$right_div), + $table->add_row(new TDtag(array('style' => 'vertical-align:top;width:460px;'),$right_div), new TDtag(array('style' => 'vertical-align:top;'),$radar_div)); return $table; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-03-01 21:07:52
|
Revision: 3230 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3230&view=rev Author: hemna Date: 2009-03-01 21:07:42 +0000 (Sun, 01 Mar 2009) Log Message: ----------- 3rd column for the radar Modified Paths: -------------- trunk/open2300/htdocs/js/main.js trunk/open2300/lib/modules/home/page/HomePage.inc Modified: trunk/open2300/htdocs/js/main.js =================================================================== --- trunk/open2300/htdocs/js/main.js 2009-03-01 20:09:25 UTC (rev 3229) +++ trunk/open2300/htdocs/js/main.js 2009-03-01 21:07:42 UTC (rev 3230) @@ -74,6 +74,8 @@ img = new Image(); img.src = "http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=DAX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=0.172&noclutter=0&t=1235925219&lat=38.81977081&lon=-121.02596283&label=Pilot+Hill%2C+CA&showstorms=0&map.x=400&map.y=240¢erx=21¢ery=408&transx=-379&transy=168&showlabels=1&severe=0&rainsnow=0&lightning=0&smooth=0"; img.id='idRadarImg'; + img.width=400; + img.height=300; $('idRadardiv').update(); $('idRadardiv').appendChild(img); Effect.Appear('idRadarImg', {duration: 0.7}); Modified: trunk/open2300/lib/modules/home/page/HomePage.inc =================================================================== --- trunk/open2300/lib/modules/home/page/HomePage.inc 2009-03-01 20:09:25 UTC (rev 3229) +++ trunk/open2300/lib/modules/home/page/HomePage.inc 2009-03-01 21:07:42 UTC (rev 3230) @@ -72,12 +72,17 @@ $rain_img->set_id('idRainLineGraph'); $right_div->add(new DIVtag(array('id' => 'idRainLineGraphdiv', 'style'=> 'padding-top:5px;padding-bottom:5px;height:201px;'),$rain_img)); - $radar_img = IMGtag::factory("http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=DAX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=0.172&noclutter=0&t=1235925219&lat=38.81977081&lon=-121.02596283&label=Pilot+Hill%2C+CA&showstorms=0&map.x=400&map.y=240¢erx=21¢ery=408&transx=-379&transy=168&showlabels=1&severe=0&rainsnow=0&lightning=0&smooth=0"); + $radar_img = IMGtag::factory("http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=DAX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=0.172&noclutter=0&t=1235925219&lat=38.81977081&lon=-121.02596283&label=Pilot+Hill%2C+CA&showstorms=0&map.x=400&map.y=240¢erx=21¢ery=408&transx=-379&transy=168&showlabels=1&severe=0&rainsnow=0&lightning=0&smooth=0", + 410,300); $radar_img->set_id('idRadarImg'); - $right_div->add(new DIVtag(array('id' => 'idRadardiv'),$radar_img)); - - return $right_div; + $radar_div = new DIVtag(array('id' => 'idRadardiv'),$radar_img); + + $table = TABLEtag::factory("100%",0,0,10); + + $table->add_row(new TDtag(array('style' => 'vertical-align:top;width:410px;'),$right_div), + new TDtag(array('style' => 'vertical-align:top;'),$radar_div)); + return $table; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-03-01 20:09:35
|
Revision: 3229 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3229&view=rev Author: hemna Date: 2009-03-01 20:09:25 +0000 (Sun, 01 Mar 2009) Log Message: ----------- update the radar image along with the other images Modified Paths: -------------- trunk/open2300/htdocs/js/main.js trunk/open2300/lib/modules/home/page/HomePage.inc Modified: trunk/open2300/htdocs/js/main.js =================================================================== --- trunk/open2300/htdocs/js/main.js 2009-03-01 17:35:12 UTC (rev 3228) +++ trunk/open2300/htdocs/js/main.js 2009-03-01 20:09:25 UTC (rev 3229) @@ -69,6 +69,15 @@ $('idWindSpeedLineGraphdiv').appendChild(img); Effect.Appear('idWindSpeedLineGraph', {duration: 0.7}); }}); + + Effect.Fade('idRadarImg', {duration: 0.3, afterFinish: function() { + img = new Image(); + img.src = "http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=DAX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=0.172&noclutter=0&t=1235925219&lat=38.81977081&lon=-121.02596283&label=Pilot+Hill%2C+CA&showstorms=0&map.x=400&map.y=240¢erx=21¢ery=408&transx=-379&transy=168&showlabels=1&severe=0&rainsnow=0&lightning=0&smooth=0"; + img.id='idRadarImg'; + $('idRadardiv').update(); + $('idRadardiv').appendChild(img); + Effect.Appear('idRadarImg', {duration: 0.7}); + }}); }, 65); Modified: trunk/open2300/lib/modules/home/page/HomePage.inc =================================================================== --- trunk/open2300/lib/modules/home/page/HomePage.inc 2009-03-01 17:35:12 UTC (rev 3228) +++ trunk/open2300/lib/modules/home/page/HomePage.inc 2009-03-01 20:09:25 UTC (rev 3229) @@ -72,7 +72,10 @@ $rain_img->set_id('idRainLineGraph'); $right_div->add(new DIVtag(array('id' => 'idRainLineGraphdiv', 'style'=> 'padding-top:5px;padding-bottom:5px;height:201px;'),$rain_img)); - $right_div->add(IMGtag::factory("http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=DAX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=0.172&noclutter=0&t=1235925219&lat=38.81977081&lon=-121.02596283&label=Pilot+Hill%2C+CA&showstorms=0&map.x=400&map.y=240¢erx=21¢ery=408&transx=-379&transy=168&showlabels=1&severe=0&rainsnow=0&lightning=0&smooth=0")); + $radar_img = IMGtag::factory("http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=DAX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=0.172&noclutter=0&t=1235925219&lat=38.81977081&lon=-121.02596283&label=Pilot+Hill%2C+CA&showstorms=0&map.x=400&map.y=240¢erx=21¢ery=408&transx=-379&transy=168&showlabels=1&severe=0&rainsnow=0&lightning=0&smooth=0"); + $radar_img->set_id('idRadarImg'); + + $right_div->add(new DIVtag(array('id' => 'idRadardiv'),$radar_img)); return $right_div; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-03-01 17:35:22
|
Revision: 3228 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3228&view=rev Author: hemna Date: 2009-03-01 17:35:12 +0000 (Sun, 01 Mar 2009) Log Message: ----------- added radar Modified Paths: -------------- trunk/open2300/lib/modules/home/page/HomePage.inc Modified: trunk/open2300/lib/modules/home/page/HomePage.inc =================================================================== --- trunk/open2300/lib/modules/home/page/HomePage.inc 2009-02-22 18:50:29 UTC (rev 3227) +++ trunk/open2300/lib/modules/home/page/HomePage.inc 2009-03-01 17:35:12 UTC (rev 3228) @@ -58,19 +58,21 @@ $img = IMGtag::factory(RequestBuilder::build_url('TempDewPointLineGraph')); $img->set_id('idTempDewLineGraph'); - $right_div->add(new DIVtag(array('id' => 'idTempDewLineGraphdiv', 'style'=> 'padding-top:0px;padding-bottom:10px;height:201px;'), $img)); + $right_div->add(new DIVtag(array('id' => 'idTempDewLineGraphdiv', 'style'=> 'padding-top:0px;padding-bottom:5px;height:201px;'), $img)); $pressure_img = IMGtag::factory(RequestBuilder::build_url('PressureLineGraph')); $pressure_img->set_id('idPressureLineGraph'); - $right_div->add(new DIVtag(array('id' => 'idPressureLineGraphdiv', 'style'=> 'padding-top:10px;padding-bottom:10px;height:201px;'),$pressure_img)); + $right_div->add(new DIVtag(array('id' => 'idPressureLineGraphdiv', 'style'=> 'padding-top:5px;padding-bottom:5px;height:201px;'),$pressure_img)); $wind_img = IMGtag::factory(RequestBuilder::build_url('WindSpeedLineGraph')); $wind_img->set_id('idWindSpeedLineGraph'); - $right_div->add(new DIVtag(array('id' => 'idWindSpeedLineGraphdiv', 'style'=> 'padding-top:10px;padding-bottom:10px;height:201px;'),$wind_img)); + $right_div->add(new DIVtag(array('id' => 'idWindSpeedLineGraphdiv', 'style'=> 'padding-top:5px;padding-bottom:5px;height:201px;'),$wind_img)); $rain_img = IMGtag::factory(RequestBuilder::build_url('RainLineGraph')); $rain_img->set_id('idRainLineGraph'); - $right_div->add(new DIVtag(array('id' => 'idRainLineGraphdiv', 'style'=> 'padding-top:10px;padding-bottom:10px;height:201px;'),$rain_img)); + $right_div->add(new DIVtag(array('id' => 'idRainLineGraphdiv', 'style'=> 'padding-top:5px;padding-bottom:5px;height:201px;'),$rain_img)); + + $right_div->add(IMGtag::factory("http://radblast-mi.wunderground.com/cgi-bin/radar/WUNIDS_map?station=DAX&brand=wui&num=1&delay=15&type=N0R&frame=0&scale=0.172&noclutter=0&t=1235925219&lat=38.81977081&lon=-121.02596283&label=Pilot+Hill%2C+CA&showstorms=0&map.x=400&map.y=240¢erx=21¢ery=408&transx=-379&transy=168&showlabels=1&severe=0&rainsnow=0&lightning=0&smooth=0")); return $right_div; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-02-22 18:50:33
|
Revision: 3227 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3227&view=rev Author: hemna Date: 2009-02-22 18:50:29 +0000 (Sun, 22 Feb 2009) Log Message: ----------- formating rain Modified Paths: -------------- trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc Modified: trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc 2009-02-22 18:43:23 UTC (rev 3226) +++ trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc 2009-02-22 18:50:29 UTC (rev 3227) @@ -89,7 +89,8 @@ $table->add_row("Pressure : ", $pressure. ' inHG / '.WXConversion::inchmercury_to_millibars($pressure). ' mbar'); - $table->add_row('Rainfall : ',$this->wx->get_rain_1h().'" last hour '.$this->wx->get_rain_24h().'" in 24 hours '.$this->rain_total.'" total.'); + $table->add_row('Rainfall : ',$this->wx->get_rain_1h().'"/ '.$this->wx->get_rain_24h().'" / '.$this->rain_total.'"<br>'. + ' 1hr / 24hrs / total.'); $table->add_row(" ", " "); $inside_temp = $this->wx->get_temp_in(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-02-22 18:43:27
|
Revision: 3226 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3226&view=rev Author: hemna Date: 2009-02-22 18:43:23 +0000 (Sun, 22 Feb 2009) Log Message: ----------- " Modified Paths: -------------- trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc Modified: trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc 2009-02-22 18:41:06 UTC (rev 3225) +++ trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc 2009-02-22 18:43:23 UTC (rev 3226) @@ -89,7 +89,7 @@ $table->add_row("Pressure : ", $pressure. ' inHG / '.WXConversion::inchmercury_to_millibars($pressure). ' mbar'); - $table->add_row('Rainfall : ',$this->wx->get_rain_1h().' last hour '.$this->wx->get_rain_24h().' in 24 hours '.$this->wx->get_rain_total().' : '.$this->rain_total.' total.'); + $table->add_row('Rainfall : ',$this->wx->get_rain_1h().'" last hour '.$this->wx->get_rain_24h().'" in 24 hours '.$this->rain_total.'" total.'); $table->add_row(" ", " "); $inside_temp = $this->wx->get_temp_in(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-02-22 18:41:10
|
Revision: 3225 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3225&view=rev Author: hemna Date: 2009-02-22 18:41:06 +0000 (Sun, 22 Feb 2009) Log Message: ----------- math Modified Paths: -------------- trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc Modified: trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc 2009-02-22 18:39:16 UTC (rev 3224) +++ trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc 2009-02-22 18:41:06 UTC (rev 3225) @@ -50,7 +50,7 @@ array(":date" => $year.'%')); $year_rain_start = $stmt->rain_total; - $this->rain_total = sprintf("%0.2f", $year_rain_start - $this->wx->get_rain_total()); + $this->rain_total = sprintf("%0.2f", $this->wx->get_rain_total() - $year_rain_start); } public function get_content() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-02-22 18:39:19
|
Revision: 3224 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3224&view=rev Author: hemna Date: 2009-02-22 18:39:16 +0000 (Sun, 22 Feb 2009) Log Message: ----------- fixed first of the year query Modified Paths: -------------- trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc Modified: trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc 2009-02-22 18:37:30 UTC (rev 3223) +++ trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc 2009-02-22 18:39:16 UTC (rev 3224) @@ -46,7 +46,7 @@ $this->temp_low_high["high"] = $stmt->high; $year = date("Y"); - $stmt = $db->queryBindOneRowCache("Select rain_total from weather where datetime like :date order by datetime desc limit 0,1", + $stmt = $db->queryBindOneRowCache("Select rain_total from weather where datetime like :date order by datetime asc limit 0,1", array(":date" => $year.'%')); $year_rain_start = $stmt->rain_total; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-02-22 18:37:34
|
Revision: 3223 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3223&view=rev Author: hemna Date: 2009-02-22 18:37:30 +0000 (Sun, 22 Feb 2009) Log Message: ----------- try and get rain totals to be accurate for the year Modified Paths: -------------- trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc trunk/open2300/lib/modules/home/widgets/TextCurrentConditions.inc Modified: trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc 2009-02-22 17:22:00 UTC (rev 3222) +++ trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc 2009-02-22 18:37:30 UTC (rev 3223) @@ -16,14 +16,18 @@ * @var weatherDataObject */ protected $wx; + + protected $rain_total; + + protected $temp_low_high = array("low" => 0, + "high" => 0); /** * Class Constructor * */ public function __construct(weatherDataObject $wx=null) { - $log = Log::singleton(); - $log->info("Updating CurrentConditions"); + $log = Log::singleton(); parent::__construct(); if ($wx == null) { //we don't have the current conditions. @@ -32,17 +36,25 @@ } else { $this->wx = $wx; } - } - - public function get_content() { - //get today's High, and today's Low so far. + //load min max temps $db = open2300DB::singleton(); $today = date("Y-m-d"); - $stmt = $db->queryBindOneRowCache("Select min(temp_out) as low, max(temp_out) as high from weather where datetime like :date", array(":date" => $today.'%')); - $low = $stmt->low; - $high = $stmt->high; + $stmt = $db->queryBindOneRowCache("Select min(temp_out) as low, max(temp_out) as high from weather where datetime like :date", + array(":date" => $today.'%')); + $this->temp_low_high["low"] = $stmt->low; + $this->temp_low_high["high"] = $stmt->high; + $year = date("Y"); + $stmt = $db->queryBindOneRowCache("Select rain_total from weather where datetime like :date order by datetime desc limit 0,1", + array(":date" => $year.'%')); + $year_rain_start = $stmt->rain_total; + + $this->rain_total = sprintf("%0.2f", $year_rain_start - $this->wx->get_rain_total()); + } + + public function get_content() { + $div = new DIVtag(array('id'=>$this->get_ajax_replacement_divid().'contents')); //build the title @@ -64,7 +76,7 @@ new SPANtag(array('id' => 'idTempK','style' => 'font-weight:bold;'),WXConversion::fahrenheit_to_kelvin($outside_temp)), " K", BRtag::factory(), $this->wx->get_forecast(), new DIVtag(array('style' => 'padding-top:5px;'), 'Feels like '.$this->wx->get_wind_chill()." F"), - new DIVtag(array('style' => 'padding-top:5px;'), $high.' F / '.$low.' F High/Low'))); + new DIVtag(array('style' => 'padding-top:5px;'), $this->temp_low_high["low"].' F / '.$this->temp_low_high["high"].' F Low/High'))); $table->add_row("Relative Humidity : ", $this->wx->get_rel_hum_out().' %'); @@ -77,7 +89,7 @@ $table->add_row("Pressure : ", $pressure. ' inHG / '.WXConversion::inchmercury_to_millibars($pressure). ' mbar'); - $table->add_row('Rainfall : ',$this->wx->get_rain_1h().' last hour '.$this->wx->get_rain_24h().' in 24 hours '.$this->wx->get_rain_total().' total.'); + $table->add_row('Rainfall : ',$this->wx->get_rain_1h().' last hour '.$this->wx->get_rain_24h().' in 24 hours '.$this->wx->get_rain_total().' : '.$this->rain_total.' total.'); $table->add_row(" ", " "); $inside_temp = $this->wx->get_temp_in(); Modified: trunk/open2300/lib/modules/home/widgets/TextCurrentConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/TextCurrentConditions.inc 2009-02-22 17:22:00 UTC (rev 3222) +++ trunk/open2300/lib/modules/home/widgets/TextCurrentConditions.inc 2009-02-22 18:37:30 UTC (rev 3223) @@ -6,50 +6,16 @@ -class TextCurrentConditions extends AjaxableHTMLWidget { +class TextCurrentConditions extends CurrentConditions { /** * the object's controller target * */ const ID="text"; - - /** - * This contains the current - * weatherDataObject for - * the conditions that you want to display - * - * @var weatherDataObject - */ - protected $wx; - - /** - * Class Constructor - * - */ - public function __construct(weatherDataObject $wx=null) { - $log = Log::singleton(); - $log->info("TextCurrentConditions"); - parent::__construct(); - if ($wx == null) { - //we don't have the current conditions. - //we need to get them - $this->wx = weatherDataObject::find("1=1 order by datetime desc"); - } else { - $this->wx = $wx; - } - } public function get_content() { - //get today's High, and today's Low so far. - $db = open2300DB::singleton(); - $today = date("Y-m-d"); - $output = ""; - $stmt = $db->queryBindOneRowCache("Select min(temp_out) as low, max(temp_out) as high from weather where datetime like :date", array(":date" => $today.'%')); - $low = $stmt->low; - $high = $stmt->high; - //build the title //$title = DIVtag::factory('cctitle', Atag::factory(AjaxRequestBuilder::build_replace_url('CurrentConditions', array(), $this->get_ajax_replacement_divid()), 'Current Conditions', 'linkrefresh')); //now add the update block @@ -72,7 +38,7 @@ $output .= "Pressure : ". $pressure. ' inHG / '.WXConversion::inchmercury_to_millibars($pressure). ' mbar '; //rainfall - $output .= 'Rainfall : '.$this->wx->get_rain_1h().' last hour '.$this->wx->get_rain_24h().' in 24 hours '.$this->wx->get_rain_total().' total. '; + $output .= 'Rainfall : '.$this->wx->get_rain_1h().'" last hour '.$this->wx->get_rain_24h().'" in 24 hours '.$this->rain_total.'" total. '; //inside temp $inside_temp = $this->wx->get_temp_in(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-02-22 17:22:09
|
Revision: 3222 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3222&view=rev Author: hemna Date: 2009-02-22 17:22:00 +0000 (Sun, 22 Feb 2009) Log Message: ----------- title Modified Paths: -------------- trunk/open2300/lib/modules/graphs/RainLineGraph.inc Modified: trunk/open2300/lib/modules/graphs/RainLineGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/RainLineGraph.inc 2009-02-22 17:20:54 UTC (rev 3221) +++ trunk/open2300/lib/modules/graphs/RainLineGraph.inc 2009-02-22 17:22:00 UTC (rev 3222) @@ -10,7 +10,7 @@ * * @var unknown_type */ - protected $title = "Rain Totals Today"; + protected $title = "Rain"; /** * The X axis title This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-02-22 17:21:01
|
Revision: 3221 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3221&view=rev Author: hemna Date: 2009-02-22 17:20:54 +0000 (Sun, 22 Feb 2009) Log Message: ----------- title for today Modified Paths: -------------- trunk/open2300/lib/modules/graphs/RainLineGraph.inc Modified: trunk/open2300/lib/modules/graphs/RainLineGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/RainLineGraph.inc 2009-02-22 17:19:26 UTC (rev 3220) +++ trunk/open2300/lib/modules/graphs/RainLineGraph.inc 2009-02-22 17:20:54 UTC (rev 3221) @@ -10,7 +10,7 @@ * * @var unknown_type */ - protected $title = "Rain Totals This Year"; + protected $title = "Rain Totals Today"; /** * The X axis title This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-02-22 17:19:36
|
Revision: 3220 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3220&view=rev Author: hemna Date: 2009-02-22 17:19:26 +0000 (Sun, 22 Feb 2009) Log Message: ----------- make the daily rain graph have totals for today only Modified Paths: -------------- trunk/open2300/lib/modules/graphs/RainLineGraph.inc Modified: trunk/open2300/lib/modules/graphs/RainLineGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/RainLineGraph.inc 2009-02-17 15:15:59 UTC (rev 3219) +++ trunk/open2300/lib/modules/graphs/RainLineGraph.inc 2009-02-22 17:19:26 UTC (rev 3220) @@ -35,11 +35,15 @@ $today = date("Y-m-d"); $collection = weatherDataObject::find_all("datetime like :date order by datetime asc", array(':date'=> $today.'%')); + $offset = 0; foreach($collection as $wx) { /** * @param $wx weatherDataObject */ - $this->graph_data[] = $wx->get_rain_total(); + if ($offset == 0) { + $offset = $wx->get_rain_total(); + } + $this->graph_data[] = $wx->get_rain_total() - $offset; $this->time_data[] = strtotime($wx->get_datetime()); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-02-17 15:16:04
|
Revision: 3219 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3219&view=rev Author: hemna Date: 2009-02-17 15:15:59 +0000 (Tue, 17 Feb 2009) Log Message: ----------- min/max Modified Paths: -------------- trunk/open2300/lib/modules/graphs/flash/TempDewPointLineFlashGraph.inc Modified: trunk/open2300/lib/modules/graphs/flash/TempDewPointLineFlashGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/flash/TempDewPointLineFlashGraph.inc 2009-02-17 15:14:31 UTC (rev 3218) +++ trunk/open2300/lib/modules/graphs/flash/TempDewPointLineFlashGraph.inc 2009-02-17 15:15:59 UTC (rev 3219) @@ -62,7 +62,7 @@ $line_2->set_key("Dew Point", 10); $y = new OFC_Elements_Axis_Y(); - $y->set_range( min($this->temp_values)-10, max($this->temp_values)*1.5, 10); + $y->set_range( min($this->temp_values)-5, max($this->temp_values)*1.2, 10); $x = new OFC_Elements_Axis_X(); $x->set_steps(24); $x->set_tick_height(5); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-02-17 15:14:33
|
Revision: 3218 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3218&view=rev Author: hemna Date: 2009-02-17 15:14:31 +0000 (Tue, 17 Feb 2009) Log Message: ----------- min Modified Paths: -------------- trunk/open2300/lib/modules/graphs/flash/TempDewPointLineFlashGraph.inc Modified: trunk/open2300/lib/modules/graphs/flash/TempDewPointLineFlashGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/flash/TempDewPointLineFlashGraph.inc 2009-02-17 15:09:45 UTC (rev 3217) +++ trunk/open2300/lib/modules/graphs/flash/TempDewPointLineFlashGraph.inc 2009-02-17 15:14:31 UTC (rev 3218) @@ -62,7 +62,7 @@ $line_2->set_key("Dew Point", 10); $y = new OFC_Elements_Axis_Y(); - $y->set_range( 0, max($this->temp_values)*1.5, 10); + $y->set_range( min($this->temp_values)-10, max($this->temp_values)*1.5, 10); $x = new OFC_Elements_Axis_X(); $x->set_steps(24); $x->set_tick_height(5); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-02-17 15:09:49
|
Revision: 3217 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3217&view=rev Author: hemna Date: 2009-02-17 15:09:45 +0000 (Tue, 17 Feb 2009) Log Message: ----------- don't index ofc Modified Paths: -------------- trunk/open2300/dev/autoload_generator.php Modified: trunk/open2300/dev/autoload_generator.php =================================================================== --- trunk/open2300/dev/autoload_generator.php 2009-02-17 15:09:02 UTC (rev 3216) +++ trunk/open2300/dev/autoload_generator.php 2009-02-17 15:09:45 UTC (rev 3217) @@ -22,9 +22,10 @@ $gen->add_form_content_parent('AjaxStandardFormContent'); $gen->set_debug_mode(true); $gen->set_renderable_parents(array('Container','HTMLPage', 'HTMLWidget', - 'HTMLDataList','myGraph', + 'HTMLDataList','myGraph', 'myFlashGraph', 'RemoteUpdate')); $gen->add_exclude('jpgraph-2.2'); +$gen->add_exclude('open-flash-chart2'); $gen->execute(); ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-02-17 15:09:04
|
Revision: 3216 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3216&view=rev Author: hemna Date: 2009-02-17 15:09:02 +0000 (Tue, 17 Feb 2009) Log Message: ----------- updated includes for OFC Modified Paths: -------------- trunk/open2300/lib/autoload.inc trunk/open2300/lib/init.inc Modified: trunk/open2300/lib/autoload.inc =================================================================== --- trunk/open2300/lib/autoload.inc 2009-02-17 15:08:01 UTC (rev 3215) +++ trunk/open2300/lib/autoload.inc 2009-02-17 15:09:02 UTC (rev 3216) @@ -1,7 +1,7 @@ <?php /** * This is an auto-generated file. Please do not modify! - * Generated on 2008-11-07T11:56:01-08:00 by AutoloadGenerator + * Generated on 2009-02-16T09:43:30-08:00 by AutoloadGenerator * * @package open2300 */ @@ -173,6 +173,7 @@ 'MessageBoxOKCancel'=>'external/phphtmllib/src/widgets/MessageBoxOKCancel.inc', 'MessageBoxWidget'=>'external/phphtmllib/src/widgets/MessageBoxWidget.inc', 'MetarTextCurrentConditions'=>'modules/home/widgets/MetarTextCurrentConditions.inc', +'myFlashGraph'=>'modules/graphs/flash/myFlashGraph.inc', 'myGraph'=>'modules/graphs/myGraph.inc', 'NavTable'=>'external/phphtmllib/src/widgets/NavTable.inc', 'NavTableCSS'=>'external/phphtmllib/src/widgets/css/NavTableCSS.inc', @@ -216,6 +217,7 @@ 'TabList'=>'external/phphtmllib/src/widgets/TabList.inc', 'TabListCSS'=>'external/phphtmllib/src/widgets/css/TabListCSS.inc', 'TabWidget'=>'external/phphtmllib/src/widgets/TabWidget.inc', +'TempDewPointLineFlashGraph'=>'modules/graphs/flash/TempDewPointLineFlashGraph.inc', 'TempDewPointLineGraph'=>'modules/graphs/TempDewPointLineGraph.inc', 'TextCSSNav'=>'external/phphtmllib/src/widgets/TextCSSNav.inc', 'TextCSSNavCSS'=>'external/phphtmllib/src/widgets/css/TextCSSNavCSS.inc', @@ -288,6 +290,7 @@ 'tab-control-w'=>'TabControlWidget', 'tab-list'=>'TabList', 'tab-w'=>'TabWidget', +'temp-dew-point-line-flash-graph'=>'TempDewPointLineFlashGraph', 'temp-dew-point-line-graph'=>'TempDewPointLineGraph', 'text'=>'TextCurrentConditions', 'text-c-s-s-nav'=>'TextCSSNav', @@ -359,6 +362,7 @@ 'TabControlWidget'=>'tab-control-w', 'TabList'=>'tab-list', 'TabWidget'=>'tab-w', +'TempDewPointLineFlashGraph'=>'temp-dew-point-line-flash-graph', 'TempDewPointLineGraph'=>'temp-dew-point-line-graph', 'TextCurrentConditions'=>'text', 'TextCSSNav'=>'text-c-s-s-nav', Modified: trunk/open2300/lib/init.inc =================================================================== --- trunk/open2300/lib/init.inc 2009-02-17 15:08:01 UTC (rev 3215) +++ trunk/open2300/lib/init.inc 2009-02-17 15:09:02 UTC (rev 3216) @@ -16,7 +16,13 @@ $GLOBALS['path_lib'] = $GLOBALS['path_base'].'/lib'; $GLOBALS['path_external'] = $GLOBALS['path_base'].'/lib/external'; +//used for the OFC classes +$ofc_path = $GLOBALS['path_external'].'/open-flash-chart2/php5-ofc-library/lib'; +$include_path = ini_get('include_path'); +$include_path .= ':'.realpath($ofc_path); +ini_set('include_path', $include_path); + /******************* EXCEPTION HANDLER **************************/ function exception_handler($exception) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-02-17 15:08:03
|
Revision: 3215 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3215&view=rev Author: hemna Date: 2009-02-17 15:08:01 +0000 (Tue, 17 Feb 2009) Log Message: ----------- some modifications to OFC to eliminate PEAR use. added a few missing classes Modified Paths: -------------- trunk/open2300/lib/external/open-flash-chart2/php5-ofc-library/lib/OFC/JSON.php trunk/open2300/lib/external/open-flash-chart2/php5-ofc-library/lib/OFC/OFC_Elements.php Added Paths: ----------- trunk/open2300/lib/external/open-flash-chart2/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Dot_Value.php trunk/open2300/lib/external/open-flash-chart2/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Tooltip.php Added: trunk/open2300/lib/external/open-flash-chart2/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Dot_Value.php =================================================================== --- trunk/open2300/lib/external/open-flash-chart2/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Dot_Value.php (rev 0) +++ trunk/open2300/lib/external/open-flash-chart2/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Dot_Value.php 2009-02-17 15:08:01 UTC (rev 3215) @@ -0,0 +1,48 @@ +<?php + +require_once('OFC/Elements/OFC_Elements_Base.php'); +require_once('OFC/Elements/OFC_Elements_Tooltip.php'); + +class OFC_Elements_Dot_Value extends OFC_Elements_Base { + + /** + * Constructor of the dot value + * + * @param $value + * @param $colour + */ + public function __construct($value) { + parent::__construct(); + + $this->value = $value; + } + + + /** + * Set the color of the value. + * + * @param $colour in hex + */ + public function set_colour( $colour ) { + $this->colour = $colour; + } + + /** + * Set the size of the value. + * + * @param $size in hex + */ + public function set_size( $size ) { + $this->size = $size; + } + + /** + * Set the tooltip. + * + * @param $tooltip + */ + public function set_tooltip( $tip ) { + $this->tip = $tip; + } +} +?> \ No newline at end of file Added: trunk/open2300/lib/external/open-flash-chart2/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Tooltip.php =================================================================== --- trunk/open2300/lib/external/open-flash-chart2/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Tooltip.php (rev 0) +++ trunk/open2300/lib/external/open-flash-chart2/php5-ofc-library/lib/OFC/Elements/OFC_Elements_Tooltip.php 2009-02-17 15:08:01 UTC (rev 3215) @@ -0,0 +1,54 @@ +<?php + +require_once('OFC/Elements/OFC_Elements_Base.php'); + +class OFC_Elements_Tooltip extends OFC_Elements_Base { + + public function __construct() { + parent::__construct(); + $this->type = 'tooltip'; + } + + public function set_shadow( $shadow ) + { + $this->shadow = $shadow; + } + + // stroke in pixels (e.g. 5 ) + public function set_stroke( $stroke ) + { + $this->stroke = $stroke; + } + + public function set_colour( $colour ) + { + $this->colour = $colour; + } + + public function set_background_colour( $bg ) + { + $this->background = $bg; + } + + // a css style + public function set_title_style( $style ) + { + $this->title = $style; + } + + public function set_body_style( $style ) + { + $this->body = $style; + } + + public function set_proximity() + { + $this->mouse = 1; + } + + public function set_hover() + { + $this->mouse = 2; + } +} +?> \ No newline at end of file Modified: trunk/open2300/lib/external/open-flash-chart2/php5-ofc-library/lib/OFC/JSON.php =================================================================== --- trunk/open2300/lib/external/open-flash-chart2/php5-ofc-library/lib/OFC/JSON.php 2009-02-17 15:05:12 UTC (rev 3214) +++ trunk/open2300/lib/external/open-flash-chart2/php5-ofc-library/lib/OFC/JSON.php 2009-02-17 15:08:01 UTC (rev 3215) @@ -402,7 +402,6 @@ case 'object': $vars = get_object_vars($var); - $properties = array_map(array($this, 'name_value'), array_keys($vars), array_values($vars)); @@ -438,7 +437,6 @@ if(Services_JSON::isError($encoded_value)) { return $encoded_value; } - return $this->encode(strval($name)) . ':' . $encoded_value; } @@ -765,9 +763,7 @@ */ function isError($data, $code = null) { - if (class_exists('pear')) { - return PEAR::isError($data, $code); - } elseif (is_object($data) && (get_class($data) == 'services_json_error' || + if (is_object($data) && (get_class($data) == 'services_json_error' || is_subclass_of($data, 'services_json_error'))) { return true; } @@ -776,19 +772,6 @@ } } -if (class_exists('PEAR_Error')) { - - class Services_JSON_Error extends PEAR_Error - { - function Services_JSON_Error($message = 'unknown error', $code = null, - $mode = null, $options = null, $userinfo = null) - { - parent::PEAR_Error($message, $code, $mode, $options, $userinfo); - } - } - -} else { - /** * @todo Ultimately, this class shall be descended from PEAR_Error */ @@ -800,6 +783,3 @@ } } - -} - Modified: trunk/open2300/lib/external/open-flash-chart2/php5-ofc-library/lib/OFC/OFC_Elements.php =================================================================== --- trunk/open2300/lib/external/open-flash-chart2/php5-ofc-library/lib/OFC/OFC_Elements.php 2009-02-17 15:05:12 UTC (rev 3214) +++ trunk/open2300/lib/external/open-flash-chart2/php5-ofc-library/lib/OFC/OFC_Elements.php 2009-02-17 15:08:01 UTC (rev 3215) @@ -29,3 +29,7 @@ require_once('OFC/Elements/Legend/OFC_Elements_Legend_Y.php'); require_once('OFC/Elements/OFC_Elements_Title.php'); + +require_once('OFC/Elements/OFC_Elements_Dot_Value.php'); +require_once('OFC/Elements/OFC_Elements_Tooltip.php'); +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-02-17 15:05:16
|
Revision: 3214 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3214&view=rev Author: hemna Date: 2009-02-17 15:05:12 +0000 (Tue, 17 Feb 2009) Log Message: ----------- today Modified Paths: -------------- trunk/open2300/lib/modules/graphs/flash/TempDewPointLineFlashGraph.inc Modified: trunk/open2300/lib/modules/graphs/flash/TempDewPointLineFlashGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/flash/TempDewPointLineFlashGraph.inc 2009-02-17 14:56:40 UTC (rev 3213) +++ trunk/open2300/lib/modules/graphs/flash/TempDewPointLineFlashGraph.inc 2009-02-17 15:05:12 UTC (rev 3214) @@ -16,7 +16,7 @@ public function load_data() { $today = date("Y-m-d"); //var_dump($today); - $today = "2008-01-16"; + //$today = "2008-01-16"; $this->date = $today; $collection = weatherDataObject::find_all("datetime like :date order by datetime asc", array(':date'=> $today.'%')); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-02-17 14:56:43
|
Revision: 3213 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3213&view=rev Author: hemna Date: 2009-02-17 14:56:40 +0000 (Tue, 17 Feb 2009) Log Message: ----------- added Added Paths: ----------- trunk/open2300/lib/modules/graphs/flash/ trunk/open2300/lib/modules/graphs/flash/TempDewPointLineFlashGraph.inc trunk/open2300/lib/modules/graphs/flash/myFlashGraph.inc Added: trunk/open2300/lib/modules/graphs/flash/TempDewPointLineFlashGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/flash/TempDewPointLineFlashGraph.inc (rev 0) +++ trunk/open2300/lib/modules/graphs/flash/TempDewPointLineFlashGraph.inc 2009-02-17 14:56:40 UTC (rev 3213) @@ -0,0 +1,81 @@ +<?php +/** + * + */ + +class TempDewPointLineFlashGraph extends myFlashGraph { + + protected $temperature_data = array(); + protected $dewpoint_data = array(); + protected $time_data = array(); + + protected function init_includes() { + $this->do_include('OFC_Chart.php'); + } + + public function load_data() { + $today = date("Y-m-d"); + //var_dump($today); + $today = "2008-01-16"; + $this->date = $today; + $collection = weatherDataObject::find_all("datetime like :date order by datetime asc", array(':date'=> $today.'%')); + + $cnt=1; + $this->temperature_data = array(); + $this->temp_values = array(); + $this->dew_values = array(); + foreach($collection as $wx) { + + $this->temp_values[] = (float)$wx->get_temp_out(); + $dot_value = new OFC_Elements_Dot_Value((float)$wx->get_temp_out()); + $dot_value->set_tooltip("#val# F<br>".$wx->get_datetime()); + $this->temperature_data[] = $dot_value; + + $dew_value = new OFC_Elements_Dot_Value((float)$wx->get_dewpoint()); + $dew_value->set_tooltip("#val# F<br>".$wx->get_datetime()); + $this->dewpoint_data[] = $dew_value; + $this->dew_values[] = (float)$wx->get_dewpoint(); + + $this->time_data[] = $wx->get_datetime(); + } + } + + public function render() { + + $title = new OFC_Elements_Title( $this->date ); + + $line_1 = new OFC_Charts_Line_Dot(); + $line_1->set_values( $this->temperature_data ); + //$line_1->set_values( $data_1 ); + $line_1->set_halo_size( 0 ); + $line_1->set_width( 2 ); + $line_1->set_dot_size( 1 ); + $line_1->set_key("Temperature", 10); + + + $line_2 = new OFC_Charts_Line_Dot(); + $line_2->set_values( $this->dewpoint_data ); + $line_2->set_halo_size( 0 ); + $line_2->set_width( 1 ); + $line_2->set_dot_size( 1 ); + $line_2->set_colour("#FF0000"); + $line_2->set_key("Dew Point", 10); + + $y = new OFC_Elements_Axis_Y(); + $y->set_range( 0, max($this->temp_values)*1.5, 10); + $x = new OFC_Elements_Axis_X(); + $x->set_steps(24); + $x->set_tick_height(5); + $x->set_labels_from_array($this->time_data); + + $chart = new OFC_Chart(); + $chart->set_title( $title ); + $chart->add_element( $line_1 ); + $chart->add_element( $line_2 ); + $chart->set_y_axis( $y ); + $chart->set_x_axis( $x ); + + echo $chart->toPrettyString(); + } +} +?> \ No newline at end of file Added: trunk/open2300/lib/modules/graphs/flash/myFlashGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/flash/myFlashGraph.inc (rev 0) +++ trunk/open2300/lib/modules/graphs/flash/myFlashGraph.inc 2009-02-17 14:56:40 UTC (rev 3213) @@ -0,0 +1,33 @@ +<?php +/** + * + */ + +abstract class myFlashGraph { + + /** + * Class Constructor + * + */ + public function __construct() { + + //do the nasty includes? + //include ("external/jpgraph-2.2/src/jpgraph.php"); + $this->init_includes(); + $this->load_data(); + } + + public function render() { + + } + + protected function do_include($type) { + require_once("OFC/".$type); + } + + abstract protected function init_includes(); + + abstract protected function load_data(); + +} +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-02-17 14:55:27
|
Revision: 3212 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3212&view=rev Author: hemna Date: 2009-02-17 14:55:23 +0000 (Tue, 17 Feb 2009) Log Message: ----------- added for OFC Added Paths: ----------- trunk/open2300/htdocs/open-flash-chart.swf Added: trunk/open2300/htdocs/open-flash-chart.swf =================================================================== (Binary files differ) Property changes on: trunk/open2300/htdocs/open-flash-chart.swf ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-01-26 18:41:04
|
Revision: 3209 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3209&view=rev Author: hemna Date: 2009-01-26 18:40:55 +0000 (Mon, 26 Jan 2009) Log Message: ----------- subhead Modified Paths: -------------- trunk/open2300/lib/core/page/open2300Page.inc Modified: trunk/open2300/lib/core/page/open2300Page.inc =================================================================== --- trunk/open2300/lib/core/page/open2300Page.inc 2009-01-26 18:38:55 UTC (rev 3208) +++ trunk/open2300/lib/core/page/open2300Page.inc 2009-01-26 18:40:55 UTC (rev 3209) @@ -122,7 +122,8 @@ protected function header_block() { $header = new DIVtag(array('id' => 'pageheader')); - $header->add( new DIVtag(array('id' => 'idPageHeadText'),"Hemna's Weather Station.") ); + $header->add( new DIVtag(array('id' => 'idPageHeadText'),"Hemna's Weather Station"), + new DIVtag(array('id' => 'idPageSubHeadText'),"Pilot Hill, CA") ); return $header; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-01-26 18:38:59
|
Revision: 3208 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3208&view=rev Author: hemna Date: 2009-01-26 18:38:55 +0000 (Mon, 26 Jan 2009) Log Message: ----------- fixed top banner Modified Paths: -------------- trunk/open2300/htdocs/css/main.css Modified: trunk/open2300/htdocs/css/main.css =================================================================== --- trunk/open2300/htdocs/css/main.css 2009-01-26 18:30:24 UTC (rev 3207) +++ trunk/open2300/htdocs/css/main.css 2009-01-26 18:38:55 UTC (rev 3208) @@ -18,8 +18,7 @@ background-color: #AFB5FF; width: 100%; height:150px; - background-image: url('/images/top_banner.gif') no-repeat; - background-position: top left; + background: url('/images/top_banner.gif') no-repeat top left; } #idPageHeadText { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-01-26 18:30:29
|
Revision: 3207 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3207&view=rev Author: hemna Date: 2009-01-26 18:30:24 +0000 (Mon, 26 Jan 2009) Log Message: ----------- no repeat Modified Paths: -------------- trunk/open2300/htdocs/css/main.css Modified: trunk/open2300/htdocs/css/main.css =================================================================== --- trunk/open2300/htdocs/css/main.css 2009-01-26 04:19:01 UTC (rev 3206) +++ trunk/open2300/htdocs/css/main.css 2009-01-26 18:30:24 UTC (rev 3207) @@ -18,7 +18,7 @@ background-color: #AFB5FF; width: 100%; height:150px; - background-image: url('/images/top_banner.gif'); + background-image: url('/images/top_banner.gif') no-repeat; background-position: top left; } @@ -28,9 +28,16 @@ font-size:1.4em; font-weight:bold; padding-top:8px; -} +} +#idPageSubHeadText { + width: 100%; + text-align:center; + font-size:.6em; + padding-top:0px; +} + #maincontent { background-color:#ffffff; width:100%; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |