Ver Mensaje Individual
  #7 (permalink)  
Antiguo 10/11/2009, 13:06
Avatar de dcreate
dcreate
 
Fecha de Ingreso: octubre-2009
Ubicación: Veracruz
Mensajes: 536
Antigüedad: 15 años, 1 mes
Puntos: 22
Respuesta: menu por roles

de esta mandera lo hago yo, para ver si te puedes guiar:

Código PHP:
<?php
include "seguridad.php";


?>
<!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">
<meta name="author" content="Felix de Jesus Carrillo Celerino">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>

<script type="text/javascript" src="stmenu.js"></script>
</head>

<body  background="images/wall.png">

<?php $usuario=$_POST['usuario'];
echo 
'<script>alert("BIENVENIDO\n** '.strtoupper($_SESSION['usuario']).'**");</script>';
    echo 
"Bienvenido(@): <span class=Estilo3 style='text-transform: uppercase;'><b>".$_SESSION['usuario']."</span>"
 if(
$_SESSION['tipo']=="1"){ ?>

<script type="text/javascript">
<!--
stm_bm(["menu45ba",900,"","blank.gif",0,"","",0,0,250,0,1000,1,0,0,"","",0,0,1,2,"default","hand","",1,25],this);
stm_bp("p0",[0,4,0,0,2,0,0,9,100,"",-2,"",-2,50,2,3,"#999999","transparent","bluefireback1.gif",1,1,1,"#000000 #666666 #B4C8B4"]);
stm_ai("p0i0",[0,"INICIO","","",-1,-1,0,"inicio.php","mainFrame","","","","",0,0,0,"","",0,0,0,0,1,"#FFFFF7",1,"#B5BED6",1,"","bg2.gif",3,3,0,0,"#FFFFF7","#000000","#FFFFFF","#FFFFFF","9pt Verdana","9pt Verdana",0,0,"","bg1.gif","","bg3.gif",6,6,25],87,25);
stm_aix("p0i1","p0i0",[0,"OPERACIONES","","",-1,-1,0,"","_self","","","","",0,0,0,"0604arroldw.gif","0604arroldw.gif",9,7,0,1,1,"#00CCFF"],152,25);
stm_bp("p1",[1,4,0,0,5,5,0,0,100,"",-2,"",-2,50,2,3,"#999999","#333333","",0,1,1,"#B4C8B4"]);
stm_ai("p1i0",[0,"GENERAR GRAFICA","","",-1,-1,0,"generar_grafica.php","mainFrame","","","","",0,0,0,"","",0,0,0,1,1,"#00CCFF",1,"#B4C8B4",0,"","",3,0,0,0,"#FFFFF7","#000000","#FFFFFF","#000000","8pt Verdana","8pt Verdana",0,0,"","","","",0,0,0],140,25);
stm_ep();
stm_aix("p0i2","p0i0",[0,"CONSULTAS","","",-1,-1,0,"","_self","","","","",0,0,0,"0604arroldw.gif","0604arroldw.gif",9,7,0,1],130,25);
stm_bpx("p2","p1",[]);
stm_aix("p2i0","p1i0",[0,"POR MES","","",-1,-1,0,"consulta_pormes.php"],120,0);
stm_aix("p2i1","p1i0",[0,"POR AÑO","","",-1,-1,0,"consulta_gral.php"],120,0);
stm_ep();
stm_aix("p0i3","p0i0",[0,"SALIR","","",-1,-1,0,"cerrar_sesion.php","_top","","","","",0,0,0,"","",0,0,0,2],87,25);
stm_ep();
stm_em();
//-->
</script>

<?php }elseif($_SESSION['tipo']=="2"){ ?>
<a href="http://www.dhtml-menu-builder.com"  style="display:none;visibility:hidden;">Javascript DHTML Drop Down Menu Powered by dhtml-menu-builder.com</a>
<script type="text/javascript">
<!--
stm_bm(["menu45ba",900,"","blank.gif",0,"","",0,0,250,0,1000,1,0,0,"","",0,0,1,2,"default","hand","",1,25],this);
stm_bp("p0",[0,4,0,0,2,0,0,9,100,"",-2,"",-2,50,2,3,"#999999","transparent","bluefireback1.gif",1,1,1,"#000000 #666666 #B4C8B4"]);
stm_ai("p0i0",[0,"INICIO","","",-1,-1,0,"inicio.php","mainFrame","","","","",0,0,0,"","",0,0,0,0,1,"#FFFFF7",1,"#B5BED6",1,"","bg2.gif",3,3,0,0,"#FFFFF7","#000000","#FFFFFF","#FFFFFF","9pt Verdana","9pt Verdana",0,0,"","bg1.gif","","bg3.gif",6,6,25],87,25);
stm_aix("p0i1","p0i0",[0,"OPERACIONES","","",-1,-1,0,"","_self","","","","",0,0,0,"0604arroldw.gif","0604arroldw.gif",9,7,0,1,1,"#00CCFF"],152,25);
stm_bp("p1",[1,4,0,0,5,5,0,9,100,"",-2,"",-2,50,2,3,"#999999","#333333","",0,1,1,"#B4C8B4"]);
stm_ai("p1i0",[0,"MEDICIONES","","",-1,-1,0,"","_self","","","","",0,0,0,"0604arroldw.gif","0604arroldw.gif",9,7,0,0,1,"#00CCFF",1,"#B4C8B4",0,"","",3,0,0,0,"#FFFFF7","#000000","#FFFFFF","#000000","8pt Verdana","8pt Verdana",0,0,"","","","",0,0,0],140,0);
stm_bpx("p2","p1",[1,2,0,0,5,5,0,0]);
stm_aix("p2i0","p1i0",[0,"INGRESAR MEDICIONES","","",-1,-1,0,"nuevo.php","mainFrame","","","","",0,0,0,"","",0,0,0,1],120,0);
stm_aix("p2i1","p2i0",[0,"INGRESAR MEDICION INDIVIDUAL","","",-1,-1,0,"regis_mediciones_ind.php"],120,0);
stm_aix("p2i2","p2i0",[0,"MODIFICAR MEDICION","","",-1,-1,0,"bus_modi_medicion.php"],120,0);
stm_ep();
stm_aix("p1i1","p1i0",[0,"INSTALACIONES"],140,0);
stm_bpx("p3","p2",[]);
stm_aix("p3i0","p1i0",[0,"INGRESAR NUEVA","","",-1,-1,0,"regis_instala.php","mainFrame","","","","",0,0,0,"","",0,0],120,0);
stm_aix("p3i1","p3i0",[0,"MODIFICAR O ELIMINAR","","",-1,-1,0,"bus_instala.php"],120,0);
stm_ep();
stm_aix("p1i2","p2i0",[0,"GENERAR GRAFICA","","",-1,-1,0,"generar_grafica.php"],140,25);
stm_ep();
stm_aix("p0i2","p0i0",[0,"CONSULTAS","","",-1,-1,0,"","_self","","","","",0,0,0,"0604arroldw.gif","0604arroldw.gif",9,7,0,1],130,25);
stm_bpx("p4","p2",[1,4]);
stm_aix("p4i0","p2i0",[0,"POR MES","","",-1,-1,0,"consulta_pormes.php"],120,0);
stm_aix("p4i1","p2i0",[0,"POR AÑO","","",-1,-1,0,"consulta_gral.php"],120,0);
stm_ep();
stm_aix("p0i3","p0i0",[0,"SALIR","","",-1,-1,0,"cerrar_sesion.php","_top","","","","",0,0,0,"","",0,0,0,2],87,25);
stm_ep();
stm_em();
//-->
</script>




<?php }elseif($_SESSION['tipo']=="3"){ 


 
?>

<script type="text/javascript">
<!--
stm_bm(["menu45ba",900,"","blank.gif",0,"","",0,0,250,0,1000,1,0,0,"","",0,0,1,2,"default","hand","",1,25],this);
stm_bp("p0",[0,4,0,0,2,0,0,9,100,"",-2,"",-2,50,2,3,"#999999","transparent","bluefireback1.gif",1,1,1,"#000000 #666666 #B4C8B4"]);
stm_ai("p0i0",[0,"INICIO","","",-1,-1,0,"inicio.php","mainFrame","","","","",0,0,0,"","",0,0,0,0,1,"#FFFFF7",1,"#B5BED6",1,"","bg2.gif",3,3,0,0,"#FFFFF7","#000000","#FFFFFF","#FFFFFF","9pt Verdana","9pt Verdana",0,0,"","bg1.gif","","bg3.gif",6,6,25],87,25);
stm_aix("p0i1","p0i0",[0,"OPERACIONES","","",-1,-1,0,"","_self","","","","",0,0,0,"0604arroldw.gif","0604arroldw.gif",9,7,0,1,1,"#00CCFF"],152,25);
stm_bp("p1",[1,4,0,0,5,5,0,9,100,"",-2,"",-2,50,2,3,"#999999","#333333","",0,1,1,"#B4C8B4"]);
stm_ai("p1i0",[0,"MEDICIONES","","",-1,-1,0,"","_self","","","","",0,0,0,"0604arroldw.gif","0604arroldw.gif",9,7,0,0,1,"#00CCFF",1,"#B4C8B4",0,"","",3,0,0,0,"#FFFFF7","#000000","#FFFFFF","#000000","8pt Verdana","8pt Verdana",0,0,"","","","",0,0,0],140,0);
stm_bpx("p2","p1",[1,2,0,0,5,5,0,0]);
stm_aix("p2i0","p1i0",[0,"INGRESAR MEDICIONES","","",-1,-1,0,"nuevo.php","mainFrame","","","","",0,0,0,"","",0,0,0,1],120,0);
stm_aix("p2i1","p2i0",[0,"INGRESAR MEDICION INDIVIDUAL","","",-1,-1,0,"regis_mediciones_ind.php"],120,0);
stm_aix("p2i2","p2i0",[0,"MODIFICAR MEDICION","","",-1,-1,0,"bus_modi_medicion.php"],120,0);
stm_ep();
stm_aix("p1i1","p1i0",[0,"INSTALACIONES"],140,0);
stm_bpx("p3","p2",[]);
stm_aix("p3i0","p1i0",[0,"INGRESAR NUEVA","","",-1,-1,0,"regis_instala.php","mainFrame","","","","",0,0,0,"","",0,0],120,0);
stm_aix("p3i1","p3i0",[0,"MODIFICAR O ELIMINAR","","",-1,-1,0,"bus_instala.php"],120,0);
stm_ep();
stm_aix("p1i2","p2i0",[0,"GENERAR GRAFICA","","",-1,-1,0,"generar_grafica.php"],140,25);
stm_ep();
stm_aix("p0i2","p0i0",[0,"CONSULTAS","","",-1,-1,0,"","_self","","","","",0,0,0,"0604arroldw.gif","0604arroldw.gif",9,7,0,1],130,25);
stm_bpx("p4","p2",[1,4]);
stm_aix("p4i0","p2i0",[0,"POR MES","","",-1,-1,0,"consulta_pormes.php"],120,0);
stm_aix("p4i1","p2i0",[0,"POR AÑO","","",-1,-1,0,"consulta_gral.php"],120,0);
stm_ep();
stm_aix("p0i3","p0i2",[0,"ACCESO AL SISTEMA"],190,25);
stm_bpx("p5","p4",[]);
stm_aix("p5i0","p2i0",[0,"CREAR NUEVA CUENTA","","",-1,-1,0,"crear_cuenta.php"],180,0);
stm_aix("p5i1","p2i0",[0,"MODIFICAR CUENTA","","",-1,-1,0,"bus_modi_cuenta.php"],180,0);
stm_aix("p5i2","p2i0",[0,"ELIMINAR CUENTA","","",-1,-1,0,"bus_eli_cuenta.php"],180,0);
stm_aix("p5i3","p2i0",[0,"VER ENTRADAS Y SALIDAS","","",-1,-1,0,"bitacora.php"],180,0);
stm_ep();
stm_aix("p0i4","p0i0",[0,"SALIR","","",-1,-1,0,"cerrar_sesion.php","_top","","","","",0,0,0,"","",0,0,0,2],87,25);
stm_ep();
stm_em();
//-->
</script>

<?php }?>