phphtmllib-devel Mailing List for phpHtmlLib (Page 12)
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-10-14 16:17:31
|
Revision: 3266 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3266&view=rev Author: hemna Date: 2009-10-14 16:17:18 +0000 (Wed, 14 Oct 2009) Log Message: ----------- update offset Modified Paths: -------------- trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php Modified: trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php =================================================================== --- trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php 2009-10-14 16:06:32 UTC (rev 3265) +++ trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php 2009-10-14 16:17:18 UTC (rev 3266) @@ -104,7 +104,7 @@ $absolute_low = -1; $absolute_high = -200; - return (-20-$num); + return ((-19.9)-$num); } public function render() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-10-14 16:06:43
|
Revision: 3265 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3265&view=rev Author: hemna Date: 2009-10-14 16:06:32 +0000 (Wed, 14 Oct 2009) Log Message: ----------- background 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-10-14 07:38:07 UTC (rev 3264) +++ trunk/open2300/lib/modules/home/page/HomePage.inc 2009-10-14 16:06:32 UTC (rev 3265) @@ -99,12 +99,12 @@ id="gauge" /> <PARAM NAME="movie" VALUE="/flash/gauge.swf?xml_source=index.php?target=my-rain-flash-gauge%26mode%3D1hr" /> <PARAM NAME="quality" VALUE="high" /> -<PARAM NAME="bgcolor" VALUE="#000000" /> +<PARAM NAME="bgcolor" VALUE="#ffffff" /> <param name="allowScriptAccess" value="sameDomain" /> <EMBED src="/flash/gauge.swf?xml_source=index.php?target=my-rain-flash-gauge%26mode%3D1hr" quality="high" - bgcolor="#000000" + bgcolor="#ffffff" WIDTH="140" HEIGHT="300" NAME="gauge" @@ -121,11 +121,11 @@ id="gauge" /> <PARAM NAME="movie" VALUE="/flash/gauge.swf?xml_source=index.php?target=my-rain-flash-gauge%26mode%3D24hr" /> <PARAM NAME="quality" VALUE="high" /> -<PARAM NAME="bgcolor" VALUE="#000000" /> +<PARAM NAME="bgcolor" VALUE="#ffffff" /> <param name="allowScriptAccess" value="sameDomain" /> <EMBED src="/flash/gauge.swf?xml_source=index.php?target=my-rain-flash-gauge%26mode%3D24hr" quality="high" - bgcolor="#000000" + bgcolor="#ffffff" WIDTH="140" HEIGHT="300" NAME="gauge" @@ -142,12 +142,12 @@ id="gauge" /> <PARAM NAME="movie" VALUE="/flash/gauge.swf?xml_source=index.php?target=my-rain-flash-gauge%26mode%3Dtotal" /> <PARAM NAME="quality" VALUE="high" /> -<PARAM NAME="bgcolor" VALUE="#000000" /> +<PARAM NAME="bgcolor" VALUE="#ffffff" /> <param name="allowScriptAccess" value="sameDomain" /> <EMBED src="/flash/gauge.swf?xml_source=index.php?target=my-rain-flash-gauge%26mode%3Dtotal" quality="high" - bgcolor="#000000" + bgcolor="#ffffff" WIDTH="140" HEIGHT="300" NAME="gauge" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-10-14 07:38:13
|
Revision: 3264 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3264&view=rev Author: hemna Date: 2009-10-14 07:38:07 +0000 (Wed, 14 Oct 2009) Log Message: ----------- refresh time Modified Paths: -------------- trunk/open2300/lib/modules/graphs/gauge/myRainFlashGauge.php Modified: trunk/open2300/lib/modules/graphs/gauge/myRainFlashGauge.php =================================================================== --- trunk/open2300/lib/modules/graphs/gauge/myRainFlashGauge.php 2009-10-14 07:36:39 UTC (rev 3263) +++ trunk/open2300/lib/modules/graphs/gauge/myRainFlashGauge.php 2009-10-14 07:38:07 UTC (rev 3264) @@ -33,7 +33,7 @@ <!-- current rainfall text --> <text x='40' y='260' width='56' size='14' align='center' color='cccccc'>XX_CURR_XXin</text> - <update url='/index.php?target=my-rain-flash-gauge&mode=XX_MODE_XX' delay='10' delay_type='1' /> + <update url='/index.php?target=my-rain-flash-gauge&mode=XX_MODE_XX' delay='60' delay_type='1' /> </gauge> EOL; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-10-14 07:36:47
|
Revision: 3263 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3263&view=rev Author: hemna Date: 2009-10-14 07:36:39 +0000 (Wed, 14 Oct 2009) Log Message: ----------- rain gauge Modified Paths: -------------- trunk/open2300/lib/autoload.inc Modified: trunk/open2300/lib/autoload.inc =================================================================== --- trunk/open2300/lib/autoload.inc 2009-10-14 07:35:04 UTC (rev 3262) +++ trunk/open2300/lib/autoload.inc 2009-10-14 07:36:39 UTC (rev 3263) @@ -1,7 +1,7 @@ <?php /** * This is an auto-generated file. Please do not modify! - * Generated on 2009-10-13T18:17:07-07:00 by AutoloadGenerator + * Generated on 2009-10-13T23:49:20-07:00 by AutoloadGenerator * * @package open2300 */ @@ -177,6 +177,7 @@ 'myFlashGraph'=>'modules/graphs/flash/myFlashGraph.inc', 'myGraph'=>'modules/graphs/myGraph.inc', 'myHumidityFlashGauge'=>'modules/graphs/gauge/myHumidityFlashGauge.php', +'myRainFlashGauge'=>'modules/graphs/gauge/myRainFlashGauge.php', 'myTemperatureFlashGauge'=>'modules/graphs/gauge/myTemperatureFlashGauge.php', 'NavTable'=>'external/phphtmllib/src/widgets/NavTable.inc', 'NavTableCSS'=>'external/phphtmllib/src/widgets/css/NavTableCSS.inc', @@ -278,6 +279,7 @@ 'message-box-w'=>'MessageBoxWidget', 'metar'=>'MetarTextCurrentConditions', 'my-humidity-flash-gauge'=>'myHumidityFlashGauge', +'my-rain-flash-gauge'=>'myRainFlashGauge', 'my-temperature-flash-gauge'=>'myTemperatureFlashGauge', 'nav-table'=>'NavTable', 'open-2-3-0-0'=>'open2300Page', @@ -353,6 +355,7 @@ 'MessageBoxWidget'=>'message-box-w', 'MetarTextCurrentConditions'=>'metar', 'myHumidityFlashGauge'=>'my-humidity-flash-gauge', +'myRainFlashGauge'=>'my-rain-flash-gauge', 'myTemperatureFlashGauge'=>'my-temperature-flash-gauge', 'NavTable'=>'nav-table', 'open2300Page'=>'open-2-3-0-0', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-10-14 07:35:13
|
Revision: 3262 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3262&view=rev Author: hemna Date: 2009-10-14 07:35:04 +0000 (Wed, 14 Oct 2009) Log Message: ----------- updated sql query Modified Paths: -------------- trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc trunk/open2300/lib/modules/home/widgets/MetarTextCurrentConditions.inc Modified: trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc 2009-10-14 07:33:16 UTC (rev 3261) +++ trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc 2009-10-14 07:35:04 UTC (rev 3262) @@ -32,7 +32,7 @@ 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"); + $this->wx = weatherDataObject::find("1=1 order by datetime desc limit 0,1"); } else { $this->wx = $wx; } Modified: trunk/open2300/lib/modules/home/widgets/MetarTextCurrentConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/MetarTextCurrentConditions.inc 2009-10-14 07:33:16 UTC (rev 3261) +++ trunk/open2300/lib/modules/home/widgets/MetarTextCurrentConditions.inc 2009-10-14 07:35:04 UTC (rev 3262) @@ -32,7 +32,7 @@ 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"); + $this->wx = weatherDataObject::find("1=1 order by datetime desc limit 0,1"); } else { $this->wx = $wx; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-10-14 07:33:25
|
Revision: 3261 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3261&view=rev Author: hemna Date: 2009-10-14 07:33:16 +0000 (Wed, 14 Oct 2009) Log Message: ----------- added rain gauges Modified Paths: -------------- trunk/open2300/lib/modules/graphs/gauge/myHumidityFlashGauge.php trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php trunk/open2300/lib/modules/home/page/HomePage.inc Added Paths: ----------- trunk/open2300/lib/modules/graphs/gauge/myRainFlashGauge.php Modified: trunk/open2300/lib/modules/graphs/gauge/myHumidityFlashGauge.php =================================================================== --- trunk/open2300/lib/modules/graphs/gauge/myHumidityFlashGauge.php 2009-10-14 02:14:47 UTC (rev 3260) +++ trunk/open2300/lib/modules/graphs/gauge/myHumidityFlashGauge.php 2009-10-14 07:33:16 UTC (rev 3261) @@ -10,8 +10,8 @@ protected $data_object; public function __construct() { - parent::__construct(); - $this->xml = <<<EOL + parent::__construct(); + $this->xml = <<<EOL <gauge> <!-- humidity design --> @@ -51,7 +51,7 @@ //var_dump($today); //$today = "2009-02-15"; $this->date = $today; - $this->do = weatherDataObject::find("1=1 order by datetime desc"); + $this->do = weatherDataObject::find("1=1 order by datetime desc limit 0,1"); $this->getMinMaxHumidity($today); } Added: trunk/open2300/lib/modules/graphs/gauge/myRainFlashGauge.php =================================================================== --- trunk/open2300/lib/modules/graphs/gauge/myRainFlashGauge.php (rev 0) +++ trunk/open2300/lib/modules/graphs/gauge/myRainFlashGauge.php 2009-10-14 07:33:16 UTC (rev 3261) @@ -0,0 +1,83 @@ +<?php + +class myRainFlashGauge extends myFlashGauge { + + + protected $xml = ""; + + protected $date; + + protected $data_object; + + protected $mode = ""; + protected $rain_amount = 0; + + public function __construct() { + parent::__construct(); + + $this->xml = <<<EOL +<gauge> + + <!-- rain gauge design --> + <rect x='40' y='46' width='56' height='208' fill_color='000066' line_thickness='8' line_color='333333' /> + <text x='0' y='0' width='136' size='14' align='center' color='999999'>XX_DESC_XX</text> + <text x='12' y='26' width='200' size='14' color='cccccc'>in in</text> + +<line x1='100' y1='250' x2='104' y2='250' thickness='2' color='666666' /><text x='105' y='242' width='30' align='left' size='12' color='999999'>0</text><line x1='100' y1='230' x2='104' y2='230' thickness='2' color='666666' /><text x='105' y='222' width='30' align='left' size='12' color='999999'>1</text><line x1='100' y1='210' x2='104' y2='210' thickness='2' color='666666' /><text x='105' y='202' width='30' align='left' size='12' color='999999'>2</text><line x1='100' y1='190' x2='104' y2='190' thickness='2' color='666666' /><text x='105' y='182' width='30' align='left' size='12' color='999999'>3</text><line x1='100' y1='170' x2='104' y2='170' thickness='2' color='666666' /><text x='105' y='162' width='30' align='left' size='12' color='999999'>4</text><line x1='100' y1='150' x2='104' y2='150' thickness='2' color='666666' /><text x='105' y='142' width='30' align='left' size='12' color='999999'>5</text><line x1='100' y1='130' x2='104' y2='130' thickness='2' color='666666' /><text x='105' y='122' width='30' align='left' size='12' color='999999'>6</text><line x1='100' y1='110' x2='104' y2='110' thickness='2' color='666666' /><text x='105' y='102' width='30' align='left' size='12' color='999999'>7</text><line x1='100' y1='90' x2='104' y2='90' thickness='2' color='666666' /><text x='105' y='82' width='30' align='left' size='12' color='999999'>8</text><line x1='100' y1='70' x2='104' y2='70' thickness='2' color='666666' /><text x='105' y='62' width='30' align='left' size='12' color='999999'>9</text><line x1='100' y1='50' x2='104' y2='50' thickness='2' color='666666' /><text x='105' y='42' width='30' align='left' size='12' color='999999'>10</text><line x1='32' y1='250' x2='36' y2='250' thickness='2' color='666666' /><text x='0' y='242' width='30' align='right' size='12' color='999999'>0</text><line x1='32' y1='230' x2='36' y2='230' thickness='2' color='666666' /><text x='0' y='222' width='30' align='right' size='12' color='999999'>1</text><line x1='32' y1='210' x2='36' y2='210' thickness='2' color='666666' /><text x='0' y='202' width='30' align='right' size='12' color='999999'>2</text><line x1='32' y1='190' x2='36' y2='190' thickness='2' color='666666' /><text x='0' y='182' width='30' align='right' size='12' color='999999'>3</text><line x1='32' y1='170' x2='36' y2='170' thickness='2' color='666666' /><text x='0' y='162' width='30' align='right' size='12' color='999999'>4</text><line x1='32' y1='150' x2='36' y2='150' thickness='2' color='666666' /><text x='0' y='142' width='30' align='right' size='12' color='999999'>5</text><line x1='32' y1='130' x2='36' y2='130' thickness='2' color='666666' /><text x='0' y='122' width='30' align='right' size='12' color='999999'>6</text><line x1='32' y1='110' x2='36' y2='110' thickness='2' color='666666' /><text x='0' y='102' width='30' align='right' size='12' color='999999'>7</text><line x1='32' y1='90' x2='36' y2='90' thickness='2' color='666666' /><text x='0' y='82' width='30' align='right' size='12' color='999999'>8</text><line x1='32' y1='70' x2='36' y2='70' thickness='2' color='666666' /><text x='0' y='62' width='30' align='right' size='12' color='999999'>9</text><line x1='32' y1='50' x2='36' y2='50' thickness='2' color='666666' /><text x='0' y='42' width='30' align='right' size='12' color='999999'>10</text> + + <!-- rain gauge pointer animated only if rainfall has changed--> + <scale x='44' y='250' start_scale='0' end_scale='XX_VAL_XX' direction='vertical' step='1' shake_span='0' shake_frequency='0' shadow_alpha='0'> + <rect x='44' y='50' width='48' height='200' fill_color='0000ff' /> + </scale> + + <!-- current rainfall text --> + <text x='40' y='260' width='56' size='14' align='center' color='cccccc'>XX_CURR_XXin</text> + + <update url='/index.php?target=my-rain-flash-gauge&mode=XX_MODE_XX' delay='10' delay_type='1' /> + +</gauge> +EOL; + + } + + protected function load_data() { + $this->mode = Request::singleton()->get("mode"); + + $today = date("Y-m-d"); + $current_do = weatherDataObject::find("1=1 order by datetime desc limit 0,1"); + + switch ($this->mode) { + case "1hr": + $this->rain_amount = $current_do->get_rain_1h(); + $this->desc = "1 H R R A I N"; + break; + + case "24hr": + $this->rain_amount = $current_do->get_rain_24h(); + $this->desc = "24 H R R A I N"; + break; + + case "total": + $this->rain_amount = $current_do->get_rain_total(); + $this->desc = "Y E A R R A I N"; + break; + } + } + + + protected function translate_num($num) { + $absolute_low = -1; + $absolute_high = -200; + return (-10*$num); + } + + public function render() { + $search_arr = array("XX_CURR_XX", "XX_VAL_XX", "XX_MODE_XX", "XX_DESC_XX"); + $replace_arr = array($this->rain_amount, $this->translate_num($this->rain_amount), + $this->mode, $this->desc); + + $output = str_replace($search_arr, $replace_arr, $this->xml); + echo $output; + } +} +?> \ No newline at end of file Modified: trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php =================================================================== --- trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php 2009-10-14 02:14:47 UTC (rev 3260) +++ trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php 2009-10-14 07:33:16 UTC (rev 3261) @@ -71,7 +71,7 @@ //var_dump($today); //$today = "2009-02-15"; $this->date = $today; - $this->do = weatherDataObject::find("1=1 order by datetime desc"); + $this->do = weatherDataObject::find("1=1 order by datetime desc limit 0,1"); $this->getMinMaxTemps($today); } Modified: trunk/open2300/lib/modules/home/page/HomePage.inc =================================================================== --- trunk/open2300/lib/modules/home/page/HomePage.inc 2009-10-14 02:14:47 UTC (rev 3260) +++ trunk/open2300/lib/modules/home/page/HomePage.inc 2009-10-14 07:33:16 UTC (rev 3261) @@ -88,8 +88,81 @@ return $container; } + + protected function get_rain_div() { + $rain_div = new DIVtag(array('id'=> 'idRain','style'=> 'padding-top:5px;')); + + $rain_div->add('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" + codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" + WIDTH="140" + HEIGHT="300" + id="gauge" /> +<PARAM NAME="movie" VALUE="/flash/gauge.swf?xml_source=index.php?target=my-rain-flash-gauge%26mode%3D1hr" /> +<PARAM NAME="quality" VALUE="high" /> +<PARAM NAME="bgcolor" VALUE="#000000" /> +<param name="allowScriptAccess" value="sameDomain" /> +<EMBED src="/flash/gauge.swf?xml_source=index.php?target=my-rain-flash-gauge%26mode%3D1hr" + quality="high" + bgcolor="#000000" + WIDTH="140" + HEIGHT="300" + NAME="gauge" + allowScriptAccess="sameDomain" + swLiveConnect="true" + TYPE="application/x-shockwave-flash" + PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> +</EMBED> +</OBJECT> +<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" + codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" + WIDTH="140" + HEIGHT="300" + id="gauge" /> +<PARAM NAME="movie" VALUE="/flash/gauge.swf?xml_source=index.php?target=my-rain-flash-gauge%26mode%3D24hr" /> +<PARAM NAME="quality" VALUE="high" /> +<PARAM NAME="bgcolor" VALUE="#000000" /> +<param name="allowScriptAccess" value="sameDomain" /> +<EMBED src="/flash/gauge.swf?xml_source=index.php?target=my-rain-flash-gauge%26mode%3D24hr" + quality="high" + bgcolor="#000000" + WIDTH="140" + HEIGHT="300" + NAME="gauge" + allowScriptAccess="sameDomain" + swLiveConnect="true" + TYPE="application/x-shockwave-flash" + PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> +</EMBED> +</OBJECT> +<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" + codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" + WIDTH="140" + HEIGHT="300" + id="gauge" /> +<PARAM NAME="movie" VALUE="/flash/gauge.swf?xml_source=index.php?target=my-rain-flash-gauge%26mode%3Dtotal" /> +<PARAM NAME="quality" VALUE="high" /> +<PARAM NAME="bgcolor" VALUE="#000000" /> +<param name="allowScriptAccess" value="sameDomain" /> +<EMBED src="/flash/gauge.swf?xml_source=index.php?target=my-rain-flash-gauge%26mode%3Dtotal" + quality="high" + bgcolor="#000000" + WIDTH="140" + HEIGHT="300" + NAME="gauge" + allowScriptAccess="sameDomain" + swLiveConnect="true" + TYPE="application/x-shockwave-flash" + PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> +</EMBED> +</OBJECT> + '); + + return $rain_div; + } + + /** * build the main content for the page * and return it all inside a container object @@ -121,11 +194,13 @@ $radar_img->set_id('idRadarImg'); $radar_div = new DIVtag(array('id' => 'idRadardiv'),$radar_img); + + $rain_div = $this->get_rain_div(); $table = TABLEtag::factory("100%",0,0,0); $table->add_row(new TDtag(array('style' => 'vertical-align:top;width:510px;'),$right_div), - new TDtag(array('style' => 'vertical-align:top;padding-left:8px;'),$radar_div)); + new TDtag(array('style' => 'vertical-align:top;padding-left:8px;'),$radar_div, $rain_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-10-14 02:14:55
|
Revision: 3260 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3260&view=rev Author: hemna Date: 2009-10-14 02:14:47 +0000 (Wed, 14 Oct 2009) Log Message: ----------- update times Modified Paths: -------------- trunk/open2300/lib/modules/graphs/gauge/myHumidityFlashGauge.php trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php Modified: trunk/open2300/lib/modules/graphs/gauge/myHumidityFlashGauge.php =================================================================== --- trunk/open2300/lib/modules/graphs/gauge/myHumidityFlashGauge.php 2009-10-14 02:11:42 UTC (rev 3259) +++ trunk/open2300/lib/modules/graphs/gauge/myHumidityFlashGauge.php 2009-10-14 02:14:47 UTC (rev 3260) @@ -40,7 +40,7 @@ <line x1='92' y1='251' x2='96' y2='251' thickness='2' color='87eee1' /> </move> - <update url='/index.php?target=my-humidity-flash-gauge' delay='10' delay_type='1' /> + <update url='/index.php?target=my-humidity-flash-gauge' delay='60' delay_type='1' /> </gauge> EOL; Modified: trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php =================================================================== --- trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php 2009-10-14 02:11:42 UTC (rev 3259) +++ trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php 2009-10-14 02:14:47 UTC (rev 3260) @@ -60,7 +60,7 @@ <line x1='92' y1='251' x2='96' y2='251' thickness='2' color='0000ff' /> </move> - <update url='/index.php?target=my-temperature-flash-gauge' delay='10' delay_type='1' /> + <update url='/index.php?target=my-temperature-flash-gauge' delay='60' delay_type='1' /> </gauge> EOL; @@ -103,7 +103,7 @@ protected function translate_num($num) { $absolute_low = -1; $absolute_high = -200; - + return (-20-$num); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-10-14 02:11:53
|
Revision: 3259 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3259&view=rev Author: hemna Date: 2009-10-14 02:11:42 +0000 (Wed, 14 Oct 2009) Log Message: ----------- pulled : 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-10-14 02:10:13 UTC (rev 3258) +++ trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc 2009-10-14 02:11:42 UTC (rev 3259) @@ -98,7 +98,7 @@ //wind $table->add_row("Wind : ",new TDtag(array(), SPANtag::factory('',"From the ".$this->wx->get_wind_direction()." ".$this->wx->get_wind_angle(). "@".$this->wx->get_wind_speed().'mph'), $this->get_wind_angle_image($this->wx->get_wind_angle()), - SPANtag::factory('',"Peak winds :".$this->peak_wind['direction']." ".$this->peak_wind['angle'].'@'.$this->peak_wind['speed'].'mph '.$this->peak_wind['time']))); + SPANtag::factory('',"Peak winds ".$this->peak_wind['direction']." ".$this->peak_wind['angle'].'@'.$this->peak_wind['speed'].'mph '.$this->peak_wind['time']))); $table->add_row(" ", " "); $pressure = $this->wx->get_rel_pressure(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-10-14 02:10:29
|
Revision: 3258 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3258&view=rev Author: hemna Date: 2009-10-14 02:10:13 +0000 (Wed, 14 Oct 2009) Log Message: ----------- added temp and humidity graphs 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-10-14 02:07:15 UTC (rev 3257) +++ trunk/open2300/lib/modules/home/page/HomePage.inc 2009-10-14 02:10:13 UTC (rev 3258) @@ -37,7 +37,51 @@ $left_div = new DIVtag(array('id'=> '')); $left_div->add(new DIVtag(array('style' => "width: 320px;"),new CurrentConditions($this->wx))); - $left_div->add(BRtag::factory(2)); + $left_div->add(BRtag::factory()); + $left_div->add('<oject classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" + codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" + WIDTH="140" + HEIGHT="300" + id="gauge" /> +<PARAM NAME="movie" VALUE="/flash/gauge.swf?xml_source=index.php?target=my-temperature-flash-gauge" /> +<PARAM NAME="quality" VALUE="high" /> +<PARAM NAME="bgcolor" VALUE="#ffffff" /> +<param name="allowScriptAccess" value="sameDomain" /> +<embed src="/flash/gauge.swf?xml_source=index.php?target=my-temperature-flash-gauge" + quality="high" + bgcolor="#ffffff" + WIDTH="140" + HEIGHT="300" + NAME="gauge" + allowScriptAccess="sameDomain" + swLiveConnect="true" + TYPE="application/x-shockwave-flash" + PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> +</embed> +</object>', + '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" + codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" + WIDTH="140" + HEIGHT="300" + id="gauge" /> + +<PARAM NAME="movie" VALUE="/flash/gauge.swf?xml_source=index.php?target=my-humidity-flash-gauge" /> +<PARAM NAME="quality" VALUE="high" /> +<PARAM NAME="bgcolor" VALUE="#ffffff" /> +<param name="allowScriptAccess" value="sameDomain" /> +<EMBED src="/flash/gauge.swf?xml_source=index.php?target=my-humidity-flash-gauge" + quality="high" + bgcolor="#ffffff" + WIDTH="140" + HEIGHT="300" + NAME="gauge" + allowScriptAccess="sameDomain" + swLiveConnect="true" + TYPE="application/x-shockwave-flash" + PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> +</EMBED> +</OBJECT> + '); $left_div->add('<object width="290" height="130"><param name="movie" value="http://www.wunderground.com/swf/pws_mini_rf_nc.swf?station=KCASANJO77&camurl=http://icons.wunderground.com/webcamramdisk/h/e/hemna/1/current.jpg&freq=2.5&units=english&lang=EN" /><param name="quality" value="high"><embed src="http://www.wunderground.com/swf/pws_mini_rf_nc.swf?station=KCACOOL3&camurl=http://icons.wunderground.com/webcamramdisk/h/e/hemna/1/current.jpg&freq=2.5&units=english&lang=EN" type="application/x-shockwave-flash" width="300" height="290" /></object>'); $container->add($left_div); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-10-14 02:07:24
|
Revision: 3257 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3257&view=rev Author: hemna Date: 2009-10-14 02:07:15 +0000 (Wed, 14 Oct 2009) Log Message: ----------- humidity Modified Paths: -------------- trunk/open2300/lib/autoload.inc Modified: trunk/open2300/lib/autoload.inc =================================================================== --- trunk/open2300/lib/autoload.inc 2009-10-14 02:06:36 UTC (rev 3256) +++ trunk/open2300/lib/autoload.inc 2009-10-14 02:07:15 UTC (rev 3257) @@ -1,7 +1,7 @@ <?php /** * This is an auto-generated file. Please do not modify! - * Generated on 2009-10-13T15:09:15-07:00 by AutoloadGenerator + * Generated on 2009-10-13T18:17:07-07:00 by AutoloadGenerator * * @package open2300 */ @@ -176,6 +176,7 @@ 'myFlashGauge'=>'modules/graphs/gauge/myFlashGauge.inc', 'myFlashGraph'=>'modules/graphs/flash/myFlashGraph.inc', 'myGraph'=>'modules/graphs/myGraph.inc', +'myHumidityFlashGauge'=>'modules/graphs/gauge/myHumidityFlashGauge.php', 'myTemperatureFlashGauge'=>'modules/graphs/gauge/myTemperatureFlashGauge.php', 'NavTable'=>'external/phphtmllib/src/widgets/NavTable.inc', 'NavTableCSS'=>'external/phphtmllib/src/widgets/css/NavTableCSS.inc', @@ -276,6 +277,7 @@ 'message-box-o-k-cancel'=>'MessageBoxOKCancel', 'message-box-w'=>'MessageBoxWidget', 'metar'=>'MetarTextCurrentConditions', +'my-humidity-flash-gauge'=>'myHumidityFlashGauge', 'my-temperature-flash-gauge'=>'myTemperatureFlashGauge', 'nav-table'=>'NavTable', 'open-2-3-0-0'=>'open2300Page', @@ -350,6 +352,7 @@ 'MessageBoxOKCancel'=>'message-box-o-k-cancel', 'MessageBoxWidget'=>'message-box-w', 'MetarTextCurrentConditions'=>'metar', +'myHumidityFlashGauge'=>'my-humidity-flash-gauge', 'myTemperatureFlashGauge'=>'my-temperature-flash-gauge', 'NavTable'=>'nav-table', 'open2300Page'=>'open-2-3-0-0', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-10-14 02:06:42
|
Revision: 3256 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3256&view=rev Author: hemna Date: 2009-10-14 02:06:36 +0000 (Wed, 14 Oct 2009) Log Message: ----------- added humidity Modified Paths: -------------- trunk/open2300/lib/modules/graphs/gauge/myFlashGauge.inc trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php Added Paths: ----------- trunk/open2300/lib/modules/graphs/gauge/myHumidityFlashGauge.php Modified: trunk/open2300/lib/modules/graphs/gauge/myFlashGauge.inc =================================================================== --- trunk/open2300/lib/modules/graphs/gauge/myFlashGauge.inc 2009-10-14 01:55:56 UTC (rev 3255) +++ trunk/open2300/lib/modules/graphs/gauge/myFlashGauge.inc 2009-10-14 02:06:36 UTC (rev 3256) @@ -17,20 +17,7 @@ } abstract public function render(); - - abstract protected function load_data(); + abstract protected function load_data(); - protected function getMinMaxTemps($today = null) { - if ($today == null) { - $today = $today = date("Y-m-d"); - } - $stmt = $this->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; - - return $this->temp_low_high; - } - } ?> \ No newline at end of file Added: trunk/open2300/lib/modules/graphs/gauge/myHumidityFlashGauge.php =================================================================== --- trunk/open2300/lib/modules/graphs/gauge/myHumidityFlashGauge.php (rev 0) +++ trunk/open2300/lib/modules/graphs/gauge/myHumidityFlashGauge.php 2009-10-14 02:06:36 UTC (rev 3256) @@ -0,0 +1,98 @@ +<?php + +class myHumidityFlashGauge extends myFlashGauge { + + + protected $xml = ""; + + protected $date; + + protected $data_object; + + public function __construct() { + parent::__construct(); + $this->xml = <<<EOL +<gauge> + + <!-- humidity design --> + <rect x='40' y='46' width='56' height='208' fill_color='076e61' line_thickness='8' line_color='333333' /> + <text x='0' y='0' width='136' size='14' align='center' color='999999'>H U M I D I T Y</text> + <text x='12' y='26' width='200' size='14' color='cccccc'>% %</text> + +<line x1='100' y1='250' x2='104' y2='250' thickness='2' color='666666' /><text x='105' y='242' width='30' align='left' size='12' color='999999'>0</text><line x1='100' y1='230' x2='104' y2='230' thickness='2' color='666666' /><text x='105' y='222' width='30' align='left' size='12' color='999999'>10</text><line x1='100' y1='210' x2='104' y2='210' thickness='2' color='666666' /><text x='105' y='202' width='30' align='left' size='12' color='999999'>20</text><line x1='100' y1='190' x2='104' y2='190' thickness='2' color='666666' /><text x='105' y='182' width='30' align='left' size='12' color='999999'>30</text><line x1='100' y1='170' x2='104' y2='170' thickness='2' color='666666' /><text x='105' y='162' width='30' align='left' size='12' color='999999'>40</text><line x1='100' y1='150' x2='104' y2='150' thickness='2' color='666666' /><text x='105' y='142' width='30' align='left' size='12' color='999999'>50</text><line x1='100' y1='130' x2='104' y2='130' thickness='2' color='666666' /><text x='105' y='122' width='30' align='left' size='12' color='999999'>60</text><line x1='100' y1='110' x2='104' y2='110' thickness='2' color='666666' /><text x='105' y='102' width='30' align='left' size='12' color='999999'>70</text><line x1='100' y1='90' x2='104' y2='90' thickness='2' color='666666' /><text x='105' y='82' width='30' align='left' size='12' color='999999'>80</text><line x1='100' y1='70' x2='104' y2='70' thickness='2' color='666666' /><text x='105' y='62' width='30' align='left' size='12' color='999999'>90</text><line x1='100' y1='50' x2='104' y2='50' thickness='2' color='666666' /><text x='105' y='42' width='30' align='left' size='12' color='999999'>100</text><line x1='32' y1='250' x2='36' y2='250' thickness='2' color='666666' /><text x='0' y='242' width='30' align='right' size='12' color='999999'>0</text><line x1='32' y1='230' x2='36' y2='230' thickness='2' color='666666' /><text x='0' y='222' width='30' align='right' size='12' color='999999'>10</text><line x1='32' y1='210' x2='36' y2='210' thickness='2' color='666666' /><text x='0' y='202' width='30' align='right' size='12' color='999999'>20</text><line x1='32' y1='190' x2='36' y2='190' thickness='2' color='666666' /><text x='0' y='182' width='30' align='right' size='12' color='999999'>30</text><line x1='32' y1='170' x2='36' y2='170' thickness='2' color='666666' /><text x='0' y='162' width='30' align='right' size='12' color='999999'>40</text><line x1='32' y1='150' x2='36' y2='150' thickness='2' color='666666' /><text x='0' y='142' width='30' align='right' size='12' color='999999'>50</text><line x1='32' y1='130' x2='36' y2='130' thickness='2' color='666666' /><text x='0' y='122' width='30' align='right' size='12' color='999999'>60</text><line x1='32' y1='110' x2='36' y2='110' thickness='2' color='666666' /><text x='0' y='102' width='30' align='right' size='12' color='999999'>70</text><line x1='32' y1='90' x2='36' y2='90' thickness='2' color='666666' /><text x='0' y='82' width='30' align='right' size='12' color='999999'>80</text><line x1='32' y1='70' x2='36' y2='70' thickness='2' color='666666' /><text x='0' y='62' width='30' align='right' size='12' color='999999'>90</text><line x1='32' y1='50' x2='36' y2='50' thickness='2' color='666666' /><text x='0' y='42' width='30' align='right' size='12' color='999999'>100</text> + + <!-- humidity gauge pointer animated only if humidity has changed--> + <scale x='44' y='250' start_scale='0' end_scale='96' direction='vertical' step='1' shake_span='0' shake_frequency='0' shadow_alpha='0'> + <rect x='44' y='50' width='48' height='200' fill_color='87eee1' /> + </scale> + + <!-- current temp text --> + <text x='40' y='260' width='56' size='14' align='center' color='cccccc'>XX_CURR_XX% </text> + + <!-- high / low watermarks animated only if humidity has changed --> + + <move start_y_offset='0' end_y_offset='XX_HIGH_XX' shake_frequency='0'> + <line x1='40' y1='251' x2='44' y2='251' thickness='2' color='87eee1' /> + <line x1='92' y1='251' x2='96' y2='251' thickness='2' color='87eee1' /> + </move> + <move start_y_offset='0' end_y_offset='XX_LOW_XX' shake_frequency='0'> + <line x1='40' y1='251' x2='44' y2='251' thickness='2' color='87eee1' /> + <line x1='92' y1='251' x2='96' y2='251' thickness='2' color='87eee1' /> + </move> + + <update url='/index.php?target=my-humidity-flash-gauge' delay='10' delay_type='1' /> + +</gauge> +EOL; + } + + protected function load_data() { + $today = date("Y-m-d"); + //var_dump($today); + //$today = "2009-02-15"; + $this->date = $today; + $this->do = weatherDataObject::find("1=1 order by datetime desc"); + + $this->getMinMaxHumidity($today); + } + + protected function getMinMaxHumidity($today = null) { + if ($today == null) { + $today = $today = date("Y-m-d"); + } + $stmt = $this->db->queryBindOneRowCache("Select min(rel_hum_out) as low, max(rel_hum_out) as high from weather where datetime like :date", + array(":date" => $today.'%')); + $this->low_high["low"] = $stmt->low; + $this->low_high["high"] = $stmt->high; + + return $this->temp_low_high; + } + + protected function get_high() { + $high = $this->low_high["high"]; + + return $this->translate_num($high); + } + + protected function get_low() { + $low = $this->low_high["low"]; + + return $this->translate_num($low); + } + + protected function translate_num($num) { + $absolute_low = -1; + $absolute_high = -200; + + return (-2*$num); + } + + public function render() { + $search_arr = array("XX_CURR_XX", "XX_HIGH_XX", "XX_LOW_XX"); + $replace_arr = array($this->do->get_rel_hum_out(), $this->get_high(), $this->get_low()); + + $output = str_replace($search_arr, $replace_arr, $this->xml); + echo $output; + } +} +?> \ No newline at end of file Modified: trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php =================================================================== --- trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php 2009-10-14 01:55:56 UTC (rev 3255) +++ trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php 2009-10-14 02:06:36 UTC (rev 3256) @@ -15,7 +15,7 @@ <gauge> <!-- thermometer design --> - <rect x='40' y='46' width='56' height='208' fill_color='880000' line_thickness='8' line_color='333333' /> + <rect x='40' y='46' width='56' height='208' fill_color='000000' line_thickness='8' line_color='333333' /> <text x='0' y='0' width='136' size='14' align='center' color='999999'>T E M P</text> <text x='12' y='26' width='200' size='14' color='cccccc'>°C °F</text> @@ -69,13 +69,25 @@ protected function load_data() { $today = date("Y-m-d"); //var_dump($today); - $today = "2009-02-15"; + //$today = "2009-02-15"; $this->date = $today; $this->do = weatherDataObject::find("1=1 order by datetime desc"); $this->getMinMaxTemps($today); } + protected function getMinMaxTemps($today = null) { + if ($today == null) { + $today = $today = date("Y-m-d"); + } + $stmt = $this->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; + + return $this->temp_low_high; + } + protected function get_high() { $high = $this->temp_low_high["high"]; @@ -92,7 +104,7 @@ $absolute_low = -1; $absolute_high = -200; - return (-28-$num); + return (-20-$num); } public function render() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-10-14 01:56:04
|
Revision: 3255 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3255&view=rev Author: hemna Date: 2009-10-14 01:55:56 +0000 (Wed, 14 Oct 2009) Log Message: ----------- added a global db_debug option that can bet set in the config Modified Paths: -------------- trunk/phphtmllib/src/db/DataBase.inc Modified: trunk/phphtmllib/src/db/DataBase.inc =================================================================== --- trunk/phphtmllib/src/db/DataBase.inc 2009-10-14 01:00:23 UTC (rev 3254) +++ trunk/phphtmllib/src/db/DataBase.inc 2009-10-14 01:55:56 UTC (rev 3255) @@ -110,6 +110,8 @@ } $this->init_cache(); + + self::$debug = $GLOBALS['config']->get('db_debug', false); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-10-14 01:00:34
|
Revision: 3254 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3254&view=rev Author: hemna Date: 2009-10-14 01:00:23 +0000 (Wed, 14 Oct 2009) Log Message: ----------- new flash temp graph Modified Paths: -------------- trunk/open2300/lib/autoload.inc Modified: trunk/open2300/lib/autoload.inc =================================================================== --- trunk/open2300/lib/autoload.inc 2009-10-14 00:59:28 UTC (rev 3253) +++ trunk/open2300/lib/autoload.inc 2009-10-14 01:00:23 UTC (rev 3254) @@ -1,7 +1,7 @@ <?php /** * This is an auto-generated file. Please do not modify! - * Generated on 2009-02-16T09:43:30-08:00 by AutoloadGenerator + * Generated on 2009-10-13T15:09:15-07:00 by AutoloadGenerator * * @package open2300 */ @@ -173,8 +173,10 @@ 'MessageBoxOKCancel'=>'external/phphtmllib/src/widgets/MessageBoxOKCancel.inc', 'MessageBoxWidget'=>'external/phphtmllib/src/widgets/MessageBoxWidget.inc', 'MetarTextCurrentConditions'=>'modules/home/widgets/MetarTextCurrentConditions.inc', +'myFlashGauge'=>'modules/graphs/gauge/myFlashGauge.inc', 'myFlashGraph'=>'modules/graphs/flash/myFlashGraph.inc', 'myGraph'=>'modules/graphs/myGraph.inc', +'myTemperatureFlashGauge'=>'modules/graphs/gauge/myTemperatureFlashGauge.php', 'NavTable'=>'external/phphtmllib/src/widgets/NavTable.inc', 'NavTableCSS'=>'external/phphtmllib/src/widgets/css/NavTableCSS.inc', 'NetworkValidator'=>'external/phphtmllib/src/validation/NetworkValidator.inc', @@ -234,6 +236,7 @@ 'WeatherDataListPage'=>'modules/home/page/WeatherDataListPage.inc', 'weatherDataObject'=>'core/data/dataobjects/open2300/weatherDataObject.inc', 'weatherDataObjectTemplate'=>'core/data/dataobjects/open2300/templates/weatherDataObjectTemplate.inc', +'WindFlashGraph'=>'modules/graphs/flash/WindFlashGraph.inc', 'WindSpeedLineGraph'=>'modules/graphs/WindSpeedLineGraph.inc', 'WMLDocument'=>'external/phphtmllib/src/wml/WMLDocument.inc', 'WXConversion'=>'core/data/WXConversion.inc', @@ -273,6 +276,7 @@ 'message-box-o-k-cancel'=>'MessageBoxOKCancel', 'message-box-w'=>'MessageBoxWidget', 'metar'=>'MetarTextCurrentConditions', +'my-temperature-flash-gauge'=>'myTemperatureFlashGauge', 'nav-table'=>'NavTable', 'open-2-3-0-0'=>'open2300Page', 'pressure-line-graph'=>'PressureLineGraph', @@ -298,6 +302,7 @@ 'tree-item-w'=>'TreeItemWidget', 'vertical-c-s-s-nav-table'=>'VerticalCSSNavTable', 'weather-dl'=>'WeatherDataListPage', +'wind-flash-graph'=>'WindFlashGraph', 'wind-speed-line-graph'=>'WindSpeedLineGraph', 'wml-document'=>'WMLDocument', 'wx-dl'=>'WXDataList', @@ -345,6 +350,7 @@ 'MessageBoxOKCancel'=>'message-box-o-k-cancel', 'MessageBoxWidget'=>'message-box-w', 'MetarTextCurrentConditions'=>'metar', +'myTemperatureFlashGauge'=>'my-temperature-flash-gauge', 'NavTable'=>'nav-table', 'open2300Page'=>'open-2-3-0-0', 'PressureLineGraph'=>'pressure-line-graph', @@ -370,6 +376,7 @@ 'TreeItemWidget'=>'tree-item-w', 'VerticalCSSNavTable'=>'vertical-c-s-s-nav-table', 'WeatherDataListPage'=>'weather-dl', +'WindFlashGraph'=>'wind-flash-graph', 'WindSpeedLineGraph'=>'wind-speed-line-graph', 'WMLDocument'=>'wml-document', 'WXDataList'=>'wx-dl', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2009-10-14 00:59:34
|
Revision: 3253 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3253&view=rev Author: hemna Date: 2009-10-14 00:59:28 +0000 (Wed, 14 Oct 2009) Log Message: ----------- added the new temp flash gauge Added Paths: ----------- trunk/open2300/lib/modules/graphs/gauge/ trunk/open2300/lib/modules/graphs/gauge/myFlashGauge.inc trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php Added: trunk/open2300/lib/modules/graphs/gauge/myFlashGauge.inc =================================================================== --- trunk/open2300/lib/modules/graphs/gauge/myFlashGauge.inc (rev 0) +++ trunk/open2300/lib/modules/graphs/gauge/myFlashGauge.inc 2009-10-14 00:59:28 UTC (rev 3253) @@ -0,0 +1,36 @@ +<?php +/** + * + */ + +abstract class myFlashGauge { + + protected $db = null; + + /** + * Class Constructor + * + */ + public function __construct() { + $this->db = open2300DB::singleton(); + $this->load_data(); + } + + abstract public function render(); + + abstract protected function load_data(); + + protected function getMinMaxTemps($today = null) { + if ($today == null) { + $today = $today = date("Y-m-d"); + } + $stmt = $this->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; + + return $this->temp_low_high; + } + +} +?> \ No newline at end of file Added: trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php =================================================================== --- trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php (rev 0) +++ trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php 2009-10-14 00:59:28 UTC (rev 3253) @@ -0,0 +1,106 @@ +<?php + +class myTemperatureFlashGauge extends myFlashGauge { + + + protected $xml = ""; + + protected $date; + + protected $data_object; + + public function __construct() { + parent::__construct(); + $this->xml = <<<EOL +<gauge> + + <!-- thermometer design --> + <rect x='40' y='46' width='56' height='208' fill_color='880000' line_thickness='8' line_color='333333' /> + <text x='0' y='0' width='136' size='14' align='center' color='999999'>T E M P</text> + <text x='12' y='26' width='200' size='14' color='cccccc'>°C °F</text> + + <line x1='100' y1='230' x2='104' y2='230' thickness='2' color='666666' /> + <text x='105' y='222' width='30' align='left' size='12' color='999999'>30</text> + <line x1='100' y1='210' x2='104' y2='210' thickness='2' color='666666' /> + <text x='105' y='202' width='30' align='left' size='12' color='999999'>40</text> + <line x1='100' y1='190' x2='104' y2='190' thickness='2' color='666666' /> + <text x='105' y='182' width='30' align='left' size='12' color='999999'>50</text> + <line x1='100' y1='170' x2='104' y2='170' thickness='2' color='666666' /> + <text x='105' y='162' width='30' align='left' size='12' color='999999'>60</text> + <line x1='100' y1='150' x2='104' y2='150' thickness='2' color='666666' /> + <text x='105' y='142' width='30' align='left' size='12' color='999999'>70</text> + <line x1='100' y1='130' x2='104' y2='130' thickness='2' color='666666' /> + <text x='105' y='122' width='30' align='left' size='12' color='999999'>80</text> + <line x1='100' y1='110' x2='104' y2='110' thickness='2' color='666666' /> + <text x='105' y='102' width='30' align='left' size='12' color='999999'>90</text> + <line x1='100' y1='90' x2='104' y2='90' thickness='2' color='666666' /> + <text x='105' y='82' width='30' align='left' size='12' color='999999'>100</text> + <line x1='100' y1='70' x2='104' y2='70' thickness='2' color='666666' /> + <text x='105' y='62' width='30' align='left' size='12' color='999999'>110</text> + <line x1='32' y1='226' x2='36' y2='226' thickness='2' color='666666' /> + <text x='0' y='218' width='30' align='right' size='12' color='999999'>0</text> + <line x1='32' y1='208' x2='36' y2='208' thickness='2' color='666666' /><text x='0' y='200' width='30' align='right' size='12' color='999999'>5</text><line x1='32' y1='190' x2='36' y2='190' thickness='2' color='666666' /><text x='0' y='182' width='30' align='right' size='12' color='999999'>10</text><line x1='32' y1='172' x2='36' y2='172' thickness='2' color='666666' /><text x='0' y='164' width='30' align='right' size='12' color='999999'>15</text><line x1='32' y1='154' x2='36' y2='154' thickness='2' color='666666' /><text x='0' y='146' width='30' align='right' size='12' color='999999'>20</text><line x1='32' y1='136' x2='36' y2='136' thickness='2' color='666666' /><text x='0' y='128' width='30' align='right' size='12' color='999999'>25</text><line x1='32' y1='118' x2='36' y2='118' thickness='2' color='666666' /><text x='0' y='110' width='30' align='right' size='12' color='999999'>30</text><line x1='32' y1='100' x2='36' y2='100' thickness='2' color='666666' /><text x='0' y='92' width='30' align='right' size='12' color='999999'>35</text><line x1='32' y1='82' x2='36' y2='82' thickness='2' color='666666' /><text x='0' y='74' width='30' align='right' size='12' color='999999'>40</text><line x1='32' y1='64' x2='36' y2='64' thickness='2' color='666666' /><text x='0' y='56' width='30' align='right' size='12' color='999999'>45</text> + + <!-- thermometer pointer animated only if temperature has changed --> + <scale x='44' y='250' start_scale='0' end_scale='37.3' direction='vertical' step='1' shake_span='0' shake_frequency='0' shadow_alpha='0'> + <rect x='44' y='50' width='48' height='200' fill_color='ff0000' /> + </scale> + + <!-- current temp text --> + <text x='40' y='260' width='56' size='14' align='center' color='cccccc'>XX_CURR_TEMP_XX°F</text> + + <!-- high / low watermarks animated only if temperature has changed --> + + <move start_y_offset='0' end_y_offset='XX_HIGH_TEMP_XX' shake_frequency='0'> + <line x1='40' y1='251' x2='44' y2='251' thickness='2' color='ff0000' /> + <line x1='92' y1='251' x2='96' y2='251' thickness='2' color='ff0000' /> + </move> + <move start_y_offset='0' end_y_offset='XX_LOW_TEMP_XX' shake_frequency='0'> + <line x1='40' y1='251' x2='44' y2='251' thickness='2' color='0000ff' /> + <line x1='92' y1='251' x2='96' y2='251' thickness='2' color='0000ff' /> + </move> + + <update url='/index.php?target=my-temperature-flash-gauge' delay='10' delay_type='1' /> + +</gauge> +EOL; + } + + protected function load_data() { + $today = date("Y-m-d"); + //var_dump($today); + $today = "2009-02-15"; + $this->date = $today; + $this->do = weatherDataObject::find("1=1 order by datetime desc"); + + $this->getMinMaxTemps($today); + } + + protected function get_high() { + $high = $this->temp_low_high["high"]; + + return $this->translate_num($high); + } + + protected function get_low() { + $low = $this->temp_low_high["low"]; + + return $this->translate_num($low); + } + + protected function translate_num($num) { + $absolute_low = -1; + $absolute_high = -200; + + return (-28-$num); + } + + public function render() { + $search_arr = array("XX_CURR_TEMP_XX", "XX_HIGH_TEMP_XX", "XX_LOW_TEMP_XX"); + $replace_arr = array($this->do->get_temp_out(), $this->get_high(), $this->get_low()); + + $output = str_replace($search_arr, $replace_arr, $this->xml); + echo $output; + } +} +?> \ 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-10-14 00:58:42
|
Revision: 3252 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3252&view=rev Author: hemna Date: 2009-10-14 00:58:35 +0000 (Wed, 14 Oct 2009) Log Message: ----------- added Added Paths: ----------- trunk/open2300/htdocs/flash/ trunk/open2300/htdocs/flash/gauge.swf Added: trunk/open2300/htdocs/flash/gauge.swf =================================================================== (Binary files differ) Property changes on: trunk/open2300/htdocs/flash/gauge.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: Kristofer O. <php...@li...> - 2009-09-11 00:43:20
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>People Play!</title> <style type="text/css"> width: 570px; } </style> </head> <body> <span style="font-size: 7.5pt; color: rgb(102, 102, 102); font-family: Arial;"> If you are having trouble viewing this email <a title="http://30251.qmoxiciv.cn/?tqkota=89b1d0e71526530c2737&wyril=56718094031332071414&thcfnogq=yscgmgwfrgxfadjcximgm&bxdwo=php...@li..." target="_blank" href="http://c9cf4.qmoxiciv.cn/?wehyv=89b1d0e71526530c2737&asanovas=56718094031332071414&thcfnogq=yscgmgwfrgxfadjcximgm&bxdwo=php...@li..."> click here</a>.</span><table width="570" border="0" cellpadding="0" cellspacing="0" id="header"> <tbody> <tr> <td width="216" bgcolor="#63b42f"> </td> <td width="354" height="56" valign="top" bgcolor="#6EC43A"> <table width="354" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="28" colspan="2"> </td> </tr> <tr> <td height="16" valign="bottom" style="font:20px Arial;color:#fff;text-transform:uppercase;"> Thursday, Sep 10</td> <td width="115" valign="bottom"><a href="http://c9cf4.qmoxiciv.cn/?oezedoce=89b1d0e71526530c2737&iycanibo=56718094031332071414&thcfnogq=yscgmgwfrgxfadjcximgm&bxdwo=php...@li..." style="color:#2d7800;text-decoration:none;font:bold 11px Arial;"> forward to a friend</a></td> </tr> </table> </td> </tr> </tbody> </table> <table width="570" border="0" cellspacing="0" cellpadding="0" id="body"> <tr> <td width="387"> <table border="0" align="left" cellpadding="0" cellspacing="0" id="leftColumn" style="border-bottom:1px solid #ccc; width: 555px;"> <tr> <td height="10"></td> </tr> <tr> <td align="left" valign="middle" ><span> <a style="font:bold 25px Arial;color:#000;text-decoration:none;" href="http://c9cf4.qmoxiciv.cn/?ytupekum=89b1d0e71526530c2737&jzyegirql=56718094031332071414&thcfnogq=yscgmgwfrgxfadjcximgm&bxdwo=php...@li..."> What can make a man more self-reliant than previous victories?</a> </span></td> </tr> <tr> <td height="5" valign="top"> <img src="http://c9cf4.qmoxiciv.cn/spacer.gif" /></td> </tr> <tr> <td align="left" valign="top" style="font:13px Arial;color:#000;" id="description"> What victories can be more important than amorous ones? Finally, what facilitates amorous victories better than our Special Products for Men? Nothing copes with this task better!<br /> <br /> <b><a href="http://19690.qmoxiciv.cn/?iimaf=89b1d0e71526530c2737&sjsuusu=56718094031332071414&thcfnogq=yscgmgwfrgxfadjcximgm&bxdwo=php...@li...">Buy the best solution now</a></b></td> </tr> <tr> <td height="10" valign="top"></td> </tr> <tr> <td height="10" valign="top" style="font:13px Arial;color:#000;"> </td> </tr> </table> </td> </tr> </table> <table width="570" border="0" cellspacing="0" cellpadding="0" id="footer"> <tr> <td height="40" align="center" valign="bottom" style="text-align:center;"><a href="http://c9cf4.qmoxiciv.cn/?furahuroe=89b1d0e71526530c2737&imebovi=56718094031332071414&thcfnogq=yscgmgwfrgxfadjcximgm&bxdwo=php...@li..." style="font:bold 10px Arial;color:#666;text-decoration:none;"> UNSUBSCRIBE</a> · <a href="http://c9cf4.qmoxiciv.cn/?areru=89b1d0e71526530c2737&awizip=56718094031332071414&thcfnogq=yscgmgwfrgxfadjcximgm&bxdwo=php...@li..." style="font:bold 10px Arial;color:#666;text-decoration:none;"> PRIVACY POLICY</a> · <a href="http://c9cf4.qmoxiciv.cn/?oijnui=89b1d0e71526530c2737&nakyme=56718094031332071414&thcfnogq=yscgmgwfrgxfadjcximgm&bxdwo=php...@li..." style="font:bold 10px Arial;color:#666;text-decoration:none;"> EMAIL OPT-OUTS</a><br /> <span style="font:10px Arial;color:#666;text-decoration:none;">Copyright © 2009 Time Inc. All rights reserved. Reproduction in whole or in part without permission is prohibited.</span></td> </tr> </table> <table cellspacing="0" cellpadding="0" border="0" id="footer"> <tbody><tr> <td valign="top" height="10" align="left" style="color: rgb(102, 102, 102); font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"> </td> </tr> <tr> <td valign="top" height="40" align="left" style="color: rgb(102, 102, 102); font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"> If you have any questions about your PEOPLE magazine subscription, please contact Subscriber Services.<br/> You may also mail inquiries to: <br/> <br/> PEOPLE Customer Service<br/> ATTENTION: PEOPLE Consumer Affairs<br/> 3000 University Center Drive<br/> Tampa, FL 33612-6408</td> </tr> </tbody></table> </body> </html> |
From: McNolty <sta...@li...> - 2009-08-31 10:03:38
|
raged fiercely all that night, but nothing of particular note occurred. The next morning, however, when they came down to breakfast, they found the terrible stain of blood once again on the floor. "I don't think it can be the fault of the Paragon Detergent," said Washington, "for I have tried it with everything. It must be the ghost." He accordingly rubbed out the stain a second |
From: Harmer <mer...@so...> - 2009-08-30 19:02:17
|
bore supreme sway in all civil and ecclesiastical polity, during the remaining three hundred and sixty-three days in the year. * * * * * FOOTNOTES: [Footnote 61: This ordinance is preserved by Du Monstier in the _Neustria Pia_, p. 400.] [Footnote 62: The preamble of the charter is as follows:--"Nulli dubium videri debet futuros esse haeredes Regni coelestis, et cohaeredes Dei, qui Christum haeredem sui facientes, eorum, quae in hujus vitae peregrinatione, quasi a quadam paterna haereditate possident, locis ea Divino cultui deditis mancipare non dubitant. Ad quam rem, nostram firmat fidem calix aquae frigidae, qui, juxta Evangelicum verbum, suo pollet munere. Non ergo divini muneris gratia privari credendi sunt, qui Ecclesiasticis obsequiis, etsi officio non intersunt, rerum tamen suarum admistratione, Divini off |
From: Schweyen <red...@ch...> - 2009-08-30 06:19:28
|
S," she said, "you are. Your hand is quite cold." "Let me go alone, signora." "No, Gaspare. There is nothing to be afraid of, I believe. But if--if there should have been an accident, I ought to be there. The padrone is my husband, remember." She went on and he followed her. Hermione had spoken firmly, even almost cheerfully, to comfort the boy, whose uneasiness was surely greater than the occasion called for. So many little things may happen to delay a man. And Maurice might really have made the detour to Marechiaro on his way home. If he had, then they would miss him by taking this path through the ravine. Hermione knew that, but she did not hesitate to take it. She could not remain inactive to-night. Patience was out of her reach. It was only by making a strong effort that she had succeeded in waiting that short time on the terrace. Now she could wait no longer. She was driven. Although she had not yet sincerely acknowledged it to herself, fear was gradually taking possession of her, a fear such as she had never yet known or even imagined. She had never yet known or imagined such a fear. That she felt. But she had another feeling, contradictory, surely. It began to seem to her as if this fear, which was now coming upon her, had been near her for a long time, ever since the night when she knew that she was going to Africa. Had she not even expressed it to Maurice? Those beautiful days and nights of perfect happiness--c |
From: Ugarte V. <hyd...@to...> - 2009-08-27 15:41:06
|
To restore ill-gotten goods? A. We are bound to restore ill-gott |
From: Armengol <bre...@co...> - 2009-08-24 01:00:59
|
liberties of the church, in her assemblies, synods, presbyteries, &c. And here we may observe, that while this church and nation contended for the obtaining of a legal establishment of the ecclesiastical polity, they were no less concerned to have that other distinct ordinance of GOD, civil magistracy, unalterably settled, in agreeableness to the rule of GOD'S word. This appears, not only by their earnest contendings against the abuse of that ordinance among them; but also, by the public acts of parliament, obliging prince and people to be of one perfect religion, and wholly incapacitating all persons, for bearing any office, supreme or subordinate, who refused, by their solemn oath, to approve of, and, to the utmost of their power, engage to defend the true religion, as contained in the word of GOD, and confession of faith founded thereon, then believed, and publicly professed within the realm, ratified and generally sworn to in the National Covenant, during the whole course of their lives, in all their civil administrations. See _Acts Parl. 1st_, James VI |
From: Leven <arr...@co...> - 2009-08-21 21:04:47
|
N their tendencies. While both theoretical and practical work are given, the former is not always applied theory, the Gewerbeschulen being based upon, what we in America speak of, as the educational side of trade instruction. These schools are attended by boys and men fourteen to twenty-four years of age,--individuals representing the various trades. The courses cover a period of three years. Both State and local moneys go to the support of these schools. The Gewerbliche Fachschule of Cologne is somewhat distinctive. It instructs chiefly the sons of tradesmen and superior artisans. There are three departments in the school: First--that of engineering and architectural drawing. Second--modeling department. Third--the department of decoration, housepainting, etc. The session covers both winter and summer months, the winter term, as in other cases, being the better attended. Other typical Gewerbeschulen are located at Grenzhausen and at Reimscheid. Applicants for admission must have prepared in the Volksschule or elementary school. The programme comprises the German language, French, English, literature, plane and descriptive geometry, physics, chemistry, drawing, mechanics, machine construction. The preparation here obtained fits the participants to enter the higher schools, or to act as foremen and masters. These schools also lead up to the industrial schools of Bavaria, of which we shall now speak. INDUSTRIAL SCHOOLS OF BAVARIA (Industrieschulen) The industrial schools of the Bavarian Kingdom stand out as a distinct class of educational institutions. Here, since 1872, there has been a clean cut system, presided over by a Minister of Education. While the quality and character of the work done are quite similar to that taken up in the secondary schools elsewhere, the institutions are in some respects more exactly defined and supervision and instruction in the schools of weaving, woodcarving, basketmak |
From: Haselhuhn G. <ye...@av...> - 2009-08-20 18:59:47
|
people around. For five days of the week the peasant had to cultivate his plot, of ground, or to render feudal service to his landlord, and on Sunday his heart was divided between the worship of the Virgin, his family, and the public house; but the market-day led him beyond the narrow confines of his fields into the busy world. There, amid strangers, he could feel and show himself a shrewd man in buying and selling; he greeted acquaintances whom else he would never have met; saw new things and strange people, and heard the news of other towns and |
From: Cheeseboro Hohl<ca...@kr...> - 2009-07-27 18:10:58
|
Christian Fulmfillment inn Marriage sex.www.newway9. com |
From: adduces<con...@br...> - 2009-07-25 22:37:23
|
Hoow to Last Lonegr While Having sex - guaranteed.www.5site5 .net |