| 1 | <? | 
|---|
| 2 | // ******************************************************************************************************** | 
|---|
| 3 | // Aplicación WEB: ogAdmWebCon | 
|---|
| 4 | // Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla | 
|---|
| 5 | // Fecha Creación: Diciembre-2003 | 
|---|
| 6 | // Fecha Última modificación: Marzo-2005 | 
|---|
| 7 | // Nombre del fichero: barramenu.php | 
|---|
| 8 | // Descripción :Este fichero implementa el menu general de la Aplicación | 
|---|
| 9 | // ******************************************************************************************************** | 
|---|
| 10 | include_once("./includes/ctrlacc.php"); | 
|---|
| 11 | include_once("./includes/constantes.php"); | 
|---|
| 12 | include_once("./idiomas/php/".$idioma."/barramenu_".$idioma.".php"); | 
|---|
| 13 | //________________________________________________________________________________________________________ | 
|---|
| 14 | ?> | 
|---|
| 15 | <HTML> | 
|---|
| 16 |         <TITLE>Administración web de aulas</TITLE> | 
|---|
| 17 |         <HEAD> | 
|---|
| 18 |         <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> | 
|---|
| 19 |                 <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=ISO-8859-1">  | 
|---|
| 20 |                 <LINK rel="stylesheet" type="text/css" href="estilos.css"> | 
|---|
| 21 |                 <SCRIPT language="javascript"> | 
|---|
| 22 |                         var currentOp=null; | 
|---|
| 23 |                 //________________________________________________________________________________________________________ | 
|---|
| 24 |                 function resaltar(o){ | 
|---|
| 25 |                                 if (o==currentOp) return | 
|---|
| 26 |                                 o.style.borderBottomColor="#808080" | 
|---|
| 27 |                                 o.style.borderRightColor="#808080" | 
|---|
| 28 |                                 o.style.borderTopColor="#ffffff" | 
|---|
| 29 |                                 o.style.borderLeftColor="#ffffff" | 
|---|
| 30 |                 } | 
|---|
| 31 |                 //________________________________________________________________________________________________________ | 
|---|
| 32 |                 function desresaltar(o){ | 
|---|
| 33 |                                 if (o==currentOp) return | 
|---|
| 34 |                                 o.style.borderBottomColor="#d4d0c8" | 
|---|
| 35 |                                 o.style.borderRightColor="#d4d0c8" | 
|---|
| 36 |                                 o.style.borderTopColor="#d4d0c8" | 
|---|
| 37 |                                 o.style.borderLeftColor="#d4d0c8" | 
|---|
| 38 |                 } | 
|---|
| 39 |                 //________________________________________________________________________________________________________ | 
|---|
| 40 |                 function eleccion(o,op){ | 
|---|
| 41 |                                 opadre=window.parent // Toma frame padre | 
|---|
| 42 |                                 opadre.frames["frame_contenidos"].document.location.href="nada.php" | 
|---|
| 43 |                                 var href; | 
|---|
| 44 |                                 var     href2="nada.php" | 
|---|
| 45 |                                 switch(op){ | 
|---|
| 46 |                                         case 1:  | 
|---|
| 47 |                                                 href="./principal/aulas.php" | 
|---|
| 48 |                                                 break; | 
|---|
| 49 |                                         case 2: | 
|---|
| 50 |                                                         href="./principal/acciones.php" | 
|---|
| 51 |                                                         break; | 
|---|
| 52 |                                         case 3: | 
|---|
| 53 |                                                         href="./principal/imagenes.php" | 
|---|
| 54 |                                                         break; | 
|---|
| 55 |                                         case 4: | 
|---|
| 56 |                                                         href="./principal/hardwares.php" | 
|---|
| 57 |                                                         break; | 
|---|
| 58 |                                         case 5: | 
|---|
| 59 |                                                         href="./principal/softwares.php" | 
|---|
| 60 |                                                         break; | 
|---|
| 61 |                                         case 6: | 
|---|
| 62 |                                                         href="./principal/servidores.php" | 
|---|
| 63 |                                                         break; | 
|---|
| 64 |                                         case 7: | 
|---|
| 65 |                                                         href="./principal/menus.php" | 
|---|
| 66 |                                                         break; | 
|---|
| 67 |                                         case 8: | 
|---|
| 68 |                                                         href="./principal/reservas.php" | 
|---|
| 69 |                                                         break; | 
|---|
| 70 |                                         case 9: | 
|---|
| 71 |                                                         href="./principal/administracion.php" | 
|---|
| 72 |                                                         break; | 
|---|
| 73 |                                         case 10: | 
|---|
| 74 |                                                         href="./images/L_Iconos.php" | 
|---|
| 75 |                                                         href2="./images/M_Iconos.php" | 
|---|
| 76 |                                                         break; | 
|---|
| 77 |                                 } | 
|---|
| 78 |                                 var oldOp=currentOp | 
|---|
| 79 |                                 currentOp=o; | 
|---|
| 80 |                                 if (oldOp) desresaltar(oldOp); | 
|---|
| 81 |                                 currentOp.style.borderBottomColor="#ffffff" | 
|---|
| 82 |                                 currentOp.style.borderRightColor="#ffffff" | 
|---|
| 83 |                                 currentOp.style.borderTopColor="#808080" | 
|---|
| 84 |                                 currentOp.style.borderLeftColor="#808080" | 
|---|
| 85 |                                 if(op<11){ | 
|---|
| 86 |                                         opadre.frames["frame_arbol"].document.location.href=href | 
|---|
| 87 |                                         opadre.frames["frame_contenidos"].document.location.href=href2 | 
|---|
| 88 |                                 } | 
|---|
| 89 |                                 else | 
|---|
| 90 |                                         window.top.location.href="acceso.php"; | 
|---|
| 91 |                         } | 
|---|
| 92 |  | 
|---|
| 93 |         //________________________________________________________________________________________________________ | 
|---|
| 94 |                 </SCRIPT> | 
|---|
| 95 |         </HEAD> | 
|---|
| 96 |         <BODY bgcolor="#d4d0c8"> | 
|---|
| 97 |                 <FORM name=fdatos> | 
|---|
| 98 |                         <TABLE border=0  style="POSITION:absolute;LEFT:0px;TOP:0px" cellPadding=2 cellSpacing=0> | 
|---|
| 99 |                                 <TR> | 
|---|
| 100 |                                         <TD align=left> | 
|---|
| 101 |                                                 <TABLE  class=menupral align=left cellPadding=1 cellSpacing=0 > | 
|---|
| 102 |                                                   <TR valign=baseline> | 
|---|
| 103 |                                                         <TD width=10><IMG src="./images/iconos/pomo.gif"></TD> | 
|---|
| 104 |                                                         <? if($idtipousuario!=$SUPERADMINISTRADOR){?> | 
|---|
| 105 |                                                                 <TD  onclick=eleccion(this,1)  onmouseout=desresaltar(this) onmouseover=resaltar(this) > | 
|---|
| 106 |                                                                          <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/centros.gif"> <SPAN class="menupral"><?echo $TbMsg[0]?></SPAN></A> </TD> | 
|---|
| 107 |                                                                 <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> | 
|---|
| 108 |                                                                 <TD  onclick=eleccion(this,2) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle>              | 
|---|
| 109 |                                                                          <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/acciones.gif"> <SPAN class=menupral ><?echo $TbMsg[1]?></SPAN></A> </TD> | 
|---|
| 110 |                                                                 <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> | 
|---|
| 111 |                                                                 <TD   onclick=eleccion(this,3) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle> | 
|---|
| 112 |                                                                          <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/imagenes.gif"> <SPAN class=menupral ><?echo $TbMsg[2]?></SPAN></A> </TD> | 
|---|
| 113 |                                                                 <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> | 
|---|
| 114 |                                                                 <TD  onclick=eleccion(this,4) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle> | 
|---|
| 115 |                                                                          <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/confihard.gif"> <SPAN class=menupral ><?echo  $TbMsg[3] ?></SPAN></A> </TD> | 
|---|
| 116 |                                                                 <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> | 
|---|
| 117 |                                                                 <TD  onclick=eleccion(this,5) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle> | 
|---|
| 118 |                                                                          <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/confisoft.gif"> <SPAN class=menupral ><?echo  $TbMsg[4] ?></SPAN></A> </TD> | 
|---|
| 119 |                                                                 <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> | 
|---|
| 120 |                                                                 <TD  onclick=eleccion(this,6) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle> | 
|---|
| 121 |                                                                          <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/servidores.gif"> <SPAN class=menupral ><?echo  $TbMsg[5] ?></SPAN></A> </TD> | 
|---|
| 122 |                                                                 <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> | 
|---|
| 123 |                                                                 <TD  onclick=eleccion(this,7) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle> | 
|---|
| 124 |                                                                          <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/menus.gif"> <SPAN class=menupral ><?echo  $TbMsg[6] ?></SPAN></A> </TD> | 
|---|
| 125 |                                                                 <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> | 
|---|
| 126 |                                                                 <TD  onclick=eleccion(this,8) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle> | 
|---|
| 127 |                                                                          <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/reservas.gif"> <SPAN class=menupral ><?echo  $TbMsg[7] ?></SPAN></A> </TD> | 
|---|
| 128 |                                                                 <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> | 
|---|
| 129 |                                                         <? } | 
|---|
| 130 |                                                         else{ | 
|---|
| 131 |                                                                         if($idtipousuario==$SUPERADMINISTRADOR){?> | 
|---|
| 132 |                                                                                         <TD  onclick=eleccion(this,9) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle>  | 
|---|
| 133 |                                                                                         <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/administracion.gif"> | 
|---|
| 134 |                                                                                         <SPAN class=menupral ><?echo  $TbMsg[8] ?></SPAN></A> </TD> | 
|---|
| 135 |                                                                                         <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> | 
|---|
| 136 |                                                                                         <TD  onclick=eleccion(this,10) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle>  | 
|---|
| 137 |                                                                                         <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/iconos.gif"> | 
|---|
| 138 |                                                                                         <SPAN class=menupral ><?echo  $TbMsg[9] ?></SPAN></A> </TD> | 
|---|
| 139 |                                                                                         <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> | 
|---|
| 140 |                                                                         <?}?> | 
|---|
| 141 |                                                         <?}?> | 
|---|
| 142 |                                                         <TD  onclick=eleccion(this,11) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle>  | 
|---|
| 143 |                                                         <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/usuarioslog.gif"> | 
|---|
| 144 |                                                         <SPAN class=menupral ><?echo  $TbMsg[10] ?></SPAN></A> </TD> | 
|---|
| 145 |                  | 
|---|
| 146 |  | 
|---|
| 147 |                                                    </TR> | 
|---|
| 148 |                                                  </TABLE> | 
|---|
| 149 |                                 </TR> | 
|---|
| 150 |                          </TABLE> | 
|---|
| 151 |                 </FORM> | 
|---|
| 152 |         </BODY> | 
|---|
| 153 | </HTML> | 
|---|