[3ec149c] | 1 | <? |
---|
| 2 | // ******************************************************************************************************** |
---|
| 3 | // Aplicación WEB: ogAdmWebCon |
---|
| 4 | // Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla |
---|
| 5 | // Fecha Creación: Agosto-2010 |
---|
| 6 | // Fecha Última modificación: Agosto-2010 |
---|
| 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 | var href3="./api/tree.html" |
---|
| 46 | var href4="./api/main.html" |
---|
| 47 | var href5="./api/index.html" |
---|
| 48 | |
---|
| 49 | switch(op){ |
---|
| 50 | case 1: |
---|
| 51 | href="./principal/aulas.php" |
---|
| 52 | break; |
---|
| 53 | case 2: |
---|
| 54 | href="./principal/acciones.php" |
---|
| 55 | break; |
---|
| 56 | case 3: |
---|
| 57 | href="./principal/imagenes.php" |
---|
| 58 | break; |
---|
| 59 | case 4: |
---|
| 60 | href="./principal/hardwares.php" |
---|
| 61 | break; |
---|
| 62 | case 5: |
---|
| 63 | href="./principal/softwares.php" |
---|
| 64 | break; |
---|
| 65 | case 6: |
---|
| 66 | href="./principal/repositorios.php" |
---|
| 67 | break; |
---|
| 68 | case 7: |
---|
| 69 | href="./principal/menus.php" |
---|
| 70 | break; |
---|
| 71 | case 8: |
---|
| 72 | href="./principal/reservas.php" |
---|
| 73 | break; |
---|
| 74 | case 9: |
---|
| 75 | href="./principal/administracion.php" |
---|
| 76 | break; |
---|
| 77 | case 10: |
---|
| 78 | href="./images/L_Iconos.php" |
---|
| 79 | href2="./images/M_Iconos.php" |
---|
| 80 | break; |
---|
| 81 | case 13: |
---|
| 82 | href="./principal/usuarios.php" |
---|
| 83 | break; |
---|
| 84 | } |
---|
| 85 | var oldOp=currentOp |
---|
| 86 | currentOp=o; |
---|
| 87 | if (oldOp) desresaltar(oldOp); |
---|
| 88 | currentOp.style.borderBottomColor="#ffffff" |
---|
| 89 | currentOp.style.borderRightColor="#ffffff" |
---|
| 90 | currentOp.style.borderTopColor="#808080" |
---|
| 91 | currentOp.style.borderLeftColor="#808080" |
---|
| 92 | if(op<20){ |
---|
| 93 | opadre.frames["frame_arbol"].document.location.href=href |
---|
| 94 | opadre.frames["frame_contenidos"].document.location.href=href2 |
---|
| 95 | } |
---|
| 96 | else{ |
---|
| 97 | switch(op){ |
---|
| 98 | case 21: |
---|
| 99 | window.top.location.href="acceso.php"; |
---|
| 100 | break; |
---|
| 101 | case 22: |
---|
| 102 | opadre.frames["frame_contenidos"].document.location.href=href4 |
---|
| 103 | break; |
---|
| 104 | } |
---|
| 105 | } |
---|
| 106 | } |
---|
| 107 | //________________________________________________________________________________________________________ |
---|
| 108 | </SCRIPT> |
---|
| 109 | </HEAD> |
---|
| 110 | <BODY bgcolor="#d4d0c8"> |
---|
| 111 | <FORM name=fdatos> |
---|
| 112 | <TABLE border=0 width=100% style="POSITION:absolute;LEFT:0px;TOP:0px" cellPadding=2 cellSpacing=0> |
---|
| 113 | <TR> |
---|
| 114 | <TD align=left> |
---|
| 115 | <TABLE class=menupral align=left cellPadding=1 cellSpacing=0 > |
---|
| 116 | <TR valign=baseline> |
---|
| 117 | <TD width=10><IMG src="./images/iconos/pomo.gif"></TD> |
---|
| 118 | <? if($idtipousuario!=$SUPERADMINISTRADOR){?> |
---|
| 119 | <TD onclick=eleccion(this,1) onmouseout=desresaltar(this) onmouseover=resaltar(this) > |
---|
| 120 | <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/centros.gif"> <SPAN class="menupral"><?echo $TbMsg[0]?></SPAN></A> </TD> |
---|
| 121 | <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> |
---|
| 122 | <TD onclick=eleccion(this,2) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle> |
---|
| 123 | <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/acciones.gif"> <SPAN class=menupral ><?echo $TbMsg[1]?></SPAN></A> </TD> |
---|
| 124 | <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> |
---|
| 125 | <TD onclick=eleccion(this,3) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle> |
---|
| 126 | <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/imagenes.gif"> <SPAN class=menupral ><?echo $TbMsg[2]?></SPAN></A> </TD> |
---|
| 127 | <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> |
---|
| 128 | <TD onclick=eleccion(this,4) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle> |
---|
| 129 | <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/confihard.gif"> <SPAN class=menupral ><?echo $TbMsg[3] ?></SPAN></A> </TD> |
---|
| 130 | <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> |
---|
| 131 | <TD onclick=eleccion(this,5) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle> |
---|
| 132 | <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/confisoft.gif"> <SPAN class=menupral ><?echo $TbMsg[4] ?></SPAN></A> </TD> |
---|
| 133 | <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> |
---|
| 134 | <TD onclick=eleccion(this,6) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle> |
---|
| 135 | <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/repositorio.gif"> <SPAN class=menupral ><?echo $TbMsg[5] ?></SPAN></A> </TD> |
---|
| 136 | <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> |
---|
| 137 | <TD onclick=eleccion(this,7) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle> |
---|
| 138 | <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/menus.gif"> <SPAN class=menupral ><?echo $TbMsg[6] ?></SPAN></A> </TD> |
---|
| 139 | <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> |
---|
| 140 | |
---|
| 141 | <!--TD onclick=eleccion(this,8) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle> |
---|
| 142 | <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/reservas.gif"> <SPAN class=menupral ><?echo $TbMsg[7] ?></SPAN></A> </TD> |
---|
| 143 | <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD--> |
---|
| 144 | |
---|
| 145 | <? } |
---|
| 146 | else{ |
---|
| 147 | if($idtipousuario==$SUPERADMINISTRADOR){?> |
---|
| 148 | <TD onclick=eleccion(this,9) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle> |
---|
| 149 | <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/administracion.gif"> |
---|
| 150 | <SPAN class=menupral ><?echo $TbMsg[8] ?></SPAN></A> </TD> |
---|
| 151 | <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> |
---|
| 152 | |
---|
| 153 | <TD onclick=eleccion(this,10) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle> |
---|
| 154 | <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/iconos.gif"> |
---|
| 155 | <SPAN class=menupral ><?echo $TbMsg[9] ?></SPAN></A> </TD> |
---|
| 156 | <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> |
---|
| 157 | <?}?> |
---|
| 158 | <?}?> |
---|
| 159 | |
---|
| 160 | <TD onclick=eleccion(this,22) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle> |
---|
| 161 | <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/ayuda.gif"> |
---|
| 162 | <SPAN class=menupral ><?echo $TbMsg[11] ?></SPAN></A> </TD> |
---|
| 163 | <TD width=4 align=middle><IMG src="./images/iconos/separitem.gif"></TD> |
---|
| 164 | <TD onclick=eleccion(this,21) onmouseout=desresaltar(this) onmouseover=resaltar(this) align=middle> |
---|
| 165 | <A href="#" style="text-decoration: none"><IMG border=0 src="./images/iconos/usuarioslog.gif"> |
---|
| 166 | <SPAN class=menupral ><?echo $TbMsg[10] ?></SPAN></A> </TD> |
---|
| 167 | |
---|
| 168 | |
---|
| 169 | </TR> |
---|
| 170 | </TABLE> |
---|
| 171 | </TR> |
---|
| 172 | </TABLE> |
---|
| 173 | </FORM> |
---|
| 174 | </BODY> |
---|
| 175 | </HTML> |
---|