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