Viewing file: ibocalive4II.php (38.86 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require('conexion4.php');
$today = getdate();
$month = $today['month'];
$montho = $today['mon'];
$mday = $today['mday'];
$year = $today['year'];
$wd = $today['wday'];
$sing = isset($acc);
if ($sing == true) {
$year = $anox;
$montho = $mesx;
$mday = $diax;
}
//echo $year;
//echo $montho;
//echo $mday;
if ($sing == true) {
$sh = 0;
if ($acc == "next") {
$tom = mktime(0,0,0,date("$montho") ,date("$mday")+1,date("$year"));
$sh = 1;
}
if ($acc == "prev") {
$tom = mktime(0,0,0,date("$montho") ,date("$mday")-1,date("$year"));
$sh = 1;
}
if ($sh == 0) {
$tom = mktime(0,0,0,$montho,$mday,$year);
}
//echo $tom;
$today = getdate($tom);
$montho = $today['mon'];
$month = $today['month'];
$mday = $today['mday'];
$year = $today['year'];
$wd = $today['wday'];
if ($montho < 10) {
$montho = 0 . $montho;
}
if ($mday < 10) {
$mday = 0 . $mday;
}
$fcons = $mday . "/" . $montho . "/" . $year;
}else{
if ($montho < 10) {
$montho = 0 . $montho;
}
if ($mday < 10) {
$mday = 0 . $mday;
}
$fcons = $mday . "/" . $montho . "/" . $year;
}
if ($wd==0) {
$wda = "Domingo";
}
if ($wd==1) {
$wda = "Lunes";
}
if ($wd==2) {
$wda = "Martes";
}
if ($wd==3) {
$wda = "Miércoles";
}
if ($wd==4) {
$wda = "Jueves";
}
if ($wd==5) {
$wda = "Viernes";
}
if ($wd==6) {
$wda = "Sábado";
}
require('fechanew2.php')
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Dióxido de Azufre para Hoy - SO2</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<style type="text/css">
<!--
.texto {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
text-decoration: none;
}
input {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #666666;
background-color: #F4F4F4;
}
select {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #666666;
background-color: #F4F4F4;
}
-->
</style>
</head>
<body link="#006699" vlink="#006699" alink="#006699" leftmargin="2" topmargin="0">
<div id="Layer5" style="position:absolute; left:388px; top:64px; width:207px; height:88px; z-index:5">
<table width="100%" border="0" cellpadding="4">
<tr>
<td><p><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Datos
para el día <?php echo $wda; ?><br>
<strong><font color="#336699" size="2"><img src="in.gif" width="8" height="8">
<?php echo $mday; ?> de <?php echo $lmes; ?> de <?php echo $year; ?>.</font></strong></font><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
</font></p>
</td>
</tr>
<tr>
<td><table width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#F4F4F4">
<tr>
<td><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><img src="fizq.gif" width="9" height="12"><a href="#">
</a></font></div></td>
<td valign="middle">
<div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="reqibocalive4II.php?acc=prev&diax=<?php echo $mday; ?>&mesx=<?php echo $montho; ?>&anox=<?php echo $year; ?>">Día
Anterior</a> <strong> <font face="Arial, Helvetica, sans-serif">I</font></strong><a href="reqibocalive4II.php?acc=next&diax=<?php echo $mday; ?>&mesx=<?php echo $montho; ?>&anox=<?php echo $year; ?>">
Día Siguiente</a></font></div></td>
<td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><img src="fder.gif" width="9" height="12"></font></td>
</tr>
</table></td>
</tr>
</table>
</div>
<div id="Layer7" style="position:absolute; left:472px; top:344px; width:80px; height:86px; z-index:7"><a href="#grafic"><img src="grafe.gif" alt="Mover hacia abajo o ver la gráfica." width="80" height="80" border="0"></a></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="banneribo4.gif" width="600" height="60"></td>
</tr>
<tr>
<td><img src="map.jpg" width="600" height="381">
<div id="Layer3" style="position:absolute; width:254px; height:115px; z-index:3">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td height="20" bgcolor="#FFFFFF"><img src="colores/azul.gif" width="20" height="20"></td>
<td width="80%" rowspan="2" valign="top" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font size="1">Bueno</font></strong><font size="1"><br>
<em>0 - 349 ppb</em><br>
<font color="#666666">Ningún efecto para la salud.</font></font></font><font color="#666666" size="1"> </font><font color="#666666" size="1" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
</tr>
<tr>
<td height="80%" bgcolor="#FFFFFF"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="20%" valign="top" bgcolor="#FFFFFF"><img src="colores/amarillo.gif" width="20" height="20"></td>
<td width="80%" rowspan="2" valign="top"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Moderado</strong><br>
<em> 350 - 1444 ppb</em><br>
</font><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><font size="1"><font color="#666666">Ningún
efecto para la salud.</font></font></font><font color="#666666" size="1"> </font><font color="#666666" size="1" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="20%" height="20" valign="top" bgcolor="#FFFFFF"><img src="colores/naranja.gif" width="20" height="20"></td>
<td width="80%" rowspan="2" valign="top"><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font size="1">Desfavorable
para grupos sensibles</font></strong></font><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"> </font><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><br>
<em>1445 - 2249 ppb</em><br>
<font color="#666666">Personas con asma deben considerar la posibilidad
de reducir la actividad física en exteriores.</font></font></td>
</tr>
<tr>
<td width="5%" bgcolor="#FFFFFF"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="20%" height="20" valign="top" bgcolor="#FFFFFF"><img src="colores/rojo.gif" width="20" height="20"></td>
<td width="80%" rowspan="2" valign="top"><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font size="1">Desfavorable</font></strong></font><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"><br>
<em>2250 - 3049 ppb</em><br>
<font color="#666666">Niños, asmáticos y personas
con enfermedades cardíacas o respiratorias deben reducir
la actividad física en exteriores.</font></font></td>
</tr>
<tr>
<td width="5%" bgcolor="#FFFFFF"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="20%" height="20" valign="top" bgcolor="#FFFFFF"><img src="colores/morado.gif" width="20" height="20"></td>
<td width="80%" rowspan="2" valign="top"> <p><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font size="1">Muy
desfavorable</font></strong><font size="1"><br>
<em>3050 o más ppb</em></font><br>
<font color="#666666" size="1">Niños, asmáticos y personas
con enfermedades cardíacas o respiratorias deben evitar
la actividad física en exteriores. Las demás personas
deben reducir la actividad física en exteriores. </font><br>
</font></p></td>
</tr>
<tr>
<td width="5%" bgcolor="#FFFFFF"> </td>
</tr>
</table>
</div>
<br>
<div id="Layer4" style="position:absolute; width:423px; height:47px; z-index:4">
<form name="form1" method="post" action="">
<div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Ver
otra fecha: <strong>Día:
<select name="diax" id="diax">
<?php
if ($mday == 1) {
echo "<option value=\"1\" selected>1</option>";
}else{
echo "<option value=\"1\">1</option>";
}
if ($mday == 2) {
echo "<option value=\"2\" selected>2</option>";
}else{
echo "<option value=\"2\">2</option>";
}
if ($mday == 3) {
echo "<option value=\"3\" selected>3</option>";
}else{
echo "<option value=\"3\">3</option>";
}
if ($mday == 4) {
echo "<option value=\"4\" selected>4</option>";
}else{
echo "<option value=\"4\">4</option>";
}
if ($mday == 5) {
echo "<option value=\"5\" selected>5</option>";
}else{
echo "<option value=\"5\">5</option>";
}
if ($mday == 6) {
echo "<option value=\"6\" selected>6</option>";
}else{
echo "<option value=\"6\">6</option>";
}
if ($mday == 7) {
echo "<option value=\"7\" selected>7</option>";
}else{
echo "<option value=\"7\">7</option>";
}
if ($mday == 8) {
echo "<option value=\"8\" selected>8</option>";
}else{
echo "<option value=\"8\">8</option>";
}
if ($mday == 9) {
echo "<option value=\"9\" selected>9</option>";
}else{
echo "<option value=\"9\">9</option>";
}
if ($mday == 10) {
echo "<option value=\"10\" selected>10</option>";
}else{
echo "<option value=\"10\">10</option>";
}
if ($mday == 11) {
echo "<option value=\"11\" selected>11</option>";
}else{
echo "<option value=\"11\">11</option>";
}
if ($mday == 12) {
echo "<option value=\"12\" selected>12</option>";
}else{
echo "<option value=\"12\">12</option>";
}
if ($mday == 13) {
echo "<option value=\"13\" selected>13</option>";
}else{
echo "<option value=\"13\">13</option>";
}
if ($mday == 14) {
echo "<option value=\"14\" selected>14</option>";
}else{
echo "<option value=\"14\">14</option>";
}
if ($mday == 15) {
echo "<option value=\"15\" selected>15</option>";
}else{
echo "<option value=\"15\">15</option>";
}
if ($mday == 16) {
echo "<option value=\"16\" selected>16</option>";
}else{
echo "<option value=\"16\">16</option>";
}
if ($mday == 17) {
echo "<option value=\"17\" selected>17</option>";
}else{
echo "<option value=\"17\">17</option>";
}
if ($mday == 18) {
echo "<option value=\"18\" selected>18</option>";
}else{
echo "<option value=\"18\">18</option>";
}
if ($mday == 19) {
echo "<option value=\"19\" selected>19</option>";
}else{
echo "<option value=\"19\">19</option>";
}
if ($mday == 20) {
echo "<option value=\"20\" selected>20</option>";
}else{
echo "<option value=\"20\">20</option>";
}
if ($mday == 21) {
echo "<option value=\"21\" selected>21</option>";
}else{
echo "<option value=\"21\">21</option>";
}
if ($mday == 22) {
echo "<option value=\"22\" selected>22</option>";
}else{
echo "<option value=\"22\">22</option>";
}
if ($mday == 23) {
echo "<option value=\"23\" selected>23</option>";
}else{
echo "<option value=\"23\">23</option>";
}
if ($mday == 24) {
echo "<option value=\"24\" selected>24</option>";
}else{
echo "<option value=\"24\">24</option>";
}
if ($mday == 25) {
echo "<option value=\"25\" selected>25</option>";
}else{
echo "<option value=\"25\">25</option>";
}
if ($mday == 26) {
echo "<option value=\"26\" selected>26</option>";
}else{
echo "<option value=\"26\">26</option>";
}
if ($mday == 27) {
echo "<option value=\"27\" selected>27</option>";
}else{
echo "<option value=\"27\">27</option>";
}
if ($mday == 28) {
echo "<option value=\"28\" selected>28</option>";
}else{
echo "<option value=\"28\">28</option>";
}
if ($mday == 29) {
echo "<option value=\"29\" selected>29</option>";
}else{
echo "<option value=\"29\">29</option>";
}
if ($mday == 30) {
echo "<option value=\"30\" selected>30</option>";
}else{
echo "<option value=\"30\">30</option>";
}
if ($mday == 31) {
echo "<option value=\"31\" selected>31</option>";
}else{
echo "<option value=\"31\">31</option>";
}
?>
</select>
Mes:
<select name="mesx" id="mesx">
<?
if ($montho == 1) {
echo "<option value=\"1\" selected>Enero</option>";
}else{
echo "<option value=\"1\">Enero</option>";
}
if ($montho == 2) {
echo "<option value=\"2\" selected>Febrero</option>";
}else{
echo "<option value=\"2\">Febrero</option>";
}
if ($montho == 3) {
echo "<option value=\"3\" selected>Marzo</option>";
}else{
echo "<option value=\"3\">Marzo</option>";
}
if ($montho == 4) {
echo "<option value=\"4\" selected>Abril</option>";
}else{
echo "<option value=\"4\">Abril</option>";
}
if ($montho == 5) {
echo "<option value=\"5\" selected>Mayo</option>";
}else{
echo "<option value=\"5\">Mayo</option>";
}
if ($montho == 6) {
echo "<option value=\"6\" selected>Junio</option>";
}else{
echo "<option value=\"6\">Junio</option>";
}
if ($montho == 7) {
echo "<option value=\"7\" selected>Julio</option>";
}else{
echo "<option value=\"7\">Julio</option>";
}
if ($montho == 8) {
echo "<option value=\"8\" selected>Agosto</option>";
}else{
echo "<option value=\"8\">Agosto</option>";
}
if ($montho == 9) {
echo "<option value=\"9\" selected>Septiembre</option>";
}else{
echo "<option value=\"9\">Septiembre</option>";
}
if ($montho == 10) {
echo "<option value=\"10\" selected>Octubre</option>";
}else{
echo "<option value=\"10\">Octubre</option>";
}
if ($montho == 11) {
echo "<option value=\"11\" selected>Noviembre</option>";
}else{
echo "<option value=\"11\">Noviembre</option>";
}
if ($montho == 12) {
echo "<option value=\"12\" selected>Diciembre</option>";
}else{
echo "<option value=\"12\">Diciembre</option>";
}
?>
</select>
Año:
<select name="anox" id="anox">
<?
if ($year == 1997) {
echo "<option value=\"1997\" selected>1997</option>";
}else{
echo "<option value=\"1997\">1997</option>";
}
if ($year == 1998) {
echo "<option value=\"1998\" selected>1998</option>";
}else{
echo "<option value=\"1998\">1998</option>";
}
if ($year == 1999) {
echo "<option value=\"1999\" selected>1999</option>";
}else{
echo "<option value=\"1999\">1999</option>";
}
if ($year == 2000) {
echo "<option value=\"2000\" selected>2000</option>";
}else{
echo "<option value=\"2000\">2000</option>";
}
if ($year == 2001) {
echo "<option value=\"2001\" selected>2001</option>";
}else{
echo "<option value=\"2001\">2001</option>";
}
if ($year == 2002) {
echo "<option value=\"2002\" selected>2002</option>";
}else{
echo "<option value=\"2002\">2002</option>";
}
if ($year == 2003) {
echo "<option value=\"2003\" selected>2003</option>";
}else{
echo "<option value=\"2003\">2003</option>";
}
if ($year == 2004) {
echo "<option value=\"2004\" selected>2004</option>";
}else{
echo "<option value=\"2004\">2004</option>";
}
if ($year == 2005) {
echo "<option value=\"2005\" selected>2005</option>";
}else{
echo "<option value=\"2005\">2005</option>";
}
if ($year == 2006) {
echo "<option value=\"2006\" selected>2006</option>";
}else{
echo "<option value=\"2006\">2006</option>";
}
if ($year == 2007) {
echo "<option value=\"2007\" selected>2007</option>";
}else{
echo "<option value=\"2007\">2007</option>";
}
if ($year == 2008) {
echo "<option value=\"2008\" selected>2008</option>";
}else{
echo "<option value=\"2008\">2008</option>";
}
if ($year == 2009) {
echo "<option value=\"2009\" selected>2009</option>";
}else{
echo "<option value=\"2009\">2009</option>";
}
if ($year == 2010) {
echo "<option value=\"2010\" selected>2010</option>";
}else{
echo "<option value=\"2010\">2010</option>";
}
if ($year == 2011) {
echo "<option value=\"2011\" selected>2011</option>";
}else{
echo "<option value=\"2011\">2011</option>";
}
if ($year == 2012) {
echo "<option value=\"2012\" selected>2012</option>";
}else{
echo "<option value=\"2012\">2012</option>";
}
if ($year == 2013) {
echo "<option value=\"2013\" selected>2013</option>";
}else{
echo "<option value=\"2013\">2013</option>";
}
?>
</select>
<input name="acc" type="hidden" id="accion" value="1">
<input type="submit" name="Submit" value="Ver">
</strong></font> </div>
</form>
</div>
<p> </p></td>
</tr>
<tr>
<td><table width="600" border="0" cellspacing="0" cellpadding="2">
<tr>
<?php
//echo $fcons;
$stmt = ociparse($c1,"select distinct medias_diarias.estacion_id, medias_diarias.valor
from medias_diarias, estaciones_magnitudes
where medias_diarias.magnitud_indx=estaciones_magnitudes.magnitud_indx
and medias_diarias.estacion_id=estaciones_magnitudes.estacion_id
and estaciones_magnitudes.magnitud_id=1 and to_char(medias_diarias.fecha, 'dd/mm/yyyy')='$fcons'");
//echo $stmt;
$result = OCIExecute($stmt);
$num_filas = 0;
while (OCIFetchInto($stmt, $value)) {
$nextel = $value[0];
$stmt1 = ociparse($c1,"select codigo from estaciones where estacion_id = $nextel");
$result1 = OCIExecute($stmt1);
while (OCIFetchInto($stmt1, $value1))
{
$estacionid = $value1[0];
}
$vali = $value[1];
//echo "<br>...";
//echo $vali;
//echo "---";
//echo $estacionid;
//echo "<br>";
require('colorso2.php');
$val[$estacionid] = $vali;
$fusion[$estacionid] = $col1;
$num_filas++;
}
$ul = 0;
for ($i = 1; $i <= 14; $i++) {
$compr = isset($val[$i]);
if ($compr == false) {
$val[$i] = 0;
}
$ul++;
}
if ($num_filas == 0) {
$fechapresentar = "Sin datos registrados aún.";
$fic = 1;
}else{
require('fechanew2.php');
$fic = 0;
}
$con = 0;
?>
<td colspan="2" bgcolor="#00CCFF"><div align="center"></div>
<div align="center"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Promedios
Diarios de SO2 (ppb)<a name="grafic"></a> - <font color="#000066"><?php echo $fechapresentar; ?></font></strong></font></div></td>
</tr>
<tr>
<?php
$vali = $val[1];
require('colorso2.php');
$fusion[$con] = $col1;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>1</strong></font></div></td>
<td bgcolor="#CCCCCC"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 134) {
$how = 134;
}else{
$how = $vali;
}
//$how = $how * 500;
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<font color=\"000000\"><b>";
echo $vali;
echo "</b></font>";
?>
</font></font></td>
</tr>
<tr>
<?php
$vali = $val[2];
require('colorso2.php');
$fusion[$con] = $col1;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>2</strong></font></div></td>
<td bgcolor="#CCCCCC"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 134) {
$how = 134;
}else{
$how = $vali;
}
//$how = $how * 500;
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<font color=\"000000\"><b>";
echo $vali;
echo "</b></font>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $val[3];
require('colorso2.php');
$fusion[$con] = $col1;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>3</strong></font></div></td>
<td bgcolor="#CCCCCC"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 134) {
$how = 134;
}else{
$how = $vali;
}
//$how = $how * 500;
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<font color=\"000000\"><b>";
echo $vali;
echo "</b></font>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $val[4];
require('colorso2.php');
$fusion[$con] = $col1;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>4</strong></font></div></td>
<td bgcolor="#CCCCCC"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 134) {
$how = 134;
}else{
$how = $vali;
}
//$how = $how * 500;
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<font color=\"000000\"><b>";
echo $vali;
echo "</b></font>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $val[5];
require('colorso2.php');
$fusion[$con] = $col1;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>5</strong></font></div></td>
<td bgcolor="#CCCCCC"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 134) {
$how = 134;
}else{
$how = $vali;
}
//$how = $how * 500;
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<font color=\"000000\"><b>";
echo $vali;
echo "</b></font>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $val[6];
require('colorso2.php');
$fusion[$con] = $col1;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>6</strong></font></div></td>
<td bgcolor="#CCCCCC"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 134) {
$how = 134;
}else{
$how = $vali;
}
//$how = $how * 500;
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<font color=\"000000\"><b>";
echo $vali;
echo "</b></font>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $val[7];
require('colorso2.php');
$fusion[$con] = $col1;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>7</strong></font></div></td>
<td bgcolor="#CCCCCC"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 134) {
$how = 134;
}else{
$how = $vali;
}
//$how = $how * 500;
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<font color=\"000000\"><b>";
echo $vali;
echo "</b></font>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $val[8];
require('colorso2.php');
$fusion[$con] = $col1;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>8</strong></font></div></td>
<td bgcolor="#CCCCCC"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 134) {
$how = 134;
}else{
$how = $vali;
}
//$how = $how * 500;
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<font color=\"000000\"><b>";
echo $vali;
echo "</b></font>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $val[9];
require('colorso2.php');
$fusion[$con] = $col1;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>9</strong></font></div></td>
<td bgcolor="#CCCCCC"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 134) {
$how = 134;
}else{
$how = $vali;
}
//$how = $how * 500;
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<font color=\"000000\"><b>";
echo $vali;
echo "</b></font>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $val[10];
require('colorso2.php');
$fusion[$con] = $col1;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>10</strong></font></div></td>
<td bgcolor="#CCCCCC"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 134) {
$how = 134;
}else{
$how = $vali;
}
//$how = $how * 500;
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<font color=\"000000\"><b>";
echo $vali;
echo "</b></font>";
?>
</font></td>
</tr>
<tr>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>11</strong></font></div></td>
<?php
$vali = $val[11];
require('colorso2.php');
$fusion[$con] = $col1;
$con++;
?>
<td bgcolor="#CCCCCC"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 134) {
$how = 134;
}else{
$how = $vali;
}
//$how = $how * 500;
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<font color=\"000000\"><b>";
echo $vali;
echo "</b></font>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $val[12];
require('colorso2.php');
$fusion[$con] = $col1;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>12</strong></font></div></td>
<td bgcolor="#CCCCCC"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 134) {
$how = 134;
}else{
$how = $vali;
}
//$how = $how * 500;
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<font color=\"000000\"><b>";
echo $vali;
echo "</b></font>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $val[13];
require('colorso2.php');
$fusion[$con] = $col1;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>13</strong></font></div></td>
<td bgcolor="#CCCCCC"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 134) {
$how = 134;
}else{
$how = $vali;
}
//$how = $how * 500;
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<font color=\"000000\"><b>";
echo $vali;
echo "</b></font>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $val[14];
require('colorso2.php');
$fusion[$con] = $col1;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>14</strong></font></div></td>
<td bgcolor="#CCCCCC"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 134) {
$how = 134;
}else{
$how = $vali;
}
//$how = $how * 500;
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<font color=\"000000\"><b>";
echo $vali;
echo "</b></font>";
?>
</font></td>
</tr>
<tr>
<td> </td>
<td><font size="2" face="Arial, Helvetica, sans-serif" class="texto">IIIIIIIII<strong>I</strong>IIIIIIIII<strong>I</strong>IIIIIIIII<strong>I</strong>IIIIIIIII<strong>I</strong>IIIIIIIII<strong>I</strong>IIIIIIIII<strong>I</strong>IIIIIIIII<strong>I</strong>IIIIIIIII<strong>I</strong>IIIIIIIII<strong>I</strong>IIIIIIIII<strong><font color="#FF0000">I</font></strong>IIIIIIIII<strong>I</strong>IIIIIIIII<strong>I</strong>IIIIIIIII<strong>I</strong>IIII<font color="#009900">I</font>IIII<strong>I</strong>IIIIIIIII<strong>I</strong>II<font color="#000000">IIIIIII<strong>I</strong>IIIIIII</font>II<strong>I</strong>IIIIIII<font color="#000000">II<strong>I</strong>I</font>IIIIIIII<strong>I</strong>IIIIIIIII<strong>I</strong>II<font color="#000000">IIIIIII<strong>I</strong>IIIIIII</font>II<strong>I</strong></font></td>
</tr>
<tr>
<td> </td>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif" class="texto">aaaaaaaaaaaaaaaaaaaa<font color="#000000">50</font>aaaaaaiiiiiiiiiaaaaaaaaia</font><font size="2" face="Verdana, Arial, Helvetica, sans-serif" class="texto"><font color="#FF0000">100</font><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif" class="texto">aaaaaaaaaaaii<font color="#009900">134</font>iiiiiiii<font color="#000000">150</font>iiiiiiiiiiiiiiiiiiiiiiiaia</font><font size="2" face="Verdana, Arial, Helvetica, sans-serif" class="texto"><font color="#FFFFFF">0.36iiiiii<font color="#000000">200</font></font></font></font></td>
</tr>
<tr>
<td> </td>
<td><div align="center">
<p><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>Concentración
SO2 (ppb)<br>
-----------------------------------------------------------------------------
</strong></font></p>
</div>
<blockquote>
<blockquote>
<blockquote>
<blockquote>
<div align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FF0000">Notas
de la gráfica y de los datos:<br>
1- </font>Los datos con valor
0 indican que no hay información para ese día
ó que en dicha estación no se dispone de esa
medición.<br>
<font color="#FF0000">2- </font>Los datos presentados han
surtido un proceso de prevalidación, pero es posible<br>
que cambien con una validación posterior.<br>
<font color="#FF0000">3- </font>Los rangos de salubridad
representados en el mapa fueron tomados de "</strong><em>Air
Quality Index, Guide to Air Quality and Your Health</em><strong>"
EPA, Agosto de 2003.<br>
<font color="#FF0000">4- </font></strong><strong><font color="#009900">134
ppb</font>, es el límite de la norma horaria para
SO2.<br>
<font color="#FF0000">5- </font>El DAMA no se hace responsable
por los perjuicios que el uso de esta información
pueda ocasionar.</strong><strong> </strong></font></div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div align="center">
<p><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong>
-----------------------------------------------------------------------------
</strong></font></p>
</div></td>
</tr>
<tr>
<td> </td>
<td valign="middle" bgcolor="#E7F5FE"> </td>
</tr>
<tr>
<td colspan="2"><div align="center">
<p><img src="logodama.gif" width="73" height="65"><br>
<font size="1" face="Verdana, Arial, Helvetica, sans-serif">Todos
los derechos reservados para el DAMA, <strong>2005</strong><br>
Sistema de Información Ambiental SIA-DAMA.<br>
Contáctenos en <a href="mailto:redaire@dama.gov.co">redaire@dama.gov.co</a></font></p>
</div></td>
</tr>
</table></td>
</tr>
<tr>
<td bordercolor="#CCCCCC"> </td>
</tr>
</table>
<div id="Layer1" style="position:absolute; left:523px; top:277px; width:23px; height:28px; z-index:1; background-image: url("><img src="<?php echo $fusion[8];?>" width="25" height="25"></div>
<div id="Layer1" style="position:absolute; left:400px; top:353px; width:23px; height:28px; z-index:1; background-image: url("><img src="<?php echo $fusion[6];?>" width="25" height="25"></div>
<div id="Layer1" style="position:absolute; left:344px; top:263px; width:23px; height:28px; z-index:1; background-image: url("><img src="<?php echo $fusion[2];?>" width="25" height="25"></div>
<div id="Layer1" style="position:absolute; left:277px; top:247px; width:23px; height:28px; z-index:1; background-image: url("><img src="<?php echo $fusion[12];?>" width="25" height="25"></div>
<div id="Layer1" style="position:absolute; left:236px; top:280px; width:23px; height:28px; z-index:1; background-image: url("><img src="<?php echo $fusion[13];?>" width="25" height="25"></div>
<div id="Layer1" style="position:absolute; left:66px; top:197px; width:23px; height:28px; z-index:1; background-image: url("><img src="<?php echo $fusion[10];?>" width="25" height="25"></div>
<div id="Layer1" style="position:absolute; left:211px; top:179px; width:23px; height:28px; z-index:1; background-image: url("><img src="<?php echo $fusion[5];?>" width="25" height="25"></div>
<div id="Layer1" style="position:absolute; left:270px; top:181px; width:23px; height:28px; z-index:1; background-image: url("><img src="<?php echo $fusion[4];?>" width="25" height="25"></div>
<div id="Layer1" style="position:absolute; left:312px; top:209px; width:23px; height:28px; z-index:1; background-image: url("><img src="<?php echo $fusion[11];?>" width="25" height="25"></div>
<div id="Layer1" style="position:absolute; left:319px; top:143px; width:23px; height:28px; z-index:1; background-image: url("><img src="<?php echo $fusion[1];?>" width="25" height="25"></div>
<div id="Layer1" style="position:absolute; left:238px; top:112px; width:23px; height:28px; z-index:1; background-image: url("><img src="<?php echo $fusion[9];?>" width="25" height="25"></div>
<div id="Layer1" style="position:absolute; left:61px; top:105px; width:23px; height:28px; z-index:1; background-image: url("><img src="<?php echo $fusion[7];?>" width="25" height="25"></div>
<div id="Layer1" style="position:absolute; left:138px; top:81px; width:23px; height:28px; z-index:1; background-image: url("><img src="<?php echo $fusion[0];?>" width="25" height="25"></div>
<div id="Layer1" style="position:absolute; left:412px; top:194px; width:23px; height:28px; z-index:1; background-image: url("><img src="<?php echo $fusion[3];?>" width="25" height="25"></div>
<div id="Layer2" style="position:absolute; left:428px; top:513px; width:4px; height:250; z-index:2; background-color: #009900; layer-background-color: #009900; border: 1px none #000000;"></div>
<?php
if ($fic==1) {
?>
<div id="Layer6" style="position:absolute; left:144px; top:184px; width:302px; height:99px; z-index:6">
<table width="100%" border="1" cellpadding="8" bordercolor="#CCCCCC">
<tr>
<td bgcolor="#FFFFFF">
<div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#336699" size="2"><img src="in.gif" width="8" height="8"></font></strong></font>
<font color="#FF9900" size="2">Nota sobre la fecha </font><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><strong><font color="#336699"><img src="in.gif" width="8" height="8"></font></strong></strong></font></strong><br>
Hasta el momento no existe la cantidad adecuada de registros para realizar
promedios diarios de concentración o no se obtuvieron datos suficientes
para presentar los promedios del día.<br>
<a href="reqibocalive4II.php?acc=prev&diax=<?php echo $mday; ?>&mesx=<?php echo $montho; ?>&anox=<?php echo $year; ?>">Ver
el Día Anterior</a> <strong> <font face="Arial, Helvetica, sans-serif"></font></strong>
</font></div></td>
</tr>
</table>
<p> </p>
</div>
<?php } ?>
</body>
</html>
|