# TNET Services, Inc. # # Copyright: (c) 1992-2007 Copyright TNET Services, Inc. ############################################################################ # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA ############################################################################ # This document uses Tab 4 Settings ############################################################################ # Version 1.01 - 31-Mar-2012 - day-of-week fix for get-UV-forecast-inc.php V1.07 require_once("Settings.php"); require_once("common.php"); ############################################################################ $TITLE= $SITE['organ'] . " - ". langtransstr('UV Index Forecast'); $showGizmo = true; // set to false to exclude the gizmo include("top.php"); ############################################################################ ?>
11) {$ourUVrounded = 11; } if ($ourUVrounded < 1 ) {$ourUVrounded = 1; } $ourUVicon = "uv" . sprintf("%02d",$ourUVrounded) . ".gif"; return( ''); } //========================================================================= // decode UV to word+color for display function get_uv_word ( $inUV ) { global $SITE; // figure out a text value and color for UV exposure text // 0 to 2 Low // 3 to 5 Moderate // 6 to 7 High // 8 to 10 Very High // 11+ Extreme $uv = preg_replace('|,|','.',$inUV); switch (TRUE) { case ($uv == 'n/a'): $uv = ''; break; case ($uv == 0): $uv = langtransstr('None'); break; case (($uv > 0) and ($uv < 3)): $uv = ' '.langtransstr('Low').' '; break; case (($uv >= 3) and ($uv < 6)): $uv = ' '.langtransstr('Medium').' '; break; case (($uv >=6 ) and ($uv < 8)): $uv = ' '.langtransstr('High').' '; break; case (($uv >=8 ) and ($uv < 11)): $uv = ' '.langtransstr('Very High').' '; break; case (($uv >= 11) ): $uv = ' '.langtransstr('Extreme').' '; break; } // end switch return $uv; } // end getUVword //========================================================================= ?>