Viewing file: ibocaedi.php (12.95 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!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><p><font size="4" face="Verdana, Arial, Helvetica, sans-serif">Módulo
de Ingreso de Datos en el IBOCA, PM10</font></p>
<?php
$control = isset($accion);
$f = 0;
if ($control === true and $accion == 1){
include('conexion3.php');
//echo $textfield;
$query ="UPDATE iboca SET uno='$textfield',dos='$textfield2',tres='$textfield3',cuatro='$textfield4',cinco='$textfield5',seis='$textfield6',siete='$textfield7',ocho='$textfield8',nueve='$textfield9',diez='$textfield10',once='$textfield11',doce='$textfield12',trece='$textfield13',catorce='$textfield14' WHERE fecha=$fechac";
$result = mysql_query($query,$db);
echo $result;
$f = 1;
}
if ($f == 0) {
$fechac = $anox . $mesx . $diax;
}
require('conexion3.php');
$consul = "SELECT *
FROM iboca where fecha = '$fechac'";
$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"];
?>
</td>
</tr>
<tr>
<td><form name="form1" method="post" action="">
<table width="600" border="0" cellspacing="0" cellpadding="4">
<tr bgcolor="#FF9900">
<td colspan="2"> <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 para la fecha: <?php echo $fechac; ?></strong></font></div></td>
</tr>
<tr>
<td width="5%"> <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>1</strong></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="textfield" type="text" value="<?php echo $uno; ?>" size="10">
Universidad del Bosque</font></td>
</tr>
<tr>
<td width="5%"> <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>2</strong></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="textfield2" type="text" value="<?php echo $dos; ?>" size="10">
Ministerio de Ambiente, Vivivienda y Desarrollo Territorial</font></td>
</tr>
<tr>
<td width="5%"> <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>3</strong></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="textfield3" type="text" value="<?php echo $tres; ?>" size="10">
Sony Music</font></td>
</tr>
<tr>
<td width="5%"> <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>4</strong></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="textfield4" type="text" value="<?php echo $cuatro; ?>" size="10">
Hospital del Olaya</font></td>
</tr>
<tr>
<td width="5%"> <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>5</strong></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="textfield5" type="text" value="<?php echo $cinco; ?>" size="10">
IDRD</font></td>
</tr>
<tr>
<td width="5%"> <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>6</strong></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="textfield6" type="text" value="<?php echo $seis; ?>" size="10">
Carrefour, Calle 80</font></td>
</tr>
<tr>
<td width="5%"> <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>7</strong></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="textfield7" type="text" value="<?php echo $siete; ?>" size="10">
Cazucá </font></td>
</tr>
<tr>
<td width="5%"> <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>8</strong></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="textfield8" type="text" value="<?php echo $ocho; ?>" size="10">
Escuela de Ingeniería</font></td>
</tr>
<tr>
<td width="5%"> <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>9</strong></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="textfield9" type="text" value="<?php echo $nueve; ?>" size="10">
Central de Mezclas</font></td>
</tr>
<tr>
<td width="5%"> <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>10</strong></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="textfield10" type="text" value="<?php echo $diez; ?>" size="10">
Universidad Santo Tómas </font></td>
</tr>
<tr>
<td width="5%"> <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>11</strong></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="textfield11" type="text" value="<?php echo $once; ?>" size="10">
Universidad Corpas</font></td>
</tr>
<tr>
<td width="5%"> <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>12</strong></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="textfield12" type="text" value="<?php echo $doce; ?>" size="10">
Cade Energía</font></td>
</tr>
<tr>
<td width="5%"> <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>13</strong></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="textfield13" type="text" value="<?php echo $trece; ?>" size="10">
Merck </font></td>
</tr>
<tr>
<td width="5%"> <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>14</strong></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="textfield14" type="text" value="<?php echo $catorce; ?>" size="10">
Fontibón </font></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input name="fechac" type="hidden" id="fechac" value="<?php echo $fechac; ?>">
<input name="accion" type="hidden" id="accion" value="1">
<input type="submit" name="Submit" value="Guardar los datos de éste día...">
</div></td>
</tr>
<tr>
<td colspan="2"><div align="center"><font size="1">Todos los derechos
reservados para el DAMA, 2003<br>
Sistema de Información Ambiental SIA-DAMA.</font></div></td>
</tr>
</table>
</form></td>
</tr>
<tr>
<td><table width="600" border="1" cellpadding="4" cellspacing="0" bordercolor="#999999" bgcolor="#FDF9DB">
<tr>
<td><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="accion2" type="hidden" id="accion22" value="1">
<input type="submit" name="Submit2" value="Ver">
</strong></font><strong> </strong> </div>
</form></td>
</tr>
</table></td>
</tr>
</table>
<p class="texto"> </p>
</body>
</html>
|