Viewing file: menu.php (5.61 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<? /*
MENU GENERAL DEL OBSERVATORIO
Candidato a estar en una base de datos. No olvidar incluir el atributo TITLE
y eventualmente el ACCESSKEY
*/
?>
<?php require_once('Connections/oab.php'); ?>
<?php
mysql_select_db($database_oab, $oab);
$query_rsmenu = "select nombre, tooltip, enlace, acceskey from menu_nivel1 where activo =1 order by orden";
$rsmenu = mysql_query($query_rsmenu, $oab) or die(mysql_error());
$row_rsmenu = mysql_fetch_assoc($rsmenu);
$totalRows_rsmenu = mysql_num_rows($rsmenu);
?>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<?php require_once('fechaesp.php'); ?>
<div id="mainMenu">
<?php do { ?>
<a class="activeMenuItem" style="left: 15px; bottom: -1px;"
id="mainMenuItem1"
href="<?php echo $row_rsmenu['enlace']; ?>"
title="<?php echo $row_rsmenu['tooltip']; ?>"
accesskey="<?php echo $row_rsmenu['acceskey']; ?>"><?php echo $row_rsmenu['nombre']; ?></a>
<?php } while ($row_rsmenu = mysql_fetch_assoc($rsmenu)); ?>
</div>
<?php
mysql_free_result($rsmenu);
?>
<div style="display: block;" id="submenu">
<?php
mysql_select_db($database_oab, $oab);
$query_rsmenu0 = "select nombre, tooltip, enlace from submenu where activo = 1 and idmenu = 1 order by orden";
$rsmenu0 = mysql_query($query_rsmenu0, $oab) or die(mysql_error());
$row_rsmenu0 = mysql_fetch_assoc($rsmenu0);
$totalRows_rsmenu0 = mysql_num_rows($rsmenu0);
?>
<div style="padding-left: 15px; position: static; display: block;" id="submenu_1">
<?php do { ?>
<a href="<?php echo $row_rsmenu0['enlace']; ?>" title="<?php echo $row_rsmenu0['tooltip']; ?>"><?php echo $row_rsmenu0['nombre']; ?></a> |
<?php } while ($row_rsmenu0 = mysql_fetch_assoc($rsmenu0)); ?>
</div>
<?php
mysql_free_result($rsmenu0);
?>
<?php
mysql_select_db($database_oab, $oab);
$query_rsmenu1 = "select nombre, tooltip, enlace from submenu where activo = 1 and idmenu = 2 order by orden";
$rsmenu1 = mysql_query($query_rsmenu1, $oab) or die(mysql_error());
$row_rsmenu1 = mysql_fetch_assoc($rsmenu1);
$totalRows_rsmenu1 = mysql_num_rows($rsmenu1);
?>
<div style="padding-left: 15px; position: static; display: block;" id="submenu_2">
<?php do { ?>
<a href="<?php echo $row_rsmenu1['enlace']; ?>" title="<?php echo $row_rsmenu1['tooltip']; ?>"><?php echo $row_rsmenu1['nombre']; ?></a> |
<?php } while ($row_rsmenu1 = mysql_fetch_assoc($rsmenu1)); ?>
</div>
<?php
mysql_free_result($rsmenu1);
?>
<?php
mysql_select_db($database_oab, $oab);
$query_rsmenu2 = "select nombre, tooltip, enlace from submenu where activo = 1 and idmenu = 3 order by orden";
$rsmenu2 = mysql_query($query_rsmenu2, $oab) or die(mysql_error());
$row_rsmenu2 = mysql_fetch_assoc($rsmenu2);
$totalRows_rsmenu2 = mysql_num_rows($rsmenu2);
?>
<div style="padding-left: 15px; position: static; display: block;" id="submenu_3">
<?php do { ?>
<a href="<?php echo $row_rsmenu2['enlace']; ?>" title="<?php echo $row_rsmenu2['tooltip']; ?>"><?php echo $row_rsmenu2['nombre']; ?></a> |
<?php } while ($row_rsmenu2 = mysql_fetch_assoc($rsmenu2)); ?>
</div>
<?php
mysql_free_result($rsmenu2);
?>
<?php
mysql_select_db($database_oab, $oab);
$query_rsmenu3 = "select nombre, tooltip, enlace from submenu where activo = 1 and idmenu = 4 order by orden";
$rsmenu3 = mysql_query($query_rsmenu3, $oab) or die(mysql_error());
$row_rsmenu3 = mysql_fetch_assoc($rsmenu3);
$totalRows_rsmenu3 = mysql_num_rows($rsmenu3);
?>
<div style="padding-left: 15px; position: static; display: block;" id="submenu_4">
<?php do { ?>
<a href="<?php echo $row_rsmenu3['enlace']; ?>" title="<?php echo $row_rsmenu3['tooltip']; ?>"><?php echo $row_rsmenu3['nombre']; ?></a> |
<?php } while ($row_rsmenu3 = mysql_fetch_assoc($rsmenu3)); ?>
</div>
<?php
mysql_free_result($rsmenu3);
?>
<?php
mysql_select_db($database_oab, $oab);
$query_rsmenu4 = "select nombre, tooltip, enlace from submenu where activo = 1 and idmenu = 6 order by orden";
$rsmenu4 = mysql_query($query_rsmenu4, $oab) or die(mysql_error());
$row_rsmenu4 = mysql_fetch_assoc($rsmenu4);
$totalRows_rsmenu4 = mysql_num_rows($rsmenu4);
?>
<div style="padding-left: 15px; position: static; display: block;" id="submenu_5">
<?php do { ?>
<a href="<?php echo $row_rsmenu4['enlace']; ?>" title="<?php echo $row_rsmenu4['tooltip']; ?>"><?php echo $row_rsmenu4['nombre']; ?></a> |
<?php } while ($row_rsmenu4 = mysql_fetch_assoc($rsmenu4)); ?>
</div>
<?php
mysql_free_result($rsmenu4);
?>
<?php
mysql_select_db($database_oab, $oab);
$query_rsmenu5 = "select nombre, tooltip, enlace from submenu where activo = 1 and idmenu = 5 order by orden";
$rsmenu5 = mysql_query($query_rsmenu5, $oab) or die(mysql_error());
$row_rsmenu5 = mysql_fetch_assoc($rsmenu5);
$totalRows_rsmenu5 = mysql_num_rows($rsmenu5);
?>
<div style="padding-left: 15px; position: static; display: block;" id="submenu_6">
<?php do { ?>
<a href="<?php echo $row_rsmenu5['enlace']; ?>" title="<?php echo $row_rsmenu5['tooltip']; ?>"><?php echo $row_rsmenu5['nombre']; ?></a> |
<?php } while ($row_rsmenu5 = mysql_fetch_assoc($rsmenu5)); ?>
</div>
<?php
mysql_free_result($rsmenu5);
?>
</div>
<table width="200" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td align ='right'><? echo datacastella(time());?>
</td>
</tr>
</table>
|