si entiendo eso, pero la hoja no tiene mucho mas:
Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Estadisticas</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<body>
<table width="800" border="0" align="center" cellpadding="5" cellspacing="2">
<tr>
<td width="200" valign="top"><div align="left"><img src="ima/eliminar.gif" width="16" height="16" align="absmiddle" /></div></td>
<td width="200" valign="top"><div align="left"><img src="ima/icon_accept.gif" width="16" height="16" align="absmiddle" /></div></td>
</tr>
<tr>
<td valign="top"><?php
require('configuracion.php');
require('funciones.php');
$id = $_GET["id"];
$rs=mysql_query("SELECT * FROM inquilinos WHERE NOT EXISTS (SELECT * FROM vista WHERE inquilinos.rsocial = vista.rsocial AND noticia_id = '$id') ORDER BY rsocial");
if(mysql_num_rows($rs)>0)
{
$template = implode("", file('detalle_abrir.php'));
while($row = mysql_fetch_assoc($rs))
{
$color=($color==""?"#5b69a6":"");
$row["color"] = $color;
//manipulamos el mensaje
$row["mensaje"] = nl2br($row["mensaje"]);
$row["mensaje"] = parsearTags($row["mensaje"]);
mostrarTemplate($template, $row);
}
}
?></td>
<td valign="top"><?php
$id = $_GET["id"];
$sql = "SELECT * ";
$sql.= "FROM vista ";
$sql.= "WHERE noticia_id ='$id' ORDER BY rsocial";
$rs = mysql_query($sql, $con);
if(mysql_num_rows($rs)>0)
{
$template = implode("", file('detalle_abrir2.php'));
while($row = mysql_fetch_assoc($rs))
{
$color=($color==""?"#5b69a6":"");
$row["color"] = $color;
//manipulamos el mensaje
$row["mensaje"] = nl2br($row["mensaje"]);
$row["mensaje"] = parsearTags($row["mensaje"]);
mostrarTemplate($template, $row);
}
}
?></td>
</tr>
</table>
</body>
</html>