Viewing file: pml.php (9.78 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$codigosec=13;
require('contar.php');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Desarrollo Empresarial Sostenible</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body link="#339933" vlink="#339900" alink="#339900" topmargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="128"><font face="Verdana, Arial, Helvetica, sans-serif"><img src="1.gif" width="128" height="85"></font></td>
<td align="left"><font face="Verdana, Arial, Helvetica, sans-serif"><img src="2.gif" width="622" height="85"></font></td>
</tr>
<tr>
<td width="128" valign="top" bgcolor="#FFFFFF"> <p><font face="Verdana, Arial, Helvetica, sans-serif"><img src="3.gif" width="128" height="103">
<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="600" border="1" cellpadding="6" cellspacing="0" bordercolor="#CCCCCC">
<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=7"
. " 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"];
$descriacc1 = str_replace("\n", "<br>", $descriacc1);
$catacc1 = $myrow["cat"];
$fechara = $myrow["fecha"];
$tax = $myrow["texto"];
$fic = $myrow["fichero"];
$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 > 250) {
$resto = substr ("$tax", 0, 250);
}else{
$resto = $tax;
}
$resto = str_replace("\n", "<br>", $resto);
$veri1 = substr_count($titularacc1, "(f)");
if ($veri1 == 1) {
$titularacc1 = str_replace("(f)", "", $titularacc1);
?>
<td> <table width="100%" border="0" cellspacing="0" cellpadding="8">
<tr>
<td valign="top"> <p><font face="Verdana, Arial, Helvetica, sans-serif"><img src="newban.gif" width="331" height="31"><br>
</font><font color="#33CC66" size="1" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $dya; ?><font color="#339900">/</font><?php echo $mp; ?><font color="#339900">/</font><?php echo $ap; ?></font><font face="Verdana, Arial, Helvetica, sans-serif"><br>
<font size="4"><strong><?php echo $titularacc1; ?></strong></font></p>
<p align="justify"><font color="#666666" size="1"><?php echo $descriacc1; ?></font></p></td>
<td><font face="Verdana, Arial, Helvetica, sans-serif"><img src="<?php echo $fic; ?>" border="1"></font></td>
</tr>
<tr>
<td colspan="2" valign="top"><p><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $resto; ?>...</font></p>
<p><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><font color="#339900"><a href="#">
</a></font><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><img src="fle.gif" width="9" height="12"></font>
<font color="#339900"><a href="requirenew3.php?id=<?php echo $idacc1; ?>">Ver
la historia completa...</a></font></font></p></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 valign="top"> <table width="100%" border="1" cellspacing="0" cellpadding="4">
<tr>
<td bordercolor="#999999" background="f.gif"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><img src="neweven.gif" width="162" height="26"></font></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>
<?php if($num_filas != 0) { ?>
<p><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><img src="fle.gif" width="9" height="12">
<strong><?php echo $tnombre; ?></strong><br>
<?php echo $tdescripcion; ?><br>
<em><?php echo $fecha; ?></em><br>
<a href="<?php echo $tlink; ?>">Ver el programa</a></font></p>
<?php } ?>
</td>
</tr>
</table></td>
<td valign="top"> <table width="100%" border="1" cellpadding="4" cellspacing="0" bordercolor="#999999">
<tr>
<?php
include('conect/conect.php');
$consul = "SELECT *
FROM links where temas_id like '%$patron%' and perfil=2"
. " order by id 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"];
$tdescripcion = str_replace("\n", "<br>", $tdescripcion);
?>
<td background="f.gif"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><img src="newpubl.gif" width="161" height="26"></font></div></td>
</tr>
<tr>
<td><p><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><img src="fle.gif" width="9" height="12">
<strong><?php echo $tnombre; ?></strong><br>
<?php echo $tdescripcion; ?><br>
<a href="<?php echo $tlink; ?>">Ver publicación</a></font></p>
<p><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><img src="fle.gif" width="9" height="12">
<a href="reqpml4.php?titi=1.01&titix=1.01&patron=1.01">Ver
todas las publicaciones</a> </font></p></td>
</tr>
</table></td>
<td valign="top"> <table width="100%" border="1" cellpadding="4" cellspacing="0" bordercolor="#999999">
<tr>
<td background="f.gif"> <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><img src="newief.gif" width="157" height="27"></font></div></td>
</tr>
<tr>
<td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
<?php
include('conect/conect.php');
$consul = "SELECT *
FROM links where temas_id like '%$patron%' and perfil=3"
. " order by id limit 0,5";
$result = mysql_query($consul,$db);
$num_filas = mysql_num_rows($result);
while ($myrow = mysql_fetch_array($result))
{
$tid = $myrow["id"];
$tnombre = $myrow["nombre"];
$tdescripcion = $myrow["descripcion"];
$tlink = $myrow["link"];
echo "<img src=\"fle.gif\" width=\"9\" height=\"12\"> <a href=\"$tlink\">$tnombre</a><br>";
}
?>
</font></td>
</tr>
</table>
<p><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><img src="co.gif" width="157" height="25"><br>
Envienos sus comentarios, sugerencias o preguntas al correo
<a href="mailto:produccionlimpia@dama.gov.co">produccionlimpia@dama.gov.co</a></font></p></td>
</tr>
</table></td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td width="128" valign="top"><font face="Verdana, Arial, Helvetica, sans-serif"><img src="4.gif" width="128" height="142"></font></td>
</tr>
<tr>
<td colspan="2"> <div align="left"></div>
<div align="center"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Todos
los Derechos Reservados para el DAMA, <br>
<strong>1998-2004,</strong> Bogotá, Colombia. </font></div></td>
</tr>
</table>
</body>
</html>
|