[Phphtmllib-devel] SF.net SVN: phphtmllib:[3277] trunk/open2300/lib/modules/graphs/gauge
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2009-10-16 04:01:25
|
Revision: 3277 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3277&view=rev Author: hemna Date: 2009-10-16 04:01:14 +0000 (Fri, 16 Oct 2009) Log Message: ----------- updated refresh url for cache issues Modified Paths: -------------- trunk/open2300/lib/modules/graphs/gauge/myHumidityFlashGauge.php trunk/open2300/lib/modules/graphs/gauge/myRainFlashGauge.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-16 03:35:07 UTC (rev 3276) +++ trunk/open2300/lib/modules/graphs/gauge/myHumidityFlashGauge.php 2009-10-16 04:01:14 UTC (rev 3277) @@ -11,6 +11,7 @@ public function __construct() { parent::__construct(); + $ts = time(); $this->xml = <<<EOL <gauge> @@ -40,7 +41,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='60' delay_type='1' /> + <update url='/index.php?target=my-humidity-flash-gauge&foo=$ts' delay='60' delay_type='1' /> </gauge> EOL; Modified: trunk/open2300/lib/modules/graphs/gauge/myRainFlashGauge.php =================================================================== --- trunk/open2300/lib/modules/graphs/gauge/myRainFlashGauge.php 2009-10-16 03:35:07 UTC (rev 3276) +++ trunk/open2300/lib/modules/graphs/gauge/myRainFlashGauge.php 2009-10-16 04:01:14 UTC (rev 3277) @@ -13,7 +13,9 @@ protected $rain_amount = 0; public function __construct() { - parent::__construct(); + parent::__construct(); + + $ts = time(); $this->xml = <<<EOL <gauge> @@ -23,7 +25,9 @@ <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> + <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'> @@ -33,7 +37,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='60' delay_type='1' /> + <update url='/index.php?target=my-rain-flash-gauge&mode=XX_MODE_XX&foo=$ts' 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-16 03:35:07 UTC (rev 3276) +++ trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php 2009-10-16 04:01:14 UTC (rev 3277) @@ -11,6 +11,8 @@ public function __construct() { parent::__construct(); + + $ts = time(); $this->xml = <<<EOL <gauge> @@ -52,7 +54,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&foo=$ts' 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. |