[eb3e2b8] | 1 | <?php |
---|
| 2 | // ************************************************************************************************************************************************* |
---|
| 3 | // Aplicacion WEB: ogAdmWebCon |
---|
| 4 | // Autor: |
---|
| 5 | // Baso en Codigo Comando.php de : Jose Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla |
---|
| 6 | // Xajax |
---|
[fac0b87] | 7 | // version 1.1: El asistente guarda información de la imagen en la configuración del equipo (ticket #757) |
---|
| 8 | // autor: Irina Gomez, ETSII Universidad de Sevilla |
---|
| 9 | // fecha: 2016-10-27 |
---|
[eb3e2b8] | 10 | // ************************************************************************************************************************************************* |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | require_once('xajax.common.php'); |
---|
| 14 | //Haciendo referencia a las funciones registradas y que seran interpretadas como funciones javascript |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | /********HACIENDO CONSULTA A LA TABLA ordenadores***********/ |
---|
| 18 | include_once("../includes/ctrlacc.php"); |
---|
| 19 | include_once("../clases/AdoPhp.php"); |
---|
| 20 | include_once("../includes/constantes.php"); |
---|
| 21 | include_once("../includes/comunes.php"); |
---|
| 22 | include_once("../includes/CreaComando.php"); |
---|
| 23 | include_once("../includes/HTMLSELECT.php"); |
---|
| 24 | include_once("../idiomas/php/".$idioma."/comandos/ejecutarscripts_".$idioma.".php"); |
---|
[91aaf03] | 25 | include_once("../idiomas/php/".$idioma."/comandos/opcionesacciones_".$idioma.".php"); |
---|
[eb3e2b8] | 26 | include_once("../includes/HTMLCTESELECT.php"); |
---|
| 27 | include_once("../includes/TomaDato.php"); |
---|
| 28 | include_once("../includes/ConfiguracionesParticiones.php"); |
---|
| 29 | include_once("../includes/RecopilaIpesMacs.php"); |
---|
| 30 | include_once("./includes/asistentes/AyudanteFormularios.php"); |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | //________________________________________________________________________________________________________ |
---|
| 34 | include_once("./includes/capturaacciones.php"); |
---|
| 35 | //________________________________________________________________________________________________________ |
---|
| 36 | //________________________________________________________________________________________________________ |
---|
| 37 | $cmd=CreaComando($cadenaconexion); |
---|
| 38 | if (!$cmd) |
---|
| 39 | Header('Location: '.$pagerror.'?herror=2'); // Error de conexión con servidor B.D. |
---|
| 40 | //________________________________________________________________________________________________________ |
---|
| 41 | |
---|
| 42 | ?> |
---|
| 43 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
| 44 | <html> |
---|
| 45 | <head> |
---|
| 46 | <title> Administración web de aulas </title> |
---|
| 47 | <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
---|
| 48 | <LINK rel="stylesheet" type="text/css" href="../estilos.css"> |
---|
| 49 | <SCRIPT language="javascript" src="./jscripts/EjecutarScripts.js"></SCRIPT> |
---|
[de687e3] | 50 | <SCRIPT language="javascript" src="../comandos/jscripts/comunescomandos.js"></SCRIPT> |
---|
[eb3e2b8] | 51 | <SCRIPT language="javascript" src="./jscripts/asistentes.js"></SCRIPT> |
---|
[c057e20] | 52 | <?php echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/comandos/ejecutarscripts_'.$idioma.'.js"></SCRIPT>'?> |
---|
| 53 | <?php echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/comandos/comunescomandos_'.$idioma.'.js"></SCRIPT>'?> |
---|
[eb3e2b8] | 54 | |
---|
| 55 | |
---|
| 56 | <?php |
---|
| 57 | //indicamos al objeto xajax se encargue de generar el javascript de las funciones registradas por ejm: ListarParticionesXip |
---|
| 58 | $xajax->printJavascript('../xajax/'); |
---|
| 59 | ?> |
---|
| 60 | </head> |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | <body> |
---|
[c057e20] | 64 | <?php |
---|
[eb3e2b8] | 65 | # ambito: 4->aulas 16->ordenadores |
---|
| 66 | # idambito: id de los elementos en su correspondiente tabla-ambito (aulas, ordenadores...) |
---|
| 67 | # nombreambito: nombre del elemento. |
---|
| 68 | |
---|
| 69 | switch($ambito){ |
---|
| 70 | case $AMBITO_CENTROS : |
---|
| 71 | $urlimg='../images/iconos/centros.gif'; |
---|
| 72 | $textambito=$TbMsg[0]; |
---|
| 73 | break; |
---|
| 74 | case $AMBITO_GRUPOSAULAS : |
---|
| 75 | $urlimg='../images/iconos/carpeta.gif'; |
---|
| 76 | $textambito=$TbMsg[1]; |
---|
| 77 | break; |
---|
| 78 | case $AMBITO_AULAS : |
---|
| 79 | $urlimg='../images/iconos/aula.gif'; |
---|
| 80 | $textambito=$TbMsg[2]; |
---|
| 81 | if (isset($_GET["idambito"])) $idambito=$_GET["idambito"]; |
---|
| 82 | if (isset($_GET["litambito"])) $litambito=$_GET["litambito"]; |
---|
| 83 | break; |
---|
| 84 | case $AMBITO_GRUPOSORDENADORES : |
---|
| 85 | $urlimg='../images/iconos/carpeta.gif'; |
---|
| 86 | $textambito=$TbMsg[3]; |
---|
| 87 | break; |
---|
| 88 | case $AMBITO_ORDENADORES : |
---|
| 89 | $urlimg='../images/iconos/ordenador.gif'; |
---|
| 90 | $textambito=$TbMsg[4]; |
---|
| 91 | if (isset($_GET["idambito"])) $idambito=$_GET["idambito"]; |
---|
| 92 | if (isset($_GET["litambito"])) $litambito=$_GET["litambito"]; |
---|
| 93 | break; |
---|
| 94 | } |
---|
[91aaf03] | 95 | echo '<p align=center><span class=cabeceras>'.$TbMsg["WDI11"].' </span><br>'; |
---|
[eb3e2b8] | 96 | echo '<IMG src="'.$urlimg.'"> <span align=center class=subcabeceras> |
---|
| 97 | <U>'.$TbMsg[6].': '.$textambito.','.$nombreambito.'</U></span> </span></p>'; |
---|
| 98 | |
---|
[c057e20] | 99 | $sws=0x11111; // Mostrar todas las configuraciones diferentes. |
---|
[eb3e2b8] | 100 | pintaConfiguraciones($cmd,$idambito,$ambito,7,$sws,false); |
---|
[c057e20] | 101 | ?> |
---|
[eb3e2b8] | 102 | |
---|
| 103 | <form align=center name="fdatos" > |
---|
| 104 | |
---|
| 105 | <table class=tabla_datos border="0" cellpadding="0" cellspacing="1"> |
---|
[c057e20] | 106 | <?php |
---|
| 107 | include_once("./includes/asistentes/formDeployImage.php"); |
---|
| 108 | ?> |
---|
[eb3e2b8] | 109 | |
---|
| 110 | <tr> |
---|
[fac0b87] | 111 | <th > |
---|
| 112 | <INPUT TYPE="button" NAME="GenerarInstruccion" Value="<? echo $TbMsg["WDI12"] ?>" onClick="codeDeployImage(this.form)"> |
---|
| 113 | <INPUT TYPE="button" NAME="ModificarCodigo" Value="<? echo $TbMsg["WDI10"] ?>" onClick="modificarCodigo()"> |
---|
| 114 | </th> |
---|
| 115 | <td colspan="5"><textarea class="cajatexto" name="codigo" id="codigo" cols="70" rows="7" disabled></textarea></td> |
---|
| 116 | </tr> |
---|
| 117 | <tr> |
---|
| 118 | <th colspan="4"><? echo $TbMsg["WDI31"] ?></th> |
---|
[eb3e2b8] | 119 | </tr> |
---|
[c057e20] | 120 | </table> |
---|
[eb3e2b8] | 121 | </form> |
---|
| 122 | |
---|
[c057e20] | 123 | <?php |
---|
[eb3e2b8] | 124 | //________________________________________________________________________________________________________ |
---|
| 125 | include_once("./includes/formularioacciones.php"); |
---|
| 126 | //________________________________________________________________________________________________________ |
---|
| 127 | //________________________________________________________________________________________________________ |
---|
| 128 | include_once("./includes/opcionesacciones.php"); |
---|
| 129 | //________________________________________________________________________________________________________ |
---|
| 130 | |
---|
| 131 | ?> |
---|
| 132 | |
---|
| 133 | |
---|
| 134 | </body> |
---|
[91aaf03] | 135 | </html> |
---|
[c057e20] | 136 | |
---|