Viewing file: ibocaint.php (25.54 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$codigosec=16;
require('contar.php');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Material Particulado Respirable para Hoy - PM10</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;
}
-->
</style>
</head>
<body leftmargin="2" topmargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="8">
<tr>
<td><img src="banneribo.gif" width="600" height="60"></td>
</tr>
<tr>
<td><img src="map.jpg" width="600" height="381"></td>
</tr>
<tr>
<td><table width="600" border="0" cellspacing="0" cellpadding="2">
<tr>
<?php
require('hoy.php');
if ($montho < 10) {
$montho = "0" . $montho;
}
if ($mday < 10) {
$mday = "0". $mday;
}
$sing = isset($accion);
if ($sing == true) {
$year = $anox;
$montho = $mesx;
$mday = $diax;
}
//echo $mday;
$frde = $year . $montho . $mday;
//echo $frde;
$frdemin = $frde - 10;
$f = strlen($frdemin);
if ($f == 5) {
$bugu = 5;
}else{
$bugu = 6;
}
$resto = substr ($frdemin, $bugu);
//echo $resto;
if ($resto > 31)
{
$dif = 100 - $resto;
$difi = 31 - $dif;
$restoo = substr ($frde, $bugu);
$frdemin = $frde - 100;
//echo $frdemin;
$frdemin = $frdemin - $restoo;
//echo $frdemin;
$frdemin = $frdemin + $difi;
}
//echo $frdemin;
require('conexion3.php');
$consul = "SELECT *
FROM iboca where fecha <= $frde and fecha >= $frdemin"
. " order by fecha DESC";
$result = mysql_query($consul,$db);
$num_filas = mysql_num_rows($result);
$myrow = mysql_fetch_array($result);
$uno = $myrow["uno"];
$dos = $myrow["dos"];
$tres = $myrow["tres"];
$cuatro = $myrow["cuatro"];
$cinco = $myrow["cinco"];
$seis = $myrow["seis"];
$siete = $myrow["siete"];
$ocho = $myrow["ocho"];
$nueve = $myrow["nueve"];
$diez = $myrow["diez"];
$once = $myrow["once"];
$doce = $myrow["doce"];
$trece = $myrow["trece"];
$catorce = $myrow["catorce"];
$trans = $myrow["fecha"];
if ($num_filas == 0) {
$fechapresentar1 = "No hay datos del día";
}else{
require('fechanew.php');
}
$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 PM10 µg/m3 - <font color="#000066"><?php echo $fechapresentar1; ?></font></strong></font></div></td>
</tr>
<tr>
<?php
$vali = $uno;
require('color.php');
$fusion[$con] = $col;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>1</strong></font></div></td>
<td bgcolor="#999999"><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 > 191) {
$how = 190;
}else{
$how = $vali;
}
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<b>";
echo $vali;
echo "</b>";
?>
</font></font></td>
</tr>
<tr>
<?php
$vali = $dos;
require('color.php');
$fusion[$con] = $col;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>2</strong></font></div></td>
<td bgcolor="#999999"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 191) {
$how = 190;
}else{
$how = $vali;
}
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<b>";
echo $vali;
echo "</b>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $tres;
require('color.php');
$fusion[$con] = $col;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>3</strong></font></div></td>
<td bgcolor="#999999"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 191) {
$how = 190;
}else{
$how = $vali;
}
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<b>";
echo $vali;
echo "</b>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $cuatro;
require('color.php');
$fusion[$con] = $col;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>4</strong></font></div></td>
<td bgcolor="#999999"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 191) {
$how = 190;
}else{
$how = $vali;
}
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<b>";
echo $vali;
echo "</b>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $cinco;
require('color.php');
$fusion[$con] = $col;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>5</strong></font></div></td>
<td bgcolor="#999999"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 191) {
$how = 190;
}else{
$how = $vali;
}
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<b>";
echo $vali;
echo "</b>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $seis;
require('color.php');
$fusion[$con] = $col;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>6</strong></font></div></td>
<td bgcolor="#999999"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 191) {
$how = 190;
}else{
$how = $vali;
}
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<b>";
echo $vali;
echo "</b>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $siete;
require('color.php');
$fusion[$con] = $col;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>7</strong></font></div></td>
<td bgcolor="#999999"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 191) {
$how = 190;
}else{
$how = $vali;
}
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<b>";
echo $vali;
echo "</b>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $ocho;
require('color.php');
$fusion[$con] = $col;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>8</strong></font></div></td>
<td bgcolor="#999999"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 191) {
$how = 190;
}else{
$how = $vali;
}
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<b>";
echo $vali;
echo "</b>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $nueve;
require('color.php');
$fusion[$con] = $col;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>9</strong></font></div></td>
<td bgcolor="#999999"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 191) {
$how = 190;
}else{
$how = $vali;
}
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<b>";
echo $vali;
echo "</b>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $diez;
require('color.php');
$fusion[$con] = $col;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>10</strong></font></div></td>
<td bgcolor="#999999"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 191) {
$how = 190;
}else{
$how = $vali;
}
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<b>";
echo $vali;
echo "</b>";
?>
</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 = $once;
require('color.php');
$fusion[$con] = $col;
$con++;
?>
<td bgcolor="#999999"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 191) {
$how = 190;
}else{
$how = $vali;
}
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<b>";
echo $vali;
echo "</b>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $doce;
require('color.php');
$fusion[$con] = $col;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>12</strong></font></div></td>
<td bgcolor="#999999"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 191) {
$how = 190;
}else{
$how = $vali;
}
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<b>";
echo $vali;
echo "</b>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $trece;
require('color.php');
$fusion[$con] = $col;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>13</strong></font></div></td>
<td bgcolor="#999999"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 191) {
$how = 190;
}else{
$how = $vali;
}
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<b>";
echo $vali;
echo "</b>";
?>
</font></td>
</tr>
<tr>
<?php
$vali = $catorce;
require('color.php');
$fusion[$con] = $col;
$con++;
?>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>14</strong></font></div></td>
<td bgcolor="#999999"><font color="<?php echo $col; ?>" size="2" face="Arial, Helvetica, sans-serif" class="texto">
<?php
if ($vali > 191) {
$how = 190;
}else{
$how = $vali;
}
for ($i = 1; $i <= $how; $i++) {
echo "I";
}
echo " ";
echo "<b>";
echo $vali;
echo "</b>";
?>
</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>IIIIIIIII<strong>I</strong>IIIIIIIII<strong>I</strong>II<font color="#000000">IIIIIII<strong>I</strong>IIIIIII</font>II<strong>I</strong>IIIIIIIII<strong><font color="#00FF00">I</font></strong>IIIIIIIII<strong>I</strong>IIIIIIIII<strong>I</strong></font></td>
</tr>
<tr>
<td> </td>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif" class="texto">aaaaaaaaaaaaaaaaaaaaaaaaaaaaiiiiiiiiiaaaaaaaaa</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">aaaaaaaaaaaaiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiaiaaa</font><font size="2" face="Verdana, Arial, Helvetica, sans-serif" class="texto"><font color="#009900">180</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
PM10 (µg/m3)<br>
<font color="#009900">180 µg/m3</font>, es el límite
de la norma diaria para PM10.<br>
-----------------------------------------------------------------------------
<br>
<font color="#FF0000">Notas de la gráfica y de los datos:<br>
1- </font>Los datos en la gráfica con valor 0 indican que
no hay información para ese día.<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 fueron
tomados de "</strong><em>Air Quality Index, Guide to Air
<br>
Quality and Your Health</em><strong>" EPA, Agosto de 2003.<br>
-----------------------------------------------------------------------------
</strong></font></p>
</div></td>
</tr>
<tr>
<td> </td>
<td><div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="5%" bgcolor="#00FFFF"> </td>
<td width="15%" rowspan="2" valign="top" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Bueno</strong><br>
0 - 54 µg/m3<br>
<font size="1">Ningún efecto para la salud.</font></font><font size="1"> </font><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
<td width="5%" bgcolor="#FFFF00"> </td>
<td width="15%" rowspan="2" valign="top"><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Regular</strong></font><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><br>
55 - 154 µg/m3 <br>
<font size="1">Molestias en los ojos, nariz y garganta.</font></font><font size="1"><br>
</font> </td>
<td width="5%" bgcolor="#FF9900"> </td>
<td width="15%" rowspan="2" valign="top"><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Malo</strong></font><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><br>
155 - 254 µg/m3<br>
<font size="1">Insalubre para personas con enfermedades pulmonares
o cardiovasculares.</font></font></td>
<td width="5%" bgcolor="#FF0000"> </td>
<td width="15%" rowspan="2" valign="top"><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Muy
Malo </strong></font><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><br>
255 - 354 µg/m3<br>
<font size="1">Todas las personas experimentarán problemas
respiratorios. </font></font></td>
<td width="5%" bgcolor="#993366"> </td>
<td width="15%" rowspan="2" valign="top">
<p><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Alerta</strong><br>
355 ó más µg/m3<br>
<font size="1">Efectos severos sobre la salud de todas la
personas. </font></font></p></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
<td width="5%" bgcolor="#FFFFFF"> </td>
<td width="5%" bgcolor="#FFFFFF"> </td>
<td width="5%" bgcolor="#FFFFFF"> </td>
</tr>
</table>
<font size="1" face="Verdana, Arial, Helvetica, sans-serif"></font></div></td>
</tr>
<tr>
<td> </td>
<td valign="middle" bgcolor="#E7F5FE">
<form name="form1" method="post" action="">
<div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Ver
otra fecha: <strong>Día:
<select name="diax" id="diax">
<option value="01">1</option>
<option value="02">2</option>
<option value="03">3</option>
<option value="04">4</option>
<option value="05">5</option>
<option value="06">6</option>
<option value="07">7</option>
<option value="08">8</option>
<option value="09">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
Mes:
<select name="mesx" id="mesx">
<option value="01">Enero</option>
<option value="02">Febrero</option>
<option value="03">Marzo</option>
<option value="04">Abril</option>
<option value="05">Mayo</option>
<option value="06">Junio</option>
<option value="07">Julio</option>
<option value="08">Agosto</option>
<option value="09">Septiembre</option>
<option value="10">Octubre</option>
<option value="11">Noviembre</option>
<option value="12">Diciembre</option>
</select>
Año:
<select name="anox" id="anox">
<option value="1998">1998</option>
<option value="1999">1999</option>
<option value="2000">2000</option>
<option value="2001">2001</option>
<option value="2002">2002</option>
<option value="2003">2003</option>
<option value="2004">2004</option>
<option value="2005">2005</option>
<option value="2006">2006</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value="2012">2012</option>
<option value="2013">2013</option>
</select>
<input name="accion" type="hidden" id="accion" value="1">
<input type="submit" name="Submit" value="Ver">
</strong></font><strong> </strong> </div>
</form></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, 2004<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:535px; top:298px; width:23px; height:28px; z-index:1; background-color: <?php echo $fusion[8];?>; layer-background-color: #00CCCC; border: 1px none #000000;"></div>
<div id="Layer1" style="position:absolute; left:410px; top:373px; width:23px; height:28px; z-index:1; background-color: <?php echo $fusion[6];?>; layer-background-color: #00CCCC; border: 1px none #000000;"></div>
<div id="Layer1" style="position:absolute; left:353px; top:283px; width:23px; height:28px; z-index:1; background-color: <?php echo $fusion[2];?>; layer-background-color: #00CCCC; border: 1px none #000000;"></div>
<div id="Layer1" style="position:absolute; left:286px; top:267px; width:23px; height:28px; z-index:1; background-color: <?php echo $fusion[12];?>; layer-background-color: #00CCCC; border: 1px none #000000;"></div>
<div id="Layer1" style="position:absolute; left:245px; top:300px; width:23px; height:28px; z-index:1; background-color: <?php echo $fusion[13];?>; layer-background-color: #00CCCC; border: 1px none #000000;"></div>
<div id="Layer1" style="position:absolute; left:75px; top:217px; width:23px; height:28px; z-index:1; background-color: <?php echo $fusion[10];?>; layer-background-color: #00CCCC; border: 1px none #000000;"></div>
<div id="Layer1" style="position:absolute; left:220px; top:201px; width:23px; height:28px; z-index:1; background-color: <?php echo $fusion[5];?>; layer-background-color: #00CCCC; border: 1px none #000000;"></div>
<div id="Layer1" style="position:absolute; left:279px; top:203px; width:23px; height:28px; z-index:1; background-color: <?php echo $fusion[4];?>; layer-background-color: #00CCCC; border: 1px none #000000;"></div>
<div id="Layer1" style="position:absolute; left:321px; top:229px; width:23px; height:28px; z-index:1; background-color: <?php echo $fusion[11];?>; layer-background-color: #00CCCC; border: 1px none #000000;"></div>
<div id="Layer1" style="position:absolute; left:328px; top:165px; width:23px; height:28px; z-index:1; background-color: <?php echo $fusion[1];?>; layer-background-color: #00CCCC; border: 1px none #000000;"></div>
<div id="Layer1" style="position:absolute; left:248px; top:132px; width:23px; height:28px; z-index:1; background-color: <?php echo $fusion[9];?>; layer-background-color: #00CCCC; border: 1px none #000000;"></div>
<div id="Layer1" style="position:absolute; left:70px; top:125px; width:23px; height:28px; z-index:1; background-color: <?php echo $fusion[7];?>; layer-background-color: #00CCCC; border: 1px none #000000;"></div>
<div id="Layer1" style="position:absolute; left:147px; top:101px; width:23px; height:28px; z-index:1; background-color: <?php echo $fusion[0];?>; layer-background-color: #00CCCC; border: 1px none #000000;"></div>
<div id="Layer1" style="position:absolute; left:424px; top:218px; width:23px; height:28px; z-index:1; background-color: <?php echo $fusion[3]; ?>"></div>
<div id="Layer2" style="position:absolute; left:570px; top:513px; width:4px; height:250; z-index:2; background-color: #009900; layer-background-color: #009900; border: 1px none #000000;"></div>
<p class="texto"> </p>
</body>
</html>
|