primer script
Código:
<style type="text/css">
<!--
.Estilo1 {color: #3399CC}
-->
</style>
<?php
echo"<table width=\"750\" border=\"0\" align=\"center\" cellspacing=\"0\">"
. " <tr>"
. " <th scope=\"col\"><img src=\"images/sertur.jpg\" /></th></tr>"
. " <td align =\"center\" valign=\"top\" ><iframe src=\"progs/botones.php?des=$des\" name=\"botones\" id=\"botones\" width=\"100%\" height=\"29\" scrolling=\"auto\" frameborder=\"0\" allowtransparency=\"true\"></iframe></th></td>";
$des = $_GET['des'];
echo "<table border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" >"
. " <tr>"
. " <td width=\"150\" height=\"1275\" rowspan=\"2\" valign=\"top\"><iframe src=\"progs/pubizq.php\" name=\"pubizq\" id=\"pubizq\" width=\"100%\" scrolling=\"auto\" frameborder=\"0\" allowtransparency=\"true\"></iframe></td>"
. " "
. " <td width=\"470\" align=\"center\" valign=\"top\"><iframe src=\"progs/info.php?des=$des\" name=\"contenido\" id=\"contenido\" width=\"100%\" scrolling=\"auto\" frameborder=\"0\" allowtransparency=\"true\">botonesx</iframe></td>"
. " <td width=\"150\" height=\"1275\" rowspan=\"2\" align=\"right\" valign=\"top\"><iframe src=\"progs/pubder.php\" name=\"pubder\" id=\"pubder\" width=\"100%\" align=\"right\"scrolling=\"auto\" frameborder=\"0\" allowtransparency=\"true\"></iframe></td>"
. " <tr>"
. " </table>"
."";
?>
segundo script botones.php
Código:
<style type="text/css">
<!--
.Estilo1 {
color: #FFFFFF;
font-family: Geneva;
font-size: 14px;
}
-->
</style>
<?php
require("../includes/conectar.php");
echo "<table width=\"50\" border=\"0\" cellspacing=\"0\">"
." <tr>";
$resdes=mysql_query("SELECT * FROM destinos where cve_des <> '$des'",$Conexion);
while($rowdes=mysql_fetch_array($resdes))
{
$des = $rowdes["cve_des"];
$dsc = $rowdes["dsc_des"];
echo " <th width=\"400\" bgcolor=\"#C8000A\" scope=\"col\"><a href=\"$php_self?des=$_POST[$des]&swdes=1\"><span class=\"Estilo1\"> $dsc </th>"
."<th bgcolor=\"#FFFFFF\"width=\"5\"> </th>";
}
if($swdes == 1 and swcat == 0)
{
$rescat=mysql_query("SELECT * FROM catego where des_cat = '$des'",$Conexion);
while($rowcat=mysql_fetch_array($rescat))
{
$cat = $rowcat["cve_cat"];
$descatc = $rowcat["dsc_cat"];
$botcat = $rowcat["boton_cat"];
echo " <th bgcolor=\"#C8000A\" scope=\"col\"><a href=\"$php_self?des=$des&cat=$cat&swdes=$swdes\"><span class=\"Estilo1\"> $descatc </th>"
."<th bgcolor=\"#FFFFFF\"width=\"5\"> </th>";
;
}
}
if($swdes == 1 )
{
$resscat=mysql_query("SELECT * FROM subcatego where des_scat = '$des' and cat_scat = '$cat'",$Conexion);
while($rowscat=mysql_fetch_array($resscat))
{
$scat = $rowscat["cve_scat"];
$desscatc = $rowscat["dsc_scat"];
$botscat = $rowscat["foto_scat"];
echo " <th scope=\"col\"><a href=\"$php_self?des=$des&cat=$cat\"><img src=\"../images/ agregar-on.jpg\" /></th>";
}
}
echo " </tr>"
."</table>";
?>
tercer script info.php
[code]
<?php
require("../includes/conectar.php");
echo "<table width=\"110\" border=\"0\" cellspacing=\"0\">"
." <tr>";
$x="SELECT * FROM destinos where cve_des = '$des'"; echo $x;
$resdes=mysql_query("SELECT * FROM destinos where cve_des = '$des'",$Conexion);
while($rowdes=mysql_fetch_array($resdes))
{
$img = $rowdes["img_des"];
echo " <th align=\"center\"scope=\"col\"><a href=\"index.php\"><img src=\"../paso/cancun.jpg\" /></th>";
echo " <th scope=\"col\"><a href=\"index.php\"><img src=\"../paso/cancun.jpg\" /></th>";
echo " <th scope=\"col\"><a href=\"index.php\"><img src=\"../paso/cancun.jpg\" /></th>";
}
echo " </tr>"
."</table>";
?>
Agadecere la ayuda que me pudieran brindar