[eeeb98a] | 1 | <?php |
---|
[3ec149c] | 2 | // ************************************************************************* |
---|
| 3 | // Aplicación WEB: ogAdmWebCon |
---|
| 4 | // Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla |
---|
| 5 | // Fecha Creación: Año 2009-2010 |
---|
| 6 | // Fecha Última modificación: Marzo-2006 |
---|
| 7 | // Nombre del fichero: aulas.php |
---|
| 8 | // Descripción : |
---|
| 9 | // Administra grupos,aulas y ordenadores de un determinado Centro |
---|
| 10 | // **************************************************************************** |
---|
| 11 | include_once("../includes/ctrlacc.php"); |
---|
| 12 | include_once("../clases/AdoPhp.php"); |
---|
| 13 | include_once("../clases/XmlPhp.php"); |
---|
| 14 | include_once("../clases/ArbolVistaXML.php"); |
---|
| 15 | include_once("../clases/MenuContextual.php"); |
---|
| 16 | include_once("../includes/constantes.php"); |
---|
| 17 | include_once("../includes/CreaComando.php"); |
---|
| 18 | include_once("../idiomas/php/".$idioma."/aulas_".$idioma.".php"); |
---|
[08720c1] | 19 | include_once("../idiomas/php/".$idioma."/comandos/mensajes_".$idioma.".php"); |
---|
[3ec149c] | 20 | //________________________________________________________________________________________________________ |
---|
| 21 | $cmd=CreaComando($cadenaconexion); |
---|
| 22 | if (!$cmd) |
---|
| 23 | Header('Location: '.$pagerror.'?herror=2'); // Error de conexióncon servidor B.D. |
---|
| 24 | else |
---|
| 25 | $arbolXML=CreaArbol($cmd,$idcentro,$nombrecentro); // Crea el arbol XML con todos los datos de aulas del Centro |
---|
| 26 | // Creación del árbol |
---|
| 27 | $baseurlimg="../images/signos"; // Url de las imágenes de signo |
---|
| 28 | $clasedefault="texto_arbol"; // Hoja de estilo (Clase por defecto) del árbol |
---|
[062b55a] | 29 | $arbol=new ArbolVistaXML($arbolXML,0,$baseurlimg,$clasedefault,1,0,5); // Crea el árbol (formato XML) |
---|
[3ec149c] | 30 | //________________________________________________________________________________________________________ |
---|
| 31 | ?> |
---|
| 32 | <HTML> |
---|
| 33 | <HEAD> |
---|
[bf59ef1] | 34 | <TITLE>Administración web de aulas</TITLE> |
---|
[3ec149c] | 35 | <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
---|
| 36 | <LINK rel="stylesheet" type="text/css" href="../estilos.css"> |
---|
| 37 | <SCRIPT language="javascript" src="../clases/jscripts/ArbolVistaXML.js"></SCRIPT> |
---|
| 38 | <SCRIPT language="javascript" src="../clases/jscripts/MenuContextual.js"></SCRIPT> |
---|
| 39 | <SCRIPT language="javascript" src="../jscripts/aulas.js"></SCRIPT> |
---|
| 40 | <SCRIPT language="javascript" src="../jscripts/opciones.js"></SCRIPT> |
---|
| 41 | <SCRIPT language="javascript" src="../jscripts/constantes.js"></SCRIPT> |
---|
| 42 | <SCRIPT language="javascript" src="../jscripts/comunes.js"></SCRIPT> |
---|
| 43 | <SCRIPT language="javascript" src="../clases/jscripts/HttpLib.js"></SCRIPT> |
---|
[bf59ef1] | 44 | <?php echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/comunes_'.$idioma.'.js"></SCRIPT>'?> |
---|
| 45 | <?php echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/aulas_'.$idioma.'.js"></SCRIPT>'?> |
---|
[3ec149c] | 46 | </HEAD> |
---|
| 47 | <BODY OnContextMenu="return false"> |
---|
| 48 | <FORM name="fcomandos" action="" method="post" target="frame_contenidos"> |
---|
| 49 | <INPUT type="hidden" name="idcomando" value=""> |
---|
| 50 | <INPUT type="hidden" name="descricomando" value=""> |
---|
| 51 | <INPUT type="hidden" name="ambito" value=""> |
---|
| 52 | <INPUT type="hidden" name="idambito" value=""> |
---|
| 53 | <INPUT type="hidden" name="nombreambito" value=""> |
---|
| 54 | <INPUT type="hidden" name="gestor" value=""> |
---|
| 55 | <INPUT type="hidden" name="funcion" value=""> |
---|
| 56 | </FORM> |
---|
| 57 | <? |
---|
| 58 | //________________________________________________________________________________________________________ |
---|
| 59 | echo $arbol->CreaArbolVistaXML(); // Crea árbol (HTML) a partir del XML |
---|
| 60 | $flotante=new MenuContextual(); // Crea objeto MenuContextual |
---|
| 61 | |
---|
| 62 | // Crea contextual de los Centros y aulas |
---|
| 63 | $XMLcontextual=ContextualXMLCentros(); // Centros |
---|
| 64 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 65 | $XMLcontextual=ContextualXMLGruposAulas(); // Grupos de aulas |
---|
| 66 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 67 | $XMLcontextual=ContextualXMLAulas(); // Aulas |
---|
| 68 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 69 | $XMLcontextual=CreacontextualXMLUsuarios(); // Operadores |
---|
| 70 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 71 | $XMLcontextual=ContextualXMLGruposOrdenadores(); // Grupos de ordenadores |
---|
| 72 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 73 | $XMLcontextual=ContextualXMLOrdenadores(); // Ordenadores |
---|
| 74 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 75 | |
---|
| 76 | // Crea contextual de los comandos para los distintos �bitos |
---|
| 77 | $XMLcontextual=ContextualXMLComandos($LITAMBITO_CENTROS,$AMBITO_CENTROS); |
---|
| 78 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 79 | $XMLcontextual=ContextualXMLComandos($LITAMBITO_GRUPOSAULAS,$AMBITO_GRUPOSAULAS); |
---|
| 80 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 81 | $XMLcontextual=ContextualXMLComandos($LITAMBITO_AULAS,$AMBITO_AULAS); |
---|
| 82 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 83 | $XMLcontextual=ContextualXMLComandos($LITAMBITO_GRUPOSORDENADORES,$AMBITO_GRUPOSORDENADORES); |
---|
| 84 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 85 | $XMLcontextual=ContextualXMLComandos($LITAMBITO_ORDENADORES,$AMBITO_ORDENADORES); |
---|
| 86 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
[58d08a2] | 87 | |
---|
[4329e85] | 88 | // Crea contextual de los comandos para los distintos �bitos |
---|
| 89 | $XMLcontextual=ContextualXMLSincronizacion($LITAMBITO_AULAS,$AMBITO_AULAS); |
---|
| 90 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 91 | $XMLcontextual=ContextualXMLSincronizacion($LITAMBITO_GRUPOSORDENADORES,$AMBITO_GRUPOSORDENADORES); |
---|
| 92 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 93 | $XMLcontextual=ContextualXMLSincronizacion($LITAMBITO_ORDENADORES,$AMBITO_ORDENADORES); |
---|
| 94 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 95 | |
---|
[eeeb98a] | 96 | |
---|
[58d08a2] | 97 | // Crea submenu contextual de clase de gestion de arranque pxe |
---|
| 98 | $XMLcontextual=ContextualXMLNetBoot(); // Crea submenu contextual de acciones |
---|
| 99 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 100 | |
---|
[062b55a] | 101 | // Crea submenu contextual de la clase de asistentes. |
---|
| 102 | $XMLcontextual=ContextualXMLAsistentes($LITAMBITO_CENTROS,$AMBITO_CENTROS); |
---|
| 103 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 104 | $XMLcontextual=ContextualXMLAsistentes($LITAMBITO_GRUPOSAULAS,$AMBITO_GRUPOSAULAS); |
---|
| 105 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 106 | $XMLcontextual=ContextualXMLAsistentes($LITAMBITO_AULAS,$AMBITO_AULAS); |
---|
| 107 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 108 | $XMLcontextual=ContextualXMLAsistentes($LITAMBITO_GRUPOSORDENADORES,$AMBITO_GRUPOSORDENADORES); |
---|
| 109 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 110 | $XMLcontextual=ContextualXMLAsistentes($LITAMBITO_ORDENADORES,$AMBITO_ORDENADORES); |
---|
| 111 | echo $flotante->CreaMenuContextual($XMLcontextual); |
---|
| 112 | |
---|
| 113 | |
---|
| 114 | |
---|
[3ec149c] | 115 | //___________________________________________________________________________________________________ |
---|
| 116 | ?> |
---|
| 117 | </BODY> |
---|
| 118 | </HTML> |
---|
| 119 | <? |
---|
| 120 | // ************************************************************************************************************************************************* |
---|
| 121 | // Devuelve una cadena con formato XML con toda la informaci� de aulas y ordenadores registrados en un Centro concreto |
---|
| 122 | // Parametros: |
---|
| 123 | // - cmd:Una comando ya operativo ( con conexiónabierta) |
---|
| 124 | // - idcentro: El identificador del centro |
---|
| 125 | // - nombrecentro: El nombre del centro |
---|
| 126 | //________________________________________________________________________________________________________ |
---|
| 127 | function CreaArbol($cmd,$idcentro,$nombrecentro){ |
---|
| 128 | global $TbMsg; |
---|
| 129 | global $LITAMBITO_CENTROS; |
---|
| 130 | $cadenaXML='<CENTRO'; |
---|
| 131 | // Atributos |
---|
| 132 | $cadenaXML.=' imagenodo="../images/iconos/centros.gif"'; |
---|
| 133 | $cadenaXML.=' nodoid='.$LITAMBITO_CENTROS."-".$idcentro; |
---|
| 134 | $cadenaXML.=' infonodo="'.$nombrecentro.'"'; |
---|
| 135 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_CENTROS."'" .')"'; |
---|
| 136 | $cadenaXML.='>'; |
---|
| 137 | $cadenaXML.=SubarbolXML_grupos_aulas($cmd,$idcentro,0); |
---|
| 138 | $cadenaXML.='</CENTRO>'; |
---|
| 139 | return($cadenaXML); |
---|
| 140 | } |
---|
| 141 | //________________________________________________________________________________________________________ |
---|
| 142 | function SubarbolXML_grupos_aulas($cmd,$idcentro,$grupoid){ |
---|
| 143 | global $TbMsg; |
---|
| 144 | global $LITAMBITO_GRUPOSAULAS; |
---|
| 145 | global $LITAMBITO_AULAS; |
---|
| 146 | global $AMBITO_GRUPOSAULAS; |
---|
| 147 | $cadenaXML=""; |
---|
| 148 | $rs=new Recordset; |
---|
| 149 | $cmd->texto="SELECT idgrupo,nombregrupo,grupoid FROM grupos WHERE grupoid=".$grupoid." AND idcentro=".$idcentro." AND tipo=".$AMBITO_GRUPOSAULAS." ORDER BY nombregrupo"; |
---|
| 150 | $rs->Comando=&$cmd; |
---|
| 151 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
| 152 | $rs->Primero(); |
---|
| 153 | while (!$rs->EOF){ |
---|
| 154 | $cadenaXML.='<GRUPOSAULAS'; |
---|
| 155 | // Atributos |
---|
| 156 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,'. " 'flo_".$LITAMBITO_GRUPOSAULAS."'" .');"'; |
---|
| 157 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
---|
| 158 | $cadenaXML.=' infonodo="'.$rs->campos["nombregrupo"].'"'; |
---|
| 159 | $cadenaXML.=' nodoid='.$LITAMBITO_GRUPOSAULAS.'-'.$rs->campos["idgrupo"]; |
---|
| 160 | $cadenaXML.='>'; |
---|
| 161 | $cadenaXML.=SubarbolXML_grupos_aulas($cmd,$idcentro,$rs->campos["idgrupo"]); |
---|
| 162 | $cadenaXML.='</GRUPOSAULAS>'; |
---|
| 163 | $rs->Siguiente(); |
---|
| 164 | } |
---|
| 165 | $rs->Cerrar(); |
---|
| 166 | $cmd->texto="SELECT idaula,nombreaula FROM aulas WHERE grupoid=".$grupoid." AND idcentro=".$idcentro." order by nombreaula"; |
---|
| 167 | $rs->Comando=&$cmd; |
---|
| 168 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
| 169 | $rs->Primero(); |
---|
| 170 | while (!$rs->EOF){ |
---|
| 171 | $cadenaXML.='<AULA '; |
---|
| 172 | // Atributos |
---|
| 173 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_AULAS."'" .')"'; |
---|
[591d551] | 174 | $cadenaXML.=' clicksupnodo="ver_aulas();"'; |
---|
[3ec149c] | 175 | $cadenaXML.=' imagenodo="../images/iconos/aula.gif"'; |
---|
| 176 | $cadenaXML.=' infonodo="'.$rs->campos["nombreaula"].'"'; |
---|
| 177 | $cadenaXML.=' nodoid='.$LITAMBITO_AULAS.'-'.$rs->campos["idaula"]; |
---|
| 178 | $cadenaXML.='>'; |
---|
| 179 | $cadenaXML.=SubarbolXML_aulas_ordenadores($cmd,$rs->campos["idaula"],0); |
---|
[34374f0] | 180 | // La siguiente línea está prevista para añadir operatores de aulas. |
---|
| 181 | //$cadenaXML.=SubarbolXML_aulas_operadores($cmd,$rs->campos["idaula"],$cc); |
---|
[3ec149c] | 182 | $cadenaXML.='</AULA>'; |
---|
| 183 | $rs->Siguiente(); |
---|
| 184 | } |
---|
| 185 | $rs->Cerrar(); |
---|
| 186 | return($cadenaXML); |
---|
| 187 | } |
---|
| 188 | //________________________________________________________________________________________________________ |
---|
[4329e85] | 189 | function SubarbolXML_aulas_operadores($cmd,$idaula,$cont){ |
---|
[3ec149c] | 190 | global $TbMsg; |
---|
| 191 | global $LITAMBITO_USUARIOS; |
---|
| 192 | global $cadenaXML; |
---|
| 193 | global $OPERADOR; |
---|
| 194 | $cadenaXML=""; |
---|
| 195 | $rs=new Recordset; |
---|
| 196 | $cmd->texto="SELECT idusuario,nombre FROM usuarios WHERE idtipousuario=".$OPERADOR." AND idambito=".$idaula." ORDER by nombre"; |
---|
| 197 | $rs->Comando=&$cmd; |
---|
| 198 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
| 199 | $rs->Primero(); |
---|
| 200 | if ($rs->EOF) return(""); |
---|
| 201 | while (!$rs->EOF){ |
---|
| 202 | $cont++; |
---|
| 203 | $cadenaXML.='<USUARIO'; |
---|
| 204 | // Atributos |
---|
| 205 | $cadenaXML.=' imagenodo="../images/iconos/operadores.gif"'; |
---|
| 206 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_USUARIOS."'" .')"'; |
---|
| 207 | $cadenaXML.=' infonodo="'.$rs->campos["nombre"].'"'; |
---|
| 208 | $cadenaXML.=' nodoid='.$LITAMBITO_USUARIOS.'-'.$rs->campos["idusuario"]; |
---|
| 209 | $cadenaXML.='></USUARIO>'; |
---|
| 210 | $rs->Siguiente(); |
---|
| 211 | } |
---|
| 212 | $rs->Cerrar(); |
---|
| 213 | return($cadenaXML); |
---|
| 214 | } |
---|
| 215 | //________________________________________________________________________________________________________ |
---|
| 216 | function SubarbolXML_aulas_ordenadores($cmd,$idaula,$grupoid){ |
---|
| 217 | global $TbMsg; |
---|
| 218 | global $LITAMBITO_GRUPOSORDENADORES; |
---|
| 219 | global $LITAMBITO_ORDENADORES; |
---|
| 220 | $cadenaXML=""; |
---|
| 221 | $rs=new Recordset; |
---|
| 222 | $cmd->texto="SELECT idgrupo,nombregrupoordenador,grupoid FROM gruposordenadores WHERE grupoid=".$grupoid." AND idaula=".$idaula." ORDER BY nombregrupoordenador"; |
---|
| 223 | $rs->Comando=&$cmd; |
---|
| 224 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
| 225 | $rs->Primero(); |
---|
| 226 | while (!$rs->EOF){ |
---|
| 227 | $cadenaXML.='<GRUPOSORDENADORES'; |
---|
| 228 | // Atributos |
---|
| 229 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_GRUPOSORDENADORES."'" .')"'; |
---|
| 230 | $cadenaXML.=' imagenodo="../images/iconos/carpeta.gif"'; |
---|
| 231 | $cadenaXML.=' infonodo="'.$rs->campos["nombregrupoordenador"].'"'; |
---|
| 232 | $cadenaXML.=' nodoid='.$LITAMBITO_GRUPOSORDENADORES.'-'.$rs->campos["idgrupo"]; |
---|
| 233 | $cadenaXML.='>'; |
---|
| 234 | $cadenaXML.=SubarbolXML_aulas_ordenadores($cmd,$idaula,$rs->campos["idgrupo"]); |
---|
| 235 | $cadenaXML.='</GRUPOSORDENADORES>'; |
---|
| 236 | $rs->Siguiente(); |
---|
| 237 | } |
---|
| 238 | $rs->Cerrar(); |
---|
| 239 | $cmd->texto="SELECT idordenador,nombreordenador FROM ordenadores WHERE grupoid=".$grupoid." AND idaula=".$idaula." order by nombreordenador desc"; |
---|
| 240 | $rs->Comando=&$cmd; |
---|
| 241 | if (!$rs->Abrir()) return($cadenaXML); // Error al abrir recordset |
---|
| 242 | $rs->Primero(); |
---|
| 243 | while (!$rs->EOF){ |
---|
| 244 | $cadenaXML.='<ORDENADOR'; |
---|
| 245 | // Atributos |
---|
| 246 | $cadenaXML.=' imagenodo="../images/iconos/ordenador.gif"'; |
---|
[591d551] | 247 | $wpages="../propiedades/propiedades_ordenadores.php"; |
---|
| 248 | $wParam="0,0,0,0,'". $wpages."'"; |
---|
[3ec149c] | 249 | $cadenaXML.=' clickcontextualnodo="menu_contextual(this,' ."'flo_".$LITAMBITO_ORDENADORES."'" .')"'; |
---|
[91615f4] | 250 | $cadenaXML.=' clicksupnodo="modificar('.$wParam.')"'; |
---|
[3ec149c] | 251 | $cadenaXML.=' infonodo="'.$rs->campos["nombreordenador"].'"'; |
---|
| 252 | $cadenaXML.=' nodoid='.$LITAMBITO_ORDENADORES.'-'.$rs->campos["idordenador"]; |
---|
| 253 | $cadenaXML.='></ORDENADOR>'; |
---|
| 254 | $rs->Siguiente(); |
---|
| 255 | } |
---|
| 256 | $rs->Cerrar(); |
---|
| 257 | return($cadenaXML); |
---|
| 258 | } |
---|
| 259 | //________________________________________________________________________________________________________ |
---|
| 260 | // |
---|
| 261 | // Mens Contextuales |
---|
| 262 | //________________________________________________________________________________________________________ |
---|
| 263 | function ContextualXMLCentros(){ |
---|
| 264 | global $TbMsg; |
---|
| 265 | global $AMBITO_AULAS; |
---|
| 266 | global $AMBITO_GRUPOSAULAS; |
---|
| 267 | global $LITAMBITO_GRUPOSAULAS; |
---|
| 268 | global $AMBITO_CENTROS; |
---|
| 269 | global $LITAMBITO_CENTROS; |
---|
| 270 | global $RESERVA_CONFIRMADA; |
---|
| 271 | |
---|
| 272 | $layerXML='<MENUCONTEXTUAL'; |
---|
| 273 | $layerXML.=' idctx="flo_'.$LITAMBITO_CENTROS.'"'; |
---|
| 274 | $layerXML.=' maxanchu=160'; |
---|
| 275 | $layerXML.=' swimg=1'; |
---|
| 276 | $layerXML.=' clase="menu_contextual"'; |
---|
| 277 | $layerXML.='>'; |
---|
| 278 | |
---|
| 279 | $layerXML.='<ITEM'; |
---|
| 280 | $layerXML.=' alpulsar="ver_aulas()"'; |
---|
| 281 | $layerXML.=' textoitem='.$TbMsg[1]; |
---|
| 282 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; |
---|
| 283 | $layerXML.='></ITEM>'; |
---|
| 284 | |
---|
| 285 | $layerXML.='<ITEM'; |
---|
| 286 | $layerXML.=' alpulsar="cola_acciones()"'; |
---|
| 287 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; |
---|
| 288 | $layerXML.=' textoitem='.$TbMsg[6]; |
---|
| 289 | $layerXML.='></ITEM>'; |
---|
| 290 | |
---|
| 291 | $layerXML.='<SEPARADOR>'; |
---|
| 292 | $layerXML.='</SEPARADOR>'; |
---|
| 293 | |
---|
| 294 | $layerXML.='<ITEM'; |
---|
| 295 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSAULAS.',' ."'".$LITAMBITO_GRUPOSAULAS."',1". ')"'; |
---|
| 296 | |
---|
| 297 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
| 298 | $layerXML.=' textoitem='.$TbMsg[0]; |
---|
| 299 | $layerXML.='></ITEM>'; |
---|
| 300 | |
---|
| 301 | $wLeft=170; |
---|
| 302 | $wTop=80; |
---|
| 303 | $wWidth=480; |
---|
| 304 | $wHeight=480; |
---|
| 305 | $wpages="../propiedades/propiedades_aulas.php"; |
---|
| 306 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
| 307 | $layerXML.='<ITEM'; |
---|
| 308 | $layerXML.=' alpulsar="insertar('.$wParam.',1)"'; |
---|
| 309 | $layerXML.=' imgitem="../images/iconos/aula.gif"'; |
---|
| 310 | $layerXML.=' textoitem='.$TbMsg[3]; |
---|
| 311 | $layerXML.='></ITEM>'; |
---|
| 312 | |
---|
| 313 | $layerXML.='<SEPARADOR>'; |
---|
| 314 | $layerXML.='</SEPARADOR>'; |
---|
| 315 | |
---|
| 316 | $layerXML.='<ITEM'; |
---|
| 317 | $layerXML.=' alpulsar="actualizar_ordenadores()"'; |
---|
| 318 | $layerXML.=' imgitem="../images/iconos/actualizar.gif"'; |
---|
| 319 | $layerXML.=' textoitem='.$TbMsg[4]; |
---|
| 320 | $layerXML.='></ITEM>'; |
---|
| 321 | |
---|
| 322 | $layerXML.='<ITEM'; |
---|
| 323 | $layerXML.=' alpulsar="purgar_ordenadores()"'; |
---|
| 324 | $layerXML.=' imgitem="../images/iconos/purgar.gif"'; |
---|
| 325 | $layerXML.=' textoitem='.$TbMsg[2]; |
---|
| 326 | $layerXML.='></ITEM>'; |
---|
| 327 | |
---|
| 328 | $layerXML.='<SEPARADOR>'; |
---|
| 329 | $layerXML.='</SEPARADOR>'; |
---|
| 330 | |
---|
| 331 | $layerXML.='<ITEM'; |
---|
| 332 | $layerXML.=' alpulsar="consola_remota('.$AMBITO_CENTROS.')"'; |
---|
| 333 | $layerXML.=' imgitem="../images/iconos/shell.gif"'; |
---|
| 334 | $layerXML.=' textoitem='.$TbMsg[33]; |
---|
| 335 | $layerXML.='></ITEM>'; |
---|
| 336 | |
---|
| 337 | $layerXML.='<SEPARADOR>'; |
---|
| 338 | $layerXML.='</SEPARADOR>'; |
---|
| 339 | |
---|
| 340 | $layerXML.='<ITEM'; |
---|
| 341 | $layerXML.=' subflotante="flo_comandos_'.$LITAMBITO_CENTROS.'"'; |
---|
| 342 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
| 343 | $layerXML.=' textoitem='.$TbMsg[5]; |
---|
| 344 | $layerXML.='></ITEM>'; |
---|
| 345 | |
---|
[4329e85] | 346 | |
---|
[3ec149c] | 347 | $layerXML.='<ITEM'; |
---|
| 348 | $layerXML.=' alpulsar="confirmarprocedimiento('.$AMBITO_CENTROS.')"'; |
---|
| 349 | $layerXML.=' imgitem="../images/iconos/procedimiento.gif"'; |
---|
| 350 | $layerXML.=' textoitem='.$TbMsg[28]; |
---|
| 351 | $layerXML.='></ITEM>'; |
---|
| 352 | |
---|
| 353 | $layerXML.='<SEPARADOR>'; |
---|
| 354 | $layerXML.='</SEPARADOR>'; |
---|
| 355 | |
---|
| 356 | $layerXML.='<ITEM'; |
---|
| 357 | $layerXML.=' alpulsar="cola_reservas('.$RESERVA_CONFIRMADA.')"'; |
---|
| 358 | $layerXML.=' imgitem="../images/iconos/reservas.gif"'; |
---|
| 359 | $layerXML.=' textoitem='.$TbMsg[29]; |
---|
| 360 | $layerXML.='></ITEM>'; |
---|
| 361 | |
---|
| 362 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
| 363 | return($layerXML); |
---|
| 364 | } |
---|
| 365 | //________________________________________________________________________________________________________ |
---|
| 366 | function ContextualXMLGruposAulas(){ |
---|
| 367 | global $TbMsg; |
---|
| 368 | global $AMBITO_AULAS; |
---|
| 369 | global $AMBITO_GRUPOSAULAS; |
---|
| 370 | global $LITAMBITO_GRUPOSAULAS; |
---|
| 371 | global $RESERVA_CONFIRMADA; |
---|
| 372 | |
---|
| 373 | $layerXML='<MENUCONTEXTUAL'; |
---|
| 374 | $layerXML.=' idctx="flo_'.$LITAMBITO_GRUPOSAULAS.'"'; |
---|
| 375 | $layerXML.=' maxanchu=155'; |
---|
| 376 | $layerXML.=' swimg=1'; |
---|
| 377 | $layerXML.=' clase="menu_contextual"'; |
---|
| 378 | $layerXML.='>'; |
---|
| 379 | |
---|
[58d08a2] | 380 | |
---|
| 381 | |
---|
[3ec149c] | 382 | $layerXML.='<ITEM'; |
---|
| 383 | $layerXML.=' alpulsar="ver_aulas()"'; |
---|
| 384 | $layerXML.=' textoitem='.$TbMsg[1]; |
---|
| 385 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; |
---|
| 386 | $layerXML.='></ITEM>'; |
---|
| 387 | |
---|
| 388 | $layerXML.='<ITEM'; |
---|
| 389 | $layerXML.=' alpulsar="cola_acciones()"'; |
---|
| 390 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; |
---|
| 391 | $layerXML.=' textoitem='.$TbMsg[6]; |
---|
| 392 | $layerXML.='></ITEM>'; |
---|
| 393 | |
---|
[58d08a2] | 394 | |
---|
[3ec149c] | 395 | $layerXML.='<SEPARADOR>'; |
---|
| 396 | $layerXML.='</SEPARADOR>'; |
---|
| 397 | |
---|
| 398 | $layerXML.='<ITEM'; |
---|
| 399 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSAULAS.',' ."'".$LITAMBITO_GRUPOSAULAS."'". ')"'; |
---|
| 400 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
| 401 | $layerXML.=' textoitem='.$TbMsg[0]; |
---|
| 402 | $layerXML.='></ITEM>'; |
---|
| 403 | |
---|
| 404 | $wLeft=170; |
---|
| 405 | $wTop=80; |
---|
| 406 | $wWidth=480; |
---|
| 407 | $wHeight=480; |
---|
| 408 | $wpages="../propiedades/propiedades_aulas.php"; |
---|
| 409 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
| 410 | $layerXML.='<ITEM'; |
---|
| 411 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
---|
| 412 | $layerXML.=' imgitem="../images/iconos/aula.gif"'; |
---|
| 413 | $layerXML.=' textoitem='.$TbMsg[3]; |
---|
| 414 | $layerXML.='></ITEM>'; |
---|
| 415 | |
---|
| 416 | $layerXML.='<SEPARADOR>'; |
---|
| 417 | $layerXML.='</SEPARADOR>'; |
---|
| 418 | |
---|
| 419 | $layerXML.='<ITEM'; |
---|
| 420 | $layerXML.=' alpulsar="actualizar_ordenadores()"'; |
---|
| 421 | $layerXML.=' imgitem="../images/iconos/actualizar.gif"'; |
---|
| 422 | $layerXML.=' textoitem='.$TbMsg[4]; |
---|
| 423 | $layerXML.='></ITEM>'; |
---|
| 424 | |
---|
| 425 | $layerXML.='<ITEM'; |
---|
| 426 | $layerXML.=' alpulsar="purgar_ordenadores()"'; |
---|
| 427 | $layerXML.=' imgitem="../images/iconos/purgar.gif"'; |
---|
| 428 | $layerXML.=' textoitem='.$TbMsg[2]; |
---|
| 429 | $layerXML.='></ITEM>'; |
---|
| 430 | |
---|
| 431 | $layerXML.='<SEPARADOR>'; |
---|
| 432 | $layerXML.='</SEPARADOR>'; |
---|
| 433 | |
---|
| 434 | $layerXML.='<ITEM'; |
---|
| 435 | $layerXML.=' alpulsar="consola_remota('.$AMBITO_GRUPOSAULAS.')"'; |
---|
| 436 | $layerXML.=' imgitem="../images/iconos/shell.gif"'; |
---|
| 437 | $layerXML.=' textoitem='.$TbMsg[33]; |
---|
| 438 | $layerXML.='></ITEM>'; |
---|
| 439 | |
---|
| 440 | $layerXML.='<SEPARADOR>'; |
---|
| 441 | $layerXML.='</SEPARADOR>'; |
---|
| 442 | |
---|
| 443 | $layerXML.='<ITEM'; |
---|
| 444 | $layerXML.=' subflotante="flo_comandos_'.$LITAMBITO_GRUPOSAULAS.'"'; |
---|
| 445 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
| 446 | $layerXML.=' textoitem='.$TbMsg[5]; |
---|
| 447 | $layerXML.='></ITEM>'; |
---|
| 448 | |
---|
| 449 | $layerXML.='<ITEM'; |
---|
| 450 | $layerXML.=' alpulsar="confirmarprocedimiento('.$AMBITO_GRUPOSAULAS.')"'; |
---|
| 451 | $layerXML.=' imgitem="../images/iconos/procedimiento.gif"'; |
---|
| 452 | $layerXML.=' textoitem='.$TbMsg[28]; |
---|
| 453 | $layerXML.='></ITEM>'; |
---|
| 454 | |
---|
| 455 | $layerXML.='<SEPARADOR>'; |
---|
| 456 | $layerXML.='</SEPARADOR>'; |
---|
| 457 | |
---|
| 458 | $layerXML.='<ITEM'; |
---|
| 459 | $layerXML.=' alpulsar="modificar_grupos()"'; |
---|
| 460 | $layerXML.=' imgitem="../images/iconos/modificar.gif"'; |
---|
| 461 | $layerXML.=' textoitem='.$TbMsg[13]; |
---|
| 462 | $layerXML.='></ITEM>'; |
---|
| 463 | |
---|
| 464 | $layerXML.='<ITEM'; |
---|
| 465 | $layerXML.=' alpulsar="eliminar_grupos()"'; |
---|
| 466 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
| 467 | $layerXML.=' textoitem='.$TbMsg[7]; |
---|
| 468 | $layerXML.='></ITEM>'; |
---|
| 469 | |
---|
| 470 | $layerXML.='<SEPARADOR>'; |
---|
| 471 | $layerXML.='</SEPARADOR>'; |
---|
| 472 | |
---|
| 473 | $layerXML.='<ITEM'; |
---|
| 474 | $layerXML.=' alpulsar="cola_reservas('.$RESERVA_CONFIRMADA.')"'; |
---|
| 475 | $layerXML.=' imgitem="../images/iconos/reservas.gif"'; |
---|
| 476 | $layerXML.=' textoitem='.$TbMsg[29]; |
---|
| 477 | $layerXML.='></ITEM>'; |
---|
| 478 | |
---|
| 479 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
| 480 | return($layerXML); |
---|
| 481 | } |
---|
| 482 | //________________________________________________________________________________________________________ |
---|
| 483 | function ContextualXMLAulas(){ |
---|
| 484 | global $TbMsg; |
---|
| 485 | global $AMBITO_AULAS; |
---|
| 486 | global $LITAMBITO_AULAS; |
---|
| 487 | global $RESERVA_CONFIRMADA; |
---|
| 488 | global $OPERADOR; |
---|
| 489 | |
---|
| 490 | $layerXML='<MENUCONTEXTUAL'; |
---|
| 491 | $layerXML.=' idctx="flo_'.$LITAMBITO_AULAS.'"'; |
---|
| 492 | $layerXML.=' maxanchu=190'; |
---|
| 493 | $layerXML.=' swimg=1'; |
---|
| 494 | $layerXML.=' clase="menu_contextual"'; |
---|
| 495 | $layerXML.='>'; |
---|
| 496 | |
---|
[a406554] | 497 | $layerXML.='<ITEM'; |
---|
| 498 | // Pasar al menú la única opción del submenú "NetBoot Gestión". |
---|
| 499 | //$layerXML.=' subflotante="flo_netboot"'; |
---|
| 500 | $layerXML.=' alpulsar="ver_boot()"'; |
---|
| 501 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; |
---|
| 502 | $layerXML.=' textoitem='.$TbMsg[40]; |
---|
| 503 | $layerXML.='></ITEM>'; |
---|
[58d08a2] | 504 | |
---|
[062b55a] | 505 | //adv compatiblidad Configurador de Startpages |
---|
[a406554] | 506 | $layerXML.='<ITEM'; |
---|
| 507 | $layerXML.=' alpulsar="ver_ubicarordenadores()"'; |
---|
| 508 | $layerXML.=' textoitem='.$TbMsg[41]; |
---|
| 509 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; |
---|
| 510 | $layerXML.='></ITEM>'; |
---|
[062b55a] | 511 | //adv compatiblidad Configurador de Startpages |
---|
| 512 | |
---|
[3ec149c] | 513 | $layerXML.='<ITEM'; |
---|
| 514 | $layerXML.=' alpulsar="ver_aulas()"'; |
---|
| 515 | $layerXML.=' textoitem='.$TbMsg[1]; |
---|
| 516 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; |
---|
| 517 | $layerXML.='></ITEM>'; |
---|
| 518 | |
---|
| 519 | $layerXML.='<ITEM'; |
---|
| 520 | $layerXML.=' alpulsar="cola_acciones()"'; |
---|
| 521 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; |
---|
| 522 | $layerXML.=' textoitem='.$TbMsg[6]; |
---|
| 523 | $layerXML.='></ITEM>'; |
---|
| 524 | |
---|
| 525 | $layerXML.='<SEPARADOR>'; |
---|
| 526 | $layerXML.='</SEPARADOR>'; |
---|
| 527 | |
---|
| 528 | $layerXML.='<ITEM'; |
---|
| 529 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_AULAS.',' ."'".$LITAMBITO_AULAS."'". ')"'; |
---|
| 530 | |
---|
| 531 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
| 532 | $layerXML.=' textoitem='.$TbMsg[8]; |
---|
| 533 | $layerXML.='></ITEM>'; |
---|
| 534 | |
---|
| 535 | $layerXML.='<ITEM'; |
---|
| 536 | $layerXML.=' alpulsar="colocar_ordenador(1)"'; |
---|
| 537 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
---|
| 538 | $layerXML.=' textoitem='.$TbMsg[11]; |
---|
| 539 | $layerXML.='></ITEM>'; |
---|
| 540 | |
---|
| 541 | $layerXML.='<SEPARADOR>'; |
---|
| 542 | $layerXML.='</SEPARADOR>'; |
---|
| 543 | |
---|
| 544 | $wLeft=170; |
---|
| 545 | $wTop=80; |
---|
| 546 | $wWidth=480; |
---|
| 547 | $wHeight=480; |
---|
| 548 | $wpages="../propiedades/propiedades_ordenadores.php"; |
---|
| 549 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
| 550 | $layerXML.='<ITEM'; |
---|
| 551 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
---|
| 552 | $layerXML.=' imgitem="../images/iconos/ordenador.gif"'; |
---|
| 553 | $layerXML.=' textoitem='.$TbMsg[9]; |
---|
| 554 | $layerXML.='></ITEM>'; |
---|
| 555 | |
---|
| 556 | $layerXML.='<ITEM'; |
---|
| 557 | $layerXML.=' alpulsar="incorporarordenador()"'; |
---|
| 558 | $layerXML.=' imgitem="../images/iconos/aula.gif"'; |
---|
| 559 | $layerXML.=' textoitem='.$TbMsg[27]; |
---|
| 560 | $layerXML.='></ITEM>'; |
---|
| 561 | |
---|
| 562 | $layerXML.='<SEPARADOR>'; |
---|
| 563 | $layerXML.='</SEPARADOR>'; |
---|
| 564 | |
---|
| 565 | $layerXML.='<ITEM'; |
---|
| 566 | $layerXML.=' alpulsar="actualizar_ordenadores()"'; |
---|
| 567 | $layerXML.=' imgitem="../images/iconos/actualizar.gif"'; |
---|
| 568 | $layerXML.=' textoitem='.$TbMsg[4]; |
---|
| 569 | $layerXML.='></ITEM>'; |
---|
| 570 | |
---|
| 571 | $layerXML.='<ITEM'; |
---|
| 572 | $layerXML.=' alpulsar="purgar_ordenadores()"'; |
---|
| 573 | $layerXML.=' imgitem="../images/iconos/purgar.gif"'; |
---|
| 574 | $layerXML.=' textoitem='.$TbMsg[2]; |
---|
| 575 | $layerXML.='></ITEM>'; |
---|
| 576 | |
---|
| 577 | $layerXML.='<SEPARADOR>'; |
---|
| 578 | $layerXML.='</SEPARADOR>'; |
---|
| 579 | |
---|
| 580 | $layerXML.='<ITEM'; |
---|
| 581 | $layerXML.=' alpulsar="consola_remota('.$AMBITO_AULAS.')"'; |
---|
| 582 | $layerXML.=' imgitem="../images/iconos/shell.gif"'; |
---|
| 583 | $layerXML.=' textoitem='.$TbMsg[33]; |
---|
| 584 | $layerXML.='></ITEM>'; |
---|
| 585 | |
---|
| 586 | $layerXML.='<SEPARADOR>'; |
---|
| 587 | $layerXML.='</SEPARADOR>'; |
---|
| 588 | |
---|
| 589 | $layerXML.='<ITEM'; |
---|
| 590 | $layerXML.=' subflotante="flo_comandos_'.$LITAMBITO_AULAS.'"'; |
---|
| 591 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
| 592 | $layerXML.=' textoitem='.$TbMsg[5]; |
---|
| 593 | $layerXML.='></ITEM>'; |
---|
| 594 | |
---|
| 595 | $layerXML.='<ITEM'; |
---|
[4329e85] | 596 | $layerXML.=' subflotante="flo_sincronizacion_'.$LITAMBITO_AULAS.'"'; |
---|
| 597 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
| 598 | $layerXML.=' textoitem='.$TbMsg[49]; |
---|
| 599 | $layerXML.='></ITEM>'; |
---|
[234a5ef] | 600 | |
---|
[4329e85] | 601 | $layerXML.='<ITEM'; |
---|
[062b55a] | 602 | $layerXML.=' subflotante="flo_asistentes_'.$LITAMBITO_AULAS.'"'; |
---|
| 603 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
[59e0a94] | 604 | $layerXML.=' textoitem='.$TbMsg[38]; |
---|
[062b55a] | 605 | $layerXML.='></ITEM>'; |
---|
| 606 | |
---|
[4329e85] | 607 | $layerXML.='<SEPARADOR>'; |
---|
| 608 | $layerXML.='</SEPARADOR>'; |
---|
| 609 | |
---|
[062b55a] | 610 | $layerXML.='<ITEM'; |
---|
[3ec149c] | 611 | $layerXML.=' alpulsar="confirmarprocedimiento('.$AMBITO_AULAS.')"'; |
---|
| 612 | $layerXML.=' imgitem="../images/iconos/procedimiento.gif"'; |
---|
| 613 | $layerXML.=' textoitem='.$TbMsg[28]; |
---|
| 614 | $layerXML.='></ITEM>'; |
---|
| 615 | |
---|
| 616 | $layerXML.='<SEPARADOR>'; |
---|
| 617 | $layerXML.='</SEPARADOR>'; |
---|
| 618 | |
---|
| 619 | $layerXML.='<ITEM'; |
---|
| 620 | $layerXML.=' alpulsar="configuraciones('.$AMBITO_AULAS.')"'; |
---|
| 621 | $layerXML.=' textoitem='.$TbMsg[10]; |
---|
| 622 | $layerXML.=' imgitem="../images/iconos/configuraciones.gif"'; |
---|
| 623 | $layerXML.='></ITEM>'; |
---|
| 624 | |
---|
| 625 | $wLeft=170; |
---|
| 626 | $wTop=80; |
---|
| 627 | $wWidth=480; |
---|
| 628 | $wHeight=480; |
---|
| 629 | $wpages="../propiedades/propiedades_aulas.php"; |
---|
| 630 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
| 631 | $layerXML.='<ITEM'; |
---|
| 632 | $layerXML.=' alpulsar="modificar('.$wParam.')"'; |
---|
| 633 | $layerXML.=' textoitem='.$TbMsg[13]; |
---|
| 634 | $layerXML.=' imgitem="../images/iconos/propiedades.gif"'; |
---|
| 635 | $layerXML.='></ITEM>'; |
---|
| 636 | |
---|
| 637 | $layerXML.='<ITEM'; |
---|
| 638 | $layerXML.=' alpulsar="eliminar('.$wParam.')"'; |
---|
| 639 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
| 640 | $layerXML.=' textoitem='.$TbMsg[14]; |
---|
| 641 | $layerXML.='></ITEM>'; |
---|
| 642 | |
---|
| 643 | $layerXML.='<SEPARADOR>'; |
---|
| 644 | $layerXML.='</SEPARADOR>'; |
---|
| 645 | |
---|
| 646 | // Crear operador |
---|
| 647 | $wLeft=140; |
---|
| 648 | $wTop=115; |
---|
| 649 | $wWidth=400; |
---|
| 650 | $wHeight=320; |
---|
| 651 | $wpages="../propiedades/propiedades_usuarios.php?idtipousuario=".$OPERADOR; |
---|
| 652 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
| 653 | $layerXML.='<ITEM'; |
---|
| 654 | $layerXML.=' alpulsar="insertar('.$wParam.',3)"'; |
---|
| 655 | $layerXML.=' imgitem="../images/iconos/operadores.gif"'; |
---|
| 656 | $layerXML.=' textoitem='.$TbMsg[37]; |
---|
| 657 | $layerXML.='></ITEM>'; |
---|
| 658 | |
---|
| 659 | $layerXML.='<ITEM'; |
---|
| 660 | $layerXML.=' alpulsar="cola_reservas('.$RESERVA_CONFIRMADA.')"'; |
---|
| 661 | $layerXML.=' imgitem="../images/iconos/reservas.gif"'; |
---|
| 662 | $layerXML.=' textoitem='.$TbMsg[29]; |
---|
| 663 | $layerXML.='></ITEM>'; |
---|
| 664 | |
---|
| 665 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
| 666 | return($layerXML); |
---|
| 667 | } |
---|
| 668 | //________________________________________________________________________________________________________ |
---|
| 669 | function CreacontextualXMLUsuarios(){ |
---|
| 670 | global $LITAMBITO_USUARIOS; |
---|
| 671 | global $TbMsg; |
---|
| 672 | |
---|
| 673 | $layerXML='<MENUCONTEXTUAL'; |
---|
| 674 | $layerXML.=' idctx="flo_'.$LITAMBITO_USUARIOS.'"'; |
---|
| 675 | $layerXML.=' maxanchu=130'; |
---|
| 676 | $layerXML.=' swimg=1'; |
---|
| 677 | $layerXML.=' clase="menu_contextual"'; |
---|
| 678 | $layerXML.='>'; |
---|
| 679 | |
---|
| 680 | // Modificar usuarios |
---|
| 681 | $wLeft=140; |
---|
| 682 | $wTop=115; |
---|
| 683 | $wWidth=400; |
---|
| 684 | $wHeight=320; |
---|
| 685 | $wpages="../propiedades/propiedades_usuarios.php"; |
---|
| 686 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
| 687 | $layerXML.='<ITEM'; |
---|
| 688 | $layerXML.=' alpulsar="modificar('.$wParam.')"'; |
---|
| 689 | $layerXML.=' textoitem='.$TbMsg[13]; |
---|
| 690 | $layerXML.=' imgitem="../images/iconos/propiedades.gif"'; |
---|
| 691 | $layerXML.='></ITEM>'; |
---|
| 692 | |
---|
| 693 | $layerXML.='<SEPARADOR>'; |
---|
| 694 | $layerXML.='</SEPARADOR>'; |
---|
| 695 | |
---|
| 696 | $layerXML.='<ITEM'; |
---|
| 697 | $layerXML.=' alpulsar="eliminar('.$wParam.')"'; |
---|
| 698 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
| 699 | $layerXML.=' textoitem='.$TbMsg[36]; |
---|
| 700 | $layerXML.='></ITEM>'; |
---|
| 701 | |
---|
| 702 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
| 703 | return($layerXML); |
---|
| 704 | } |
---|
| 705 | //________________________________________________________________________________________________________ |
---|
| 706 | function ContextualXMLGruposOrdenadores(){ |
---|
| 707 | global $TbMsg; |
---|
| 708 | global $AMBITO_GRUPOSORDENADORES; |
---|
| 709 | global $LITAMBITO_GRUPOSORDENADORES; |
---|
| 710 | $layerXML='<MENUCONTEXTUAL'; |
---|
| 711 | |
---|
| 712 | $layerXML.=' idctx="flo_'.$LITAMBITO_GRUPOSORDENADORES.'"'; |
---|
| 713 | $layerXML.=' maxanchu=195'; |
---|
| 714 | $layerXML.=' swimg=1'; |
---|
| 715 | $layerXML.=' clase="menu_contextual"'; |
---|
| 716 | $layerXML.='>'; |
---|
| 717 | |
---|
[d47323ec] | 718 | |
---|
| 719 | $layerXML.='<ITEM'; |
---|
| 720 | // Pasar al menú la única opción del submenú "NetBoot Gestión". |
---|
| 721 | //$layerXML.=' subflotante="flo_netboot"'; |
---|
| 722 | $layerXML.=' alpulsar="ver_boot()"'; |
---|
| 723 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; |
---|
| 724 | $layerXML.=' textoitem='.$TbMsg[40]; |
---|
| 725 | $layerXML.='></ITEM>'; |
---|
| 726 | |
---|
| 727 | |
---|
[58d08a2] | 728 | |
---|
[3ec149c] | 729 | $layerXML.='<ITEM'; |
---|
| 730 | $layerXML.=' alpulsar="ver_aulas()"'; |
---|
| 731 | $layerXML.=' textoitem='.$TbMsg[1]; |
---|
| 732 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; |
---|
| 733 | $layerXML.='></ITEM>'; |
---|
| 734 | |
---|
| 735 | $layerXML.='<ITEM'; |
---|
| 736 | $layerXML.=' alpulsar="cola_acciones()"'; |
---|
| 737 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; |
---|
| 738 | $layerXML.=' textoitem='.$TbMsg[6]; |
---|
| 739 | $layerXML.='></ITEM>'; |
---|
| 740 | |
---|
| 741 | $layerXML.='<SEPARADOR>'; |
---|
| 742 | $layerXML.='</SEPARADOR>'; |
---|
| 743 | |
---|
| 744 | $layerXML.='<ITEM'; |
---|
| 745 | $layerXML.=' alpulsar="insertar_grupos('.$AMBITO_GRUPOSORDENADORES.',' ."'".$LITAMBITO_GRUPOSORDENADORES."'". ')"'; |
---|
| 746 | $layerXML.=' imgitem="../images/iconos/carpeta.gif"'; |
---|
| 747 | $layerXML.=' textoitem='.$TbMsg[8]; |
---|
| 748 | $layerXML.='></ITEM>'; |
---|
| 749 | |
---|
| 750 | $wLeft=170; |
---|
| 751 | $wTop=80; |
---|
| 752 | $wWidth=480; |
---|
| 753 | $wHeight=480; |
---|
| 754 | $wpages="../propiedades/propiedades_ordenadores.php"; |
---|
| 755 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
| 756 | $layerXML.='<ITEM'; |
---|
| 757 | $layerXML.=' alpulsar="insertar('.$wParam.')"'; |
---|
| 758 | $layerXML.=' imgitem="../images/iconos/ordenador.gif"'; |
---|
| 759 | $layerXML.=' textoitem='.$TbMsg[9]; |
---|
| 760 | $layerXML.='></ITEM>'; |
---|
| 761 | |
---|
| 762 | $layerXML.='<SEPARADOR>'; |
---|
| 763 | $layerXML.='</SEPARADOR>'; |
---|
| 764 | |
---|
| 765 | $layerXML.='<ITEM'; |
---|
| 766 | $layerXML.=' alpulsar="actualizar_ordenadores()"'; |
---|
| 767 | $layerXML.=' imgitem="../images/iconos/actualizar.gif"'; |
---|
| 768 | $layerXML.=' textoitem='.$TbMsg[4]; |
---|
| 769 | $layerXML.='></ITEM>'; |
---|
| 770 | |
---|
| 771 | $layerXML.='<ITEM'; |
---|
| 772 | $layerXML.=' alpulsar="purgar_ordenadores()"'; |
---|
| 773 | $layerXML.=' imgitem="../images/iconos/purgar.gif"'; |
---|
| 774 | $layerXML.=' textoitem='.$TbMsg[2]; |
---|
| 775 | $layerXML.='></ITEM>'; |
---|
| 776 | |
---|
| 777 | $layerXML.='<SEPARADOR>'; |
---|
| 778 | $layerXML.='</SEPARADOR>'; |
---|
| 779 | |
---|
| 780 | $layerXML.='<ITEM'; |
---|
| 781 | $layerXML.=' alpulsar="consola_remota('.$AMBITO_GRUPOSORDENADORES.')"'; |
---|
| 782 | $layerXML.=' imgitem="../images/iconos/shell.gif"'; |
---|
| 783 | $layerXML.=' textoitem='.$TbMsg[33]; |
---|
| 784 | $layerXML.='></ITEM>'; |
---|
| 785 | |
---|
| 786 | $layerXML.='<SEPARADOR>'; |
---|
| 787 | $layerXML.='</SEPARADOR>'; |
---|
| 788 | |
---|
| 789 | $layerXML.='<ITEM'; |
---|
| 790 | $layerXML.=' subflotante="flo_comandos_'.$LITAMBITO_GRUPOSORDENADORES.'"'; |
---|
| 791 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
| 792 | $layerXML.=' textoitem='.$TbMsg[5]; |
---|
| 793 | $layerXML.='></ITEM>'; |
---|
[4329e85] | 794 | |
---|
| 795 | $layerXML.='<ITEM'; |
---|
| 796 | $layerXML.=' subflotante="flo_sincronizacion_'.$LITAMBITO_GRUPOSORDENADORES.'"'; |
---|
| 797 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
| 798 | $layerXML.=' textoitem='.$TbMsg[49]; |
---|
| 799 | $layerXML.='></ITEM>'; |
---|
| 800 | |
---|
[3ec149c] | 801 | $layerXML.='<ITEM'; |
---|
[062b55a] | 802 | $layerXML.=' subflotante="flo_asistentes_'.$LITAMBITO_GRUPOSORDENADORES.'"'; |
---|
| 803 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
[59e0a94] | 804 | $layerXML.=' textoitem='.$TbMsg[38]; |
---|
[062b55a] | 805 | $layerXML.='></ITEM>'; |
---|
[4329e85] | 806 | |
---|
| 807 | $layerXML.='<SEPARADOR>'; |
---|
| 808 | $layerXML.='</SEPARADOR>'; |
---|
| 809 | |
---|
[062b55a] | 810 | $layerXML.='<ITEM'; |
---|
[3ec149c] | 811 | $layerXML.=' alpulsar="confirmarprocedimiento('.$AMBITO_GRUPOSORDENADORES.')"'; |
---|
| 812 | $layerXML.=' imgitem="../images/iconos/procedimiento.gif"'; |
---|
| 813 | $layerXML.=' textoitem='.$TbMsg[28]; |
---|
| 814 | $layerXML.='></ITEM>'; |
---|
| 815 | |
---|
| 816 | $layerXML.='<SEPARADOR>'; |
---|
| 817 | $layerXML.='</SEPARADOR>'; |
---|
| 818 | |
---|
| 819 | $layerXML.='<ITEM'; |
---|
| 820 | $layerXML.=' alpulsar="colocar_ordenador(0)"'; |
---|
| 821 | $layerXML.=' imgitem="../images/iconos/colocar.gif"'; |
---|
| 822 | $layerXML.=' textoitem='.$TbMsg[11]; |
---|
| 823 | $layerXML.='></ITEM>'; |
---|
| 824 | |
---|
| 825 | $layerXML.='<SEPARADOR>'; |
---|
| 826 | $layerXML.='</SEPARADOR>'; |
---|
| 827 | |
---|
| 828 | $layerXML.='<ITEM'; |
---|
| 829 | $layerXML.=' alpulsar="configuraciones('.$AMBITO_GRUPOSORDENADORES.')"'; |
---|
| 830 | $layerXML.=' textoitem='.$TbMsg[10]; |
---|
| 831 | $layerXML.=' imgitem="../images/iconos/configuraciones.gif"'; |
---|
| 832 | $layerXML.='></ITEM>'; |
---|
| 833 | |
---|
| 834 | $layerXML.='<ITEM'; |
---|
| 835 | $layerXML.=' alpulsar="modificar_grupos()"'; |
---|
| 836 | $layerXML.=' imgitem="../images/iconos/modificar.gif"'; |
---|
| 837 | $layerXML.=' textoitem='.$TbMsg[13]; |
---|
| 838 | $layerXML.='></ITEM>'; |
---|
| 839 | |
---|
| 840 | $layerXML.='<ITEM'; |
---|
| 841 | $layerXML.=' alpulsar="eliminar_grupos()"'; |
---|
| 842 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
| 843 | $layerXML.=' textoitem='.$TbMsg[16]; |
---|
| 844 | $layerXML.='></ITEM>'; |
---|
| 845 | |
---|
| 846 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
| 847 | return($layerXML); |
---|
| 848 | } |
---|
| 849 | //________________________________________________________________________________________________________ |
---|
| 850 | function ContextualXMLOrdenadores(){ |
---|
| 851 | global $TbMsg; |
---|
| 852 | global $AMBITO_ORDENADORES; |
---|
| 853 | global $LITAMBITO_ORDENADORES; |
---|
| 854 | |
---|
| 855 | $layerXML='<MENUCONTEXTUAL'; |
---|
| 856 | $layerXML.=' idctx="flo_'.$LITAMBITO_ORDENADORES.'"'; |
---|
| 857 | $layerXML.=' maxanchu=140'; |
---|
| 858 | $layerXML.=' swimg=1'; |
---|
| 859 | $layerXML.=' clase="menu_contextual"'; |
---|
| 860 | $layerXML.='>'; |
---|
| 861 | |
---|
| 862 | $layerXML.='<ITEM'; |
---|
| 863 | $layerXML.=' alpulsar="cola_acciones()"'; |
---|
| 864 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; |
---|
| 865 | $layerXML.=' textoitem='.$TbMsg[6]; |
---|
| 866 | $layerXML.='></ITEM>'; |
---|
| 867 | |
---|
| 868 | $layerXML.='<SEPARADOR>'; |
---|
| 869 | $layerXML.='</SEPARADOR>'; |
---|
[58d08a2] | 870 | |
---|
| 871 | $layerXML.='<ITEM'; |
---|
| 872 | $layerXML.=' alpulsar="ver_log('.$AMBITO_ORDENADORES.')"'; |
---|
| 873 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; |
---|
[77b4ec4] | 874 | $layerXML.=' textoitem='.$TbMsg[47]; |
---|
[58d08a2] | 875 | $layerXML.='></ITEM>'; |
---|
[f311787] | 876 | |
---|
| 877 | $layerXML.='<ITEM'; |
---|
| 878 | $layerXML.=' alpulsar="ver_log_seguimiento('.$AMBITO_ORDENADORES.')"'; |
---|
| 879 | $layerXML.=' imgitem="../images/iconos/acciones.gif"'; |
---|
[77b4ec4] | 880 | $layerXML.=' textoitem='.$TbMsg[48]; |
---|
[f311787] | 881 | $layerXML.='></ITEM>'; |
---|
| 882 | |
---|
[3ec149c] | 883 | $layerXML.='<ITEM'; |
---|
| 884 | $layerXML.=' alpulsar="mover_ordenador()"'; |
---|
| 885 | $layerXML.=' imgitem="../images/iconos/mover.gif"'; |
---|
| 886 | $layerXML.=' textoitem='.$TbMsg[17]; |
---|
| 887 | $layerXML.='></ITEM>'; |
---|
| 888 | |
---|
| 889 | $layerXML.='<SEPARADOR>'; |
---|
| 890 | $layerXML.='</SEPARADOR>'; |
---|
| 891 | |
---|
| 892 | $layerXML.='<ITEM'; |
---|
| 893 | $layerXML.=' alpulsar="actualizar_ordenadores()"'; |
---|
| 894 | $layerXML.=' imgitem="../images/iconos/actualizar.gif"'; |
---|
| 895 | $layerXML.=' textoitem='.$TbMsg[4]; |
---|
| 896 | $layerXML.='></ITEM>'; |
---|
| 897 | |
---|
| 898 | $layerXML.='<ITEM'; |
---|
| 899 | $layerXML.=' alpulsar="purgar_ordenadores()"'; |
---|
| 900 | $layerXML.=' imgitem="../images/iconos/purgar.gif"'; |
---|
| 901 | $layerXML.=' textoitem='.$TbMsg[2]; |
---|
| 902 | $layerXML.='></ITEM>'; |
---|
| 903 | |
---|
| 904 | $layerXML.='<SEPARADOR>'; |
---|
| 905 | $layerXML.='</SEPARADOR>'; |
---|
| 906 | |
---|
| 907 | $layerXML.='<ITEM'; |
---|
| 908 | $layerXML.=' alpulsar="consola_remota('.$AMBITO_ORDENADORES.')"'; |
---|
| 909 | $layerXML.=' imgitem="../images/iconos/shell.gif"'; |
---|
| 910 | $layerXML.=' textoitem='.$TbMsg[33]; |
---|
| 911 | $layerXML.='></ITEM>'; |
---|
| 912 | |
---|
| 913 | $layerXML.='<ITEM'; |
---|
| 914 | $layerXML.=' alpulsar="eco_remoto()"'; |
---|
| 915 | $layerXML.=' imgitem="../images/iconos/ecocon.gif"'; |
---|
| 916 | $layerXML.=' textoitem='.$TbMsg[39]; |
---|
| 917 | $layerXML.='></ITEM>'; |
---|
| 918 | |
---|
| 919 | $layerXML.='<SEPARADOR>'; |
---|
| 920 | $layerXML.='</SEPARADOR>'; |
---|
| 921 | |
---|
| 922 | $layerXML.='<ITEM'; |
---|
| 923 | $layerXML.=' subflotante="flo_comandos_'.$LITAMBITO_ORDENADORES.'"'; |
---|
| 924 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
| 925 | $layerXML.=' textoitem='.$TbMsg[5]; |
---|
| 926 | $layerXML.='></ITEM>'; |
---|
| 927 | |
---|
[4329e85] | 928 | $layerXML.='<ITEM'; |
---|
| 929 | $layerXML.=' subflotante="flo_sincronizacion_'.$LITAMBITO_ORDENADORES.'"'; |
---|
| 930 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
| 931 | $layerXML.=' textoitem='.$TbMsg[49]; |
---|
| 932 | $layerXML.='></ITEM>'; |
---|
[062b55a] | 933 | |
---|
| 934 | $layerXML.='<ITEM'; |
---|
| 935 | $layerXML.=' subflotante="flo_asistentes_'.$LITAMBITO_ORDENADORES.'"'; |
---|
| 936 | $layerXML.=' imgitem="../images/iconos/comandos.gif"'; |
---|
[59e0a94] | 937 | $layerXML.=' textoitem='.$TbMsg[38]; |
---|
[062b55a] | 938 | $layerXML.='></ITEM>'; |
---|
| 939 | |
---|
[4329e85] | 940 | $layerXML.='<SEPARADOR>'; |
---|
| 941 | $layerXML.='</SEPARADOR>'; |
---|
[062b55a] | 942 | |
---|
[3ec149c] | 943 | $layerXML.='<ITEM'; |
---|
| 944 | $layerXML.=' alpulsar="confirmarprocedimiento('.$AMBITO_ORDENADORES.')"'; |
---|
| 945 | $layerXML.=' imgitem="../images/iconos/procedimiento.gif"'; |
---|
| 946 | $layerXML.=' textoitem='.$TbMsg[28]; |
---|
| 947 | $layerXML.='></ITEM>'; |
---|
| 948 | |
---|
| 949 | $layerXML.='<SEPARADOR>'; |
---|
| 950 | $layerXML.='</SEPARADOR>'; |
---|
| 951 | |
---|
| 952 | $layerXML.='<ITEM'; |
---|
| 953 | $layerXML.=' alpulsar="configuraciones('.$AMBITO_ORDENADORES.')"'; |
---|
| 954 | $layerXML.=' textoitem='.$TbMsg[10]; |
---|
| 955 | $layerXML.=' imgitem="../images/iconos/configuraciones.gif"'; |
---|
| 956 | $layerXML.='></ITEM>'; |
---|
| 957 | |
---|
| 958 | $wLeft=170; |
---|
| 959 | $wTop=80; |
---|
| 960 | $wWidth=480; |
---|
| 961 | $wHeight=400; |
---|
| 962 | $wpages="../propiedades/propiedades_ordenadores.php"; |
---|
| 963 | $wParam=$wLeft .",".$wTop.",".$wWidth.",".$wHeight.",'". $wpages."'"; |
---|
| 964 | $layerXML.='<ITEM'; |
---|
| 965 | $layerXML.=' alpulsar="modificar('.$wParam.')"'; |
---|
| 966 | |
---|
| 967 | $layerXML.=' textoitem='.$TbMsg[13]; |
---|
| 968 | $layerXML.=' imgitem="../images/iconos/propiedades.gif"'; |
---|
| 969 | $layerXML.='></ITEM>'; |
---|
| 970 | |
---|
| 971 | $layerXML.='<ITEM'; |
---|
| 972 | $layerXML.=' alpulsar="eliminar('.$wParam.')"'; |
---|
| 973 | $layerXML.=' imgitem="../images/iconos/eliminar.gif"'; |
---|
| 974 | $layerXML.=' textoitem='.$TbMsg[18]; |
---|
| 975 | $layerXML.='></ITEM>'; |
---|
| 976 | |
---|
| 977 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
| 978 | return($layerXML); |
---|
| 979 | } |
---|
| 980 | //________________________________________________________________________________________________________ |
---|
| 981 | function ContextualXMLComandos($litambito,$ambito){ |
---|
| 982 | global $cmd; |
---|
[cb29596] | 983 | global $TbMsg; |
---|
[3ec149c] | 984 | $maxlongdescri=0; |
---|
| 985 | $rs=new Recordset; |
---|
[a406554] | 986 | $cmd->texto="SELECT idcomando,descripcion,pagina,gestor,funcion |
---|
| 987 | FROM comandos |
---|
[4329e85] | 988 | WHERE activo=1 AND submenu='' AND aplicambito & ".$ambito.">0 |
---|
[a406554] | 989 | ORDER BY descripcion"; |
---|
[3ec149c] | 990 | $rs->Comando=&$cmd; |
---|
| 991 | if ($rs->Abrir()){ |
---|
| 992 | $layerXML=""; |
---|
| 993 | $rs->Primero(); |
---|
| 994 | while (!$rs->EOF){ |
---|
[cb29596] | 995 | $descrip=$TbMsg["COMMAND_".$rs->campos["funcion"]]; |
---|
| 996 | if (empty ($descrip)) { |
---|
[4329e85] | 997 | $descrip=$rs->campos["descripcion"]; |
---|
[cb29596] | 998 | } |
---|
[3ec149c] | 999 | $layerXML.='<ITEM'; |
---|
| 1000 | $layerXML.=' alpulsar="confirmarcomando('."'".$ambito."'".','.$rs->campos["idcomando"].',\''.$rs->campos["descripcion"].'\',\''.$rs->campos["pagina"]. '\',\''.$rs->campos["gestor"]. '\',\''.$rs->campos["funcion"]. '\')"'; |
---|
[cb29596] | 1001 | $layerXML.=' textoitem="'.$descrip.'"'; |
---|
[3ec149c] | 1002 | $layerXML.='></ITEM>'; |
---|
[cb29596] | 1003 | if ($maxlongdescri < strlen($descrip)) // Toma la Descripción de mayor longitud |
---|
| 1004 | $maxlongdescri=strlen($descrip); |
---|
[3ec149c] | 1005 | $rs->Siguiente(); |
---|
| 1006 | } |
---|
| 1007 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
| 1008 | $prelayerXML='<MENUCONTEXTUAL'; |
---|
| 1009 | $prelayerXML.=' idctx="flo_comandos_'.$litambito.'"'; |
---|
[4329e85] | 1010 | $prelayerXML.=' maxanchu='.$maxlongdescri*6; |
---|
| 1011 | $prelayerXML.=' clase="menu_contextual"'; |
---|
| 1012 | $prelayerXML.='>'; |
---|
| 1013 | $finallayerXML=$prelayerXML.$layerXML; |
---|
| 1014 | return($finallayerXML); |
---|
| 1015 | } |
---|
| 1016 | } |
---|
[eeeb98a] | 1017 | |
---|
[4329e85] | 1018 | //________________________________________________________________________________________________________ |
---|
[eeeb98a] | 1019 | |
---|
[4329e85] | 1020 | function ContextualXMLSincronizacion($litambito,$ambito){ |
---|
| 1021 | global $cmd; |
---|
| 1022 | global $TbMsg; |
---|
| 1023 | $maxlongdescri=0; |
---|
| 1024 | $rs=new Recordset; |
---|
| 1025 | $cmd->texto="SELECT idcomando,descripcion,pagina,gestor,funcion |
---|
| 1026 | FROM comandos |
---|
[d7a03be] | 1027 | WHERE activo=1 AND submenu='Sincronizacion' AND aplicambito & ".$ambito.">0 |
---|
[4329e85] | 1028 | ORDER BY descripcion"; |
---|
| 1029 | $rs->Comando=&$cmd; |
---|
| 1030 | if ($rs->Abrir()){ |
---|
| 1031 | $layerXML=""; |
---|
| 1032 | $rs->Primero(); |
---|
| 1033 | while (!$rs->EOF){ |
---|
| 1034 | $descrip=$TbMsg["COMMAND_".$rs->campos["funcion"]]; |
---|
| 1035 | if (empty ($descrip)) { |
---|
| 1036 | $descrip=$rs->campos["descripcion"]; |
---|
| 1037 | } |
---|
| 1038 | $layerXML.='<ITEM'; |
---|
| 1039 | $layerXML.=' alpulsar="confirmarcomando('."'".$ambito."'".','.$rs->campos["idcomando"].',\''.$rs->campos["descripcion"].'\',\''.$rs->campos["pagina"]. '\',\''.$rs->campos["gestor"]. '\',\''.$rs->campos["funcion"]. '\')"'; |
---|
| 1040 | $layerXML.=' textoitem="'.$descrip.'"'; |
---|
| 1041 | $layerXML.='></ITEM>'; |
---|
| 1042 | if ($maxlongdescri < strlen($descrip)) // Toma la Descripción de mayor longitud |
---|
| 1043 | $maxlongdescri=strlen($descrip); |
---|
| 1044 | $rs->Siguiente(); |
---|
| 1045 | } |
---|
| 1046 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
| 1047 | $prelayerXML='<MENUCONTEXTUAL'; |
---|
| 1048 | $prelayerXML.=' idctx="flo_sincronizacion_'.$litambito.'"'; |
---|
| 1049 | $prelayerXML.=' maxanchu='.$maxlongdescri*6; |
---|
[3ec149c] | 1050 | $prelayerXML.=' clase="menu_contextual"'; |
---|
| 1051 | $prelayerXML.='>'; |
---|
| 1052 | $finallayerXML=$prelayerXML.$layerXML; |
---|
| 1053 | return($finallayerXML); |
---|
| 1054 | } |
---|
| 1055 | } |
---|
[eeeb98a] | 1056 | //________________________________________________________________________________________________________ |
---|
[062b55a] | 1057 | function ContextualXMLAsistentes($litambito,$ambito){ |
---|
| 1058 | global $cmd; |
---|
[cb29596] | 1059 | global $TbMsg; |
---|
[062b55a] | 1060 | $maxlongdescri=0; |
---|
| 1061 | $rs=new Recordset; |
---|
[a406554] | 1062 | $cmd->texto="SELECT idcomando,descripcion,pagina,gestor,funcion |
---|
| 1063 | FROM asistentes |
---|
| 1064 | WHERE activo=1 AND aplicambito & ".$ambito.">0 |
---|
| 1065 | ORDER BY descripcion"; |
---|
[062b55a] | 1066 | $rs->Comando=&$cmd; |
---|
| 1067 | if ($rs->Abrir()){ |
---|
| 1068 | $layerXML=""; |
---|
| 1069 | $rs->Primero(); |
---|
| 1070 | while (!$rs->EOF){ |
---|
[cb29596] | 1071 | $descrip=$TbMsg["WIZARD_".$rs->campos["descripcion"]]; |
---|
| 1072 | if (empty ($descrip)) { |
---|
| 1073 | $descrip=$rs->campos["descripcion"]; |
---|
| 1074 | } |
---|
[062b55a] | 1075 | $layerXML.='<ITEM'; |
---|
| 1076 | $layerXML.=' alpulsar="confirmarcomando('."'".$ambito."'".','.$rs->campos["idcomando"].',\''.$rs->campos["descripcion"].'\',\''.$rs->campos["pagina"]. '\',\''.$rs->campos["gestor"]. '\',\''.$rs->campos["funcion"]. '\')"'; |
---|
[cb29596] | 1077 | $layerXML.=' textoitem="'.$descrip.'"'; |
---|
[062b55a] | 1078 | $layerXML.='></ITEM>'; |
---|
[cb29596] | 1079 | if($maxlongdescri<strlen($descrip)) // Toma la Descripción de mayor longitud |
---|
| 1080 | $maxlongdescri=strlen($descrip); |
---|
[062b55a] | 1081 | $rs->Siguiente(); |
---|
| 1082 | } |
---|
| 1083 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
| 1084 | $prelayerXML='<MENUCONTEXTUAL'; |
---|
| 1085 | $prelayerXML.=' idctx="flo_asistentes_'.$litambito.'"'; |
---|
[4329e85] | 1086 | $prelayerXML.=' maxanchu='.$maxlongdescri*6; |
---|
[062b55a] | 1087 | $prelayerXML.=' clase="menu_contextual"'; |
---|
| 1088 | $prelayerXML.='>'; |
---|
| 1089 | $finallayerXML=$prelayerXML.$layerXML; |
---|
| 1090 | return($finallayerXML); |
---|
| 1091 | } |
---|
| 1092 | } |
---|
| 1093 | |
---|
| 1094 | |
---|
[58d08a2] | 1095 | function ContextualXMLNetBoot(){ |
---|
| 1096 | #global $TbMsg; |
---|
| 1097 | #global $EJECUCION_COMANDO; |
---|
| 1098 | #global $EJECUCION_TAREA; |
---|
| 1099 | #global $EJECUCION_TRABAJO; |
---|
| 1100 | |
---|
| 1101 | $layerXML='<MENUCONTEXTUAL'; |
---|
| 1102 | $layerXML.=' idctx="flo_netboot"'; |
---|
| 1103 | $layerXML.=' maxanchu=190'; |
---|
| 1104 | $layerXML.=' swimg=1'; |
---|
| 1105 | $layerXML.=' clase="menu_contextual"'; |
---|
| 1106 | $layerXML.='>'; |
---|
| 1107 | |
---|
| 1108 | |
---|
| 1109 | //adv compatiblidad Gestor de arranque remoto |
---|
| 1110 | $layerXML.='<ITEM'; |
---|
| 1111 | $layerXML.=' alpulsar="ver_boot()"'; |
---|
| 1112 | $layerXML.=' textoitem="NetBoot AVANZADO"'; |
---|
| 1113 | $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; |
---|
| 1114 | $layerXML.='></ITEM>'; |
---|
| 1115 | //adv compatiblidad Gestor de arranque remoto |
---|
| 1116 | //adv compatiblidad Configurador de Startpages |
---|
| 1117 | // $layerXML.='<ITEM'; |
---|
| 1118 | // $layerXML.=' alpulsar="ver_startpages()"'; |
---|
| 1119 | // $layerXML.=' textoitem="Gestor Startpages"'; |
---|
| 1120 | // $layerXML.=' imgitem="../images/iconos/ordenadores.gif"'; |
---|
| 1121 | // $layerXML.='></ITEM>'; |
---|
| 1122 | //adv compatiblidad Configurador de Startpages |
---|
| 1123 | |
---|
| 1124 | $layerXML.='</MENUCONTEXTUAL>'; |
---|
| 1125 | return($layerXML); |
---|
| 1126 | } |
---|
| 1127 | |
---|
[3ec149c] | 1128 | ?> |
---|