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