Viewing file: air.php (6.97 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$codigosec=15;
require('contar.php');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Red de la Calidad del Aire para Bogotá</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body link="#003366" vlink="#003366" alink="#003366" topmargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="128"><img src="air/1.gif" width="141" height="98"></td>
<td align="left"><img src="air/2.gif" width="612" height="98"></td>
</tr>
<tr>
<td width="128" valign="top" background="air/f.gif" bgcolor="#FCF5C7"> <p><img src="air/c.gif" width="141" height="30"><font face="Verdana, Arial, Helvetica, sans-serif">
<table width="120" border="0" cellspacing="0" cellpadding="4">
<tr>
<td colspan="2" valign="top">
<?php
include('reqcollap.php');
?>
</td>
</tr>
</table>
</font></p> </td>
<td rowspan="2" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="8">
<tr>
<td width="600"><table width="100%" border="1" cellpadding="6" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<?php
require('conexion3.php');
$hora = getdate();
$yr = $hora["year"];
$mo = $hora["mon"];
$dy = $hora["mday"];
$mo = $mo * 100;
$yr = $yr - 2000;
$yr = $yr * 10000;
$fc = $mo + $yr;
$fc1 = $fc + 100;
//echo $fc;
//echo $fc1;
//$fc = $mo + $yr + $dy;
$consul = "SELECT *
FROM news where fecha<'$fc1' and cat=12"
. " order by fecha DESC limit 0,1";
$result = mysql_query($consul,$db);
$num_filas = mysql_num_rows($result);
while ($myrow = mysql_fetch_array($result))
{
$idacc1 = $myrow["id"];
$descriacc1 = $myrow["descri"];
$catacc1 = $myrow["cat"];
$fechara = $myrow["fecha"];
$nfile = $myrow["fichero"];
$tax = $myrow["texto"];
$titularacc1 = $myrow["titular"];
$anne = $fechara / 10000;
$anne = intval($anne);
$ap = $anne + 2000;
$rf = $anne * 10000;
$fechara = $fechara - $rf;
$mun = $fechara / 100;
$mun = intval($mun);
$mp = $mun;
$rfa = $mun * 100;
$dya = $fechara - $rfa;
$frj = strlen($tax);
if ($frj > 150) {
//$resto = substr ("$tax", 0, 200);
$resto = $tax;
}else{
$resto = $tax;
}
$resto = str_replace("\n", "<br>", $resto);
$veri1 = 1;
if ($veri1 == 1) {
?>
<td> <table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="250" valign="top"> <p><img src="air/3.gif" width="124" height="39"><br>
<font color="#003366" size="1" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $dya; ?>/<?php echo $mp; ?>/<?php echo $ap; ?></font><font face="Verdana, Arial, Helvetica, sans-serif"><br>
<font size="4"><strong><?php echo $titularacc1; ?></strong></font><br>
<font color="#666666" size="2"><?php echo $descriacc1; ?></font></font></p>
<p><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><font color="#339900"><a href="#">
</a></font><img src="air/5.gif" width="8" height="12">
<font color="#FF9900"><a href="requirenew3.php?id=<?php echo $idacc1; ?>">Ver
la historia completa...</a></font></font></p>
</td>
<td valign="top">
<div align="right">
<p align="center"><a href="requirenew3.php?id=<?php echo $idacc1; ?>"><img src="<?php echo $nfile; ?>" border="1"></a></p>
</div></td>
</tr>
</table></td>
<?php }} ?>
</tr>
</table></td>
<td> </td>
</tr>
<tr>
<td width="600"><table width="100%" border="0" cellspacing="0" cellpadding="6">
<tr>
<td width="50%" valign="top">
<table width="100%" border="1" cellpadding="4" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td bordercolor="#FFFFFF">
<div align="left"><img src="air/6.gif" width="232" height="29"><img src="air/ld.gif" width="32" height="29"></div></td>
</tr>
<tr>
<?php
include('conect/conect.php');
$consul = "SELECT *
FROM links where temas_id like '%$patron%' and perfil=1"
. " order by fecha DESC,mes DESC,dis DESC,priority DESC,nombre limit 0,1";
$result = mysql_query($consul,$db);
$num_filas = mysql_num_rows($result);
$myrow = mysql_fetch_array($result);
$tid = $myrow["id"];
$tnombre = $myrow["nombre"];
$tdescripcion = $myrow["descripcion"];
$tlink = $myrow["link"];
$tfecha = $myrow["fecha"];
$tmes = $myrow["mes"];
$tdia = $myrow["dis"];
$tdescripcion = str_replace("\n", "<br>", $tdescripcion);
$fecha = $tdia . "/" . $tmes . "/" . $tfecha;
?>
<td bordercolor="#CCCCCC"><img src="air/tip.gif" width="12" height="12">
<font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="reqiboca.php">Informe
diario de PM10</a></font></td>
</tr>
</table> </td>
<td width="50%" valign="top">
<table width="100%" border="1" cellpadding="4" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td><img src="air/7.gif" width="232" height="29"></td>
</tr>
<tr>
<td bordercolor="#CCCCCC"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><img src="air/5.gif" width="8" height="12">
Más Información de la Red de Calidad del
Aire: <a href="mailto:redaire@dama.gov.co"><font color="#003366">redaire@dama.gov.co</font></a><font color="#003366">,
</font><br>
John A. Real</font></td>
</tr>
</table></td>
</tr>
</table></td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td width="128" valign="top" background="air/f.gif"> </td>
</tr>
<tr>
<td width="128"><font face="Verdana, Arial, Helvetica, sans-serif">>>
</font></td>
<td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Todos los
Derechos Reservados para el DAMA, Departamento Técnico Administrativo
del Medio Ambiente<br>
Sistema de Información Ambiental SIA-DAMA, 1998-2006, Bogotá,
Colombia. </font></td>
</tr>
</table>
</body>
</html>
|