[Phphtmllib-devel] SF.net SVN: phphtmllib:[3267] trunk/open2300/lib/modules/graphs/gauge/ myTempera
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2009-10-14 16:21:33
|
Revision: 3267 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3267&view=rev Author: hemna Date: 2009-10-14 16:21:13 +0000 (Wed, 14 Oct 2009) Log Message: ----------- more changes 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:17:18 UTC (rev 3266) +++ trunk/open2300/lib/modules/graphs/gauge/myTemperatureFlashGauge.php 2009-10-14 16:21:13 UTC (rev 3267) @@ -42,7 +42,7 @@ <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'> + <scale x='44' y='250' start_scale='0' end_scale='XX_TEMP_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='ff0000' /> </scale> @@ -108,8 +108,9 @@ } 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()); + $search_arr = array("XX_CURR_TEMP_XX", "XX_TEMP_XX", "XX_HIGH_TEMP_XX", "XX_LOW_TEMP_XX"); + $replace_arr = array($this->do->get_temp_out(), ($this->do->get_temp_out()-20), + $this->get_high(), $this->get_low()); $output = str_replace($search_arr, $replace_arr, $this->xml); echo $output; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |