Código PHP:
index.php parte 2
<table width="158" border="0" bgcolor="<?=$sel_valores78[1];?>">
<tr>
<td width="152"><!--
<table width="100%" border="0" cellspacing="1" cellpadding="1" style="<?=$oculta_cerrar;?>">
<tr>
<td class="tablagris"><strong><font color="#990000" size="2" face="Times New Roman, Times, serif"><a href="javascript:ajax_carga('librerias/php/docs.php','carga_ajaax')">Mis
Documentos »</a></font></strong></td>
</tr>
<tr>
<td class="tablagris"><font color="#0066CC" size="2" face="Times New Roman, Times, serif"><a href="javascript:cerrar_session();">Cerrar
Session</a></font></td>
</tr>
</table>
--> </td>
</tr>
<tr>
<td width="152"> <table width="100%" cellspacing="2" cellpadding="2">
<?
$menu_im=0;
$sel_mm = query_db("select * from $t2 where mm_estado = 1 and mm_pocision = 1 order by mm_orden asc");
while($m1 = traer_fila_db($sel_mm)){
if($m1[6] == "1"){
$val_tti = "<img src='img/subtitulos/".$m1[1]."' > ";
$ss = "0";
}
if($m1[6] == "2"){
$val_tti = $m1[1];
$ss = $sel_valores5[2];
}
if($m1[6] == "" or $m1[6] == "0"){
$val_tti = "NO DISPONIBLE";
$ss = "10";
}
?>
<style type="text/css">
.menu_izq2<?=$m1[0];?>{
font-family: <?=$sel_valores4[1];?>;
font-size: <?=$ss;?>px;
color: <?=$sel_valores1[1];?>;
}
</style>
<?
echo "<tr>
<td width='135' align='center' valign='middle' bgcolor='$sel_valores[1]' class='menu_izq2".$m1[0]."'>$sel_valores1[3]".$val_tti."$sel_valores1[4]</td>
</tr>";
$sel_mr = query_db("select * from $t3 where mr_estado = 1 and mm_id = $m1[0] order by orden asc");
while($m2 = traer_fila_db($sel_mr)){
$negrilla_compra=0;
if($m2[0] == '101'){
$linkeo = 'javascript:ajax_carga("ppl/cont_menu_contactenos.php","carga_ajaax")';
}
elseif($m2[2] == 'Galeria de fotos'){
$linkeo = 'javascript:ajax_carga("ppl/cont_menu_galeria.php","carga_ajaax")';
}
elseif($m2[0] == 102){
$linkeo = 'javascript:window.parent.location.href="index.php?categoria=inicio"';
$negrilla_compra=1;
}
elseif($m2[0] == 94){
$linkeo = 'javascript:window.parent.location.href="index.php"';
}
else
$linkeo = 'javascript:ajax_carga("ppl/cont_menu.php?id_pss='.$m2[0].'&tipo=1","carga_ajaax")';
?>
<tr>
<td style='CURSOR: pointer ' onClick='<? echo $linkeo;?>;cambia_url("nueva")' bgcolor='<?=$sel_valores2[1];?>' class="<? if ($negrilla_compra==1) echo "cont_menu_inzq_carro"; else echo "cont_menu_inzq" ?>">
<div>
<?=$sel_valores3[3];?>
<div onmouseover=this.className='vinculo1a'; onmouseout=this.className='';> <img src="img/botones/boton_menu.gif">
<?=$m2[2];?>
</div>
<?=$sel_valores3[4];?>
</div></td>
</tr>
<?
}
if($menu_im==0){
?>
<tr>
<td style='CURSOR: pointer' align="left" class="cont_menu_inzq" onClick="ajax_carga('compras/canasta.php','carga_ajaax')" ><div onmouseover=this.className='vinculo1'; onmouseout=this.className='';><img src="compras/imagenes/carro.gif"><strong>Carro de compras</strong></div></td>
</tr>
<? } ?>
<tr>
<td height="5"></td>
</tr>
<?
$menu_im++;} ?>
<?
if($ubicacion_coctatenos[2]=="Izq"){
?>
<tr>
<td align="center" style='CURSOR: pointer' onClick='javascript:ajax_carga("ppl/cont_menu_contactenos.php","carga_ajaax");' bgcolor="<?=$sel_valores24[1];?>" class="titulo_contactenos">
<?=$sel_valores3[3];?>
<div onmouseover=this.className='vinculo4'; onmouseout=this.className='';>
<?=$tti_cntactenos;?>
</div>
<?=$sel_valores3[4];?> </td>
</tr>
<?
}
if($ubicacion_foro[2]=="Izq"){
?>
<tr>
<td align="center" style='CURSOR: pointer' onClick='javascript:ajax_carga("ppl/cont_foro.php","carga_ajaax");' bgcolor="<?=$sel_valores80[1];?>" class="titulo_foro">
<?=$sel_valores81[3];?>
<div onmouseover=this.className='vinculo_foro'; onmouseout=this.className='';>
<?=$tti_foro;?>
dd</div>
<?=$sel_valores81[4];?> </td>
</tr>
<?
}
?>
</table></td>
</tr>
<tr>
<td width="152"><table width="100%" border="0" align="center" cellpadding="2" cellspacing="0" style="display:none">
<tr bgcolor="<?=$sel_valores24[1];?>">
<td width="135" align="center" valign="middle" class="titulo_contactenos">
<? if($sel_valores25[3] != "") echo $sel_valores25[3];?>
<?=$tti_cntactenos;?>
<? if($sel_valores25[4] != "") echo $sel_valores25[4];?>
</td>
</tr>
<?
$sel_cn = query_db("select * from $t4 where cn_estado = 1 and cn_id != 3");
while($cn = traer_fila_db($sel_cn)){
if($cn[0] == 2)
$link_07 = "cont_menu_contactenos.php";
else
$link_07 = "cont_menu.php";
'javascript:ajax_carga("ppl/cont_menu_contactenos.php?id_pss=<?=$cn[0];?>
&tipo=3","carga_ajaax");' ?>
<tr>
<td onClick='javascript:ajax_carga("ppl/<?=$link_07;?>?id_pss=<?=$cn[0];?>&tipo=3","carga_ajaax");' style='CURSOR: pointer' class='cont_menu_contactenos'>
<?=$sel_valores27[3];?>
<div onmouseover=this.className='vinculo4'; onmouseout=this.className='';>
<?=$cn[1];?>
</div>
<?=$sel_valores27[4];?>
</td>
</tr>
<? }
?>
</table></td>
</tr>
<tr>
<td>
<!--<table width="100%" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td ></td>
</tr>
<tr>
<td bgcolor="<?=$sel_valores32[1];?>" align="center" class="titulo_contador">
<?=$sel_valores33[3];?>
<?=$tti_contador;?>
<?=$sel_valores33[4];?>
</td>
</tr>
<tr>
<td bgcolor="<?=$sel_valores34[1];?>" align="center" class="menu_contador">
<?=$sel_valores35[3];?>
<?=$sel_c[1];?>
<?=$sel_valores35[4];?>
</td>
</tr>
</table>--></td>
</tr>
</table></td>
<td width="822" align="center" valign="top"> <table width="621" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="img/botones/menu_superior/ponques.jpg" width="135" height="60" style="cursor:pointer" onClick="ajax_carga('ppl/cont_menu_superior.php?id_pss=21&tipo=2','carga_ajaax');cambie_img('img_21','img/botones/menu_superior/ponques_1.jpg');setTimeout('carga_lista(21)',3000)" id="img_21"></td>
<td><img src="img/botones/menu_superior/panes.jpg" width="125" height="60" style="cursor:pointer" onClick="ajax_carga('ppl/cont_menu_superior.php?id_pss=22&tipo=2','carga_ajaax');cambie_img('img_22','img/botones/menu_superior/panes_1.jpg');setTimeout('carga_lista(22)',3000)" id="img_22"></td>
<td><img src="img/botones/menu_superior/postres.jpg" width="131" height="60" style="cursor:pointer" onClick="ajax_carga('ppl/cont_menu_superior.php?id_pss=23&tipo=2','carga_ajaax');cambie_img('img_23','img/botones/menu_superior/postres_1.jpg');setTimeout('carga_lista(23)',3000)" id="img_23"></td>
<td><img src="img/botones/menu_superior/desal.jpg" width="126" height="60" style="cursor:pointer" onClick="ajax_carga('ppl/cont_menu_superior.php?id_pss=24&tipo=2','carga_ajaax');cambie_img('img_24','img/botones/menu_superior/desal_1.jpg');setTimeout('carga_lista(24)',3000)" id="img_24"></td>
<td><img src="img/botones/menu_superior/bocados.jpg" width="146" height="60" style="cursor:pointer" onClick="ajax_carga('ppl/cont_menu_superior.php?id_pss=25&tipo=2','carga_ajaax');cambie_img('img_25','img/botones/menu_superior/bocados_1.jpg');setTimeout('carga_lista(25)',3000)" id="img_25"></td>
<td><img src="img/botones/menu_superior/galletas.jpg" width="158" height="60" style="cursor:pointer" onClick="ajax_carga('ppl/cont_menu_superior.php?id_pss=26&tipo=2','carga_ajaax');cambie_img('img_26','img/botones/menu_superior/galletas_1.jpg');setTimeout('carga_lista(26)',3000)" id="img_26"></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="img/botones/menu_superior/sandwiches.jpg" style="cursor:pointer" onClick="ajax_carga('ppl/cont_menu_superior.php?id_pss=27&tipo=2','carga_ajaax');cambie_img('img_27','img/botones/menu_superior/sandwiches_1.jpg');setTimeout('carga_lista(27)',3000)" id="img_27"></td>
<td><div align="center"><img src="img/botones/menu_superior/bebidas.jpg" style="cursor:pointer" onClick="ajax_carga('ppl/cont_menu_superior.php?id_pss=28&tipo=2','carga_ajaax');cambie_img('img_28','img/botones/menu_superior/bebidas_1.jpg');setTimeout('carga_lista(28)',3000)" id="img_28"></div></td>
<td><div align="right"><img src="img/botones/menu_superior/otros_prod.jpg" style="cursor:pointer" onClick="ajax_carga('ppl/cont_menu_superior.php?id_pss=29&tipo=2','carga_ajaax');cambie_img('img_29','img/botones/menu_superior/otros_prod_1.jpg');setTimeout('carga_lista(29)',3000)" id="img_29"></div></td>
</tr>
</table></td>
</tr>
</table>
<table width="99%" border="0" align="right">
<tr>
<td width="78%" valign="top">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<?
if($select_banner[3] == 1){
?>
<tr>
<td width="100%" align="center"><? banner();?>
</td>
</tr>
<?
}
if($ubicacion_marquesina[2]=="centro_arr"){
?>
<tr>
<td colspan="2" align="center" valign="middle" bgcolor="<?=$sel_valores60[1];?>"><marquee behavior="scroll" direction="left" SCROLLDELAY=150 ScrollAmount="5" onMouseOver="this.stop()" onMouseOut="this.start()" >
<div class="marquesina" onmouseover=this.className='vinculo_marque'; onmouseout=this.className='marquesina'; style='CURSOR: pointer'><strong>
<?=$sel_marque[1];?>
</strong></div>
</marquee></td>
</tr>
<?
}
?>
<tr>
<td id="carga_ajaax" valign="top"> </td>
</tr>
<?
if($ubicacion_marquesina[2]=="centro_deb"){
?>
<tr>
<td colspan="2" align="center" valign="middle" bgcolor="<?=$sel_valores60[1];?>"><marquee behavior="scroll" direction="left" SCROLLDELAY=150 ScrollAmount="5" onMouseOver="this.stop()" onMouseOut="this.start()" >
<div class="marquesina" onmouseover=this.className='vinculo_marque'; onmouseout=this.className='marquesina'; style='CURSOR: pointer'><strong>
<?=$sel_marque[1];?>
</strong></div>
</marquee></td>
</tr>
<?
}
?>
</table></td>