Viewing file: migadepan.php (2.82 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php require_once('Connections/oab.php'); ?>
<?php
$ruta_rsNivel1 = "0";
if (isset($ruta)) {
$ruta_rsNivel1 = (get_magic_quotes_gpc()) ? $ruta : addslashes($ruta);
}
mysql_select_db($database_oab, $oab);
$query_rsNivel1 = sprintf("SELECT menu_nivel1.nombre, menu_nivel1.tooltip FROM menu_nivel1 WHERE idmenu = %s", $ruta_rsNivel1);
$rsNivel1 = mysql_query($query_rsNivel1, $oab) or die(mysql_error());
$row_rsNivel1 = mysql_fetch_assoc($rsNivel1);
$totalRows_rsNivel1 = mysql_num_rows($rsNivel1);
$sm_rsNivel2 = "0";
if (isset($sm)) {
$sm_rsNivel2 = (get_magic_quotes_gpc()) ? $sm : addslashes($sm);
}
mysql_select_db($database_oab, $oab);
$query_rsNivel2 = sprintf("SELECT nombre, tooltip FROM submenu WHERE idsubmenu = %s", $sm_rsNivel2);
$rsNivel2 = mysql_query($query_rsNivel2, $oab) or die(mysql_error());
$row_rsNivel2 = mysql_fetch_assoc($rsNivel2);
$totalRows_rsNivel2 = mysql_num_rows($rsNivel2);
$tema_rsNivel3 = "0";
if (isset($tema)) {
$tema_rsNivel3 = (get_magic_quotes_gpc()) ? $tema : addslashes($tema);
}
mysql_select_db($database_oab, $oab);
$query_rsNivel3 = sprintf("SELECT nombre, tooltip FROM especificos WHERE idtema = %s", $tema_rsNivel3);
$rsNivel3 = mysql_query($query_rsNivel3, $oab) or die(mysql_error());
$row_rsNivel3 = mysql_fetch_assoc($rsNivel3);
$totalRows_rsNivel3 = mysql_num_rows($rsNivel3);
?>
<html>
<head>
<title>Documento sin título</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/ocglobal.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="760" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="textoNormal"> <br/>Usted está en:
<?php if ($totalRows_rsNivel1 > 0) { // Show if recordset not empty ?>
<a href="inicio.php?ruta=1" Title="Página de Inicio">Observatorio Ambiental</a>
<? if ($ruta==1){
}else{
?>
- <a href="inicio.php?ruta=<? echo $ruta;?>" title="<?php echo $row_rsNivel1['tooltip']; ?>"><?php echo $row_rsNivel1['nombre']; ?></a>
<? }?>
<?php } // Show if recordset not empty ?> <?php if ($totalRows_rsNivel2 > 0) { // Show if recordset not empty ?>
-
<?php } // Show if recordset not empty ?>
<a href="inicio.php?ruta=<? echo $ruta;?>&sm=<? echo $sm;?>" title="<?php echo $row_rsNivel2['tooltip']; ?>"><?php echo $row_rsNivel2['nombre']; ?></a>
<?php if ($totalRows_rsNivel3 > 0) { // Show if recordset not empty ?>
- <a href="inicio.php?ruta=<? echo $ruta;?>&sm=<? echo $sm;?>&tema=<? echo $tema;?>" title="<?php echo $row_rsNivel3['tooltip']; ?>"><?php echo $row_rsNivel3['nombre']; ?></a>
<?php } // Show if recordset not empty ?></td>
</tr>
</table>
</body>
</html>
<?php
mysql_free_result($rsNivel1);
mysql_free_result($rsNivel2);
mysql_free_result($rsNivel3);
?>
|