Viewing file: viewnews.php (3.91 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Noticias Ambientales del DAMA</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
//-->
</script>
</head>
<?php
require('conexion3.php');
$consul = "SELECT *
FROM news where id=$id";
$result = mysql_query($consul,$db);
$num_filas = mysql_num_rows($result);
while ($myrow = mysql_fetch_array($result))
{
$idacc1 = $myrow["id"];
$fechaacc1 = $myrow["fecha"];
$catacc1 = $myrow["cat"];
$titularacc1 = $myrow["titular"];
$textoacc1 = $myrow["texto"];
$descriacc1 = $myrow["descri"];
$ficha = $myrow["fichero"];
//echo $ficha;
$trans = $fechaacc1;
$textoa = $textoacc1;
if ($ficha == "") {
$ficha = "colores/news.gif";
$h = 0;
$v = 0;
}else{
$h = 10;
$v = 10;
}
//$textoa = str_replace("\n", "<br>", $textoa);
require('fechanew.php');
}
$consul = "SELECT *
FROM catnew where catid=$catacc1";
$result = mysql_query($consul,$db);
$num_filas = mysql_num_rows($result);
while ($myrow = mysql_fetch_array($result))
{
$nocx = $myrow["catno"];
}
?>
<body link="#0099CC" vlink="#0099CC" alink="#0099CC" topmargin="0">
<table width="100%" border="0" cellpadding="5">
<tr>
<td colspan="4"><div align="center"><img src="prensa.gif" width="500" height="113"></div></td>
</tr>
<tr>
<td width="30%" bgcolor="#FFFFFF"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
<td width="224" background="colores/azulcla.gif" bgcolor="#000000"> <img src="colores/azulcla.gif" width="438" height="1"><br>
<font color="#666666" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Bogotá,
<?php echo $fechapresentar; ?> </strong></font></td>
<td width="50" valign="middle" background="colores/azulcla.gif" bgcolor="#000000"><font color="#666666" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><a href="#"><img src="colores/back.gif" alt="Regresar..." width="50" height="12" border="0" onClick="MM_callJS('history.go(-1);')"></a></strong></font></td>
<td width="30%" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td colspan="4"><table width="100%" border="0" cellpadding="6">
<tr>
<td> </td>
<td valign="top"><img src="colores/blanco.gif" width="500" height="1"><br>
<font color="#999999" size="6" face="Times New Roman, Times, serif"><?php echo $nocx; ?></font></td>
<td> </td>
</tr>
<tr>
<td width="30%"> </td>
<td width="40%" valign="top"><p><img src="colores/blanco.gif" width="480" height="1"><br>
<font size="3" face="Times New Roman, Times, serif"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><img src="colores/punt.gif" width="12" height="11">
<?php echo $titularacc1; ?></font></strong></font></p>
<p align="justify"><font color="#666666" size="2" face="Verdana, Arial, Helvetica, sans-serif"><img src="<?php echo $ficha; ?>" hspace="<?php echo $h; ?>" vspace="<?php echo $v; ?>" align="left"><?php echo $textoa; ?></font></p></td>
<td width="30%"> </td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="4" bgcolor="#000000"> </td>
</tr>
<tr>
<td colspan="4"><div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Contáctenos
en: <a href="mailto:prensa@dama.gov.co">prensa@dama.gov.co</a><br>
Todos los Derechos Reservados para el DAMA<br>
Departamento Técnico Administrativo del Medio Ambiente.<br>
<em>Subsistema del Sistema de Información Ambiental SIA-DAMA</em><br>
<strong>2004</strong></font></div></td>
</tr>
</table>
</body>
</html>
|