</div> <!-- col-solar --> <div class="colMiddle"> <?php if (!$SITE['UV']) { echo ' <h3 class="ajaxHead">' . langtransstr('UV Index Forecast') . ' <a href="' . $SITE['pages']['printUV'] . '&lang=' . $lang . $extraP . $skiptopText . '"><img src="./img/submit.png" style="margin:1px; vertical-align: middle;" alt="' . $more_info . '" title="' . $more_info . '"></a>' . '</h3>' . PHP_EOL; $skipUVhtml = true; $script = $SITE['uvScript']; ws_message('<!-- module wsAjaxDashboard_v3.php (' . __LINE__ . '): loading ' . $script . ' -->'); include_once $script; if (isset($uvarray[0])) { echo ' <p class="rTxt" style="padding: 15px;">' . $uvarray[0]['img'] . '</p>' . PHP_EOL; echo ' <p class="mTxt" >'; echo langtransstr(date('l', $uvarray[0]['unixtime'])); echo '</p>' . PHP_EOL . '<hr />' . PHP_EOL; echo ' <p class="mTxt">'; echo '<b>' . $uvarray[0]['uv'] . '</b> ' . wsGetUVword($uvarray[0]['uv']); echo '</p>' . PHP_EOL; } } else { if (!isset($skiptopText)) { $skiptopText = '#data-area'; } echo ' <h3 class="ajaxHead">' . langtransstr('UV Index') . ' <a href="' . $SITE['pages']['printUV'] . '&lang=' . $lang . $extraP . $skiptopText . '"><img src="./img/submit.png" style="margin:1px; vertical-align: middle;" alt="' . $more_info . '" title="' . $more_info . '"></a>' . '</h3>' . PHP_EOL; if ($vars['ajaxuvmax'] == -1) { echo '<br />'; } ?> <p class="mTxt"><?php echo langtransstr('Now:'); ?> <span class="ajax" id="ajaxuv"><?php
function myUV_Index($array = '') { global $SITE, $minUV; $uvTxt = langtransstr('UV'); if (!is_array($array)) { return '<td>' . $uvTxt . '</td>'; } $uvValue = round($array['UV'] * 1.0); if (!isset($minUV)) { $minUV = 0; } if ($uvValue >= $minUV) { $string = '<span style="">' . $uvTxt . ' ' . round($uvValue) . '<br /></span>'; $string .= '' . wsGetUVword($uvValue); } else { $string = ''; } $tip = '<td style="text-align: right;">' . langtransstr('UV') . ': </td><td>' . wsgetUVword($uvValue) . '</td>'; return array('<td>' . $string . '</td>', $tip); }