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"); |
---|
20 | include_once("../idiomas/php/".$idioma."/comandos/opcionesacciones_".$idioma.".php"); |
---|
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> |
---|
45 | <SCRIPT language="javascript" src="../comandos/jscripts/comunescomandos.js"></SCRIPT> |
---|
46 | <SCRIPT language="javascript" src="./jscripts/asistentes.js"></SCRIPT> |
---|
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>'?> |
---|
49 | <?php echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/asistentes_'.$idioma.'.js"></SCRIPT>'?> |
---|
50 | |
---|
51 | </head> |
---|
52 | |
---|
53 | |
---|
54 | <body> |
---|
55 | <?php |
---|
56 | # ambito: 4->aulas 16->ordenadores |
---|
57 | # idambito: id de los elementos en su correspondiente tabla-ambito (aulas, ordenadores...) |
---|
58 | # nombreambito: nombre del elemento. |
---|
59 | |
---|
60 | switch($ambito){ |
---|
61 | case $AMBITO_CENTROS : |
---|
62 | $urlimg='../images/iconos/centros.gif'; |
---|
63 | $textambito=$TbMsg[0]; |
---|
64 | break; |
---|
65 | case $AMBITO_GRUPOSAULAS : |
---|
66 | $urlimg='../images/iconos/carpeta.gif'; |
---|
67 | $textambito=$TbMsg[1]; |
---|
68 | break; |
---|
69 | case $AMBITO_AULAS : |
---|
70 | $urlimg='../images/iconos/aula.gif'; |
---|
71 | $textambito=$TbMsg[2]; |
---|
72 | if (isset($_GET["idambito"])) $idambito=$_GET["idambito"]; |
---|
73 | if (isset($_GET["litambito"])) $litambito=$_GET["litambito"]; |
---|
74 | break; |
---|
75 | case $AMBITO_GRUPOSORDENADORES : |
---|
76 | $urlimg='../images/iconos/carpeta.gif'; |
---|
77 | $textambito=$TbMsg[3]; |
---|
78 | break; |
---|
79 | case $AMBITO_ORDENADORES : |
---|
80 | $urlimg='../images/iconos/ordenador.gif'; |
---|
81 | $textambito=$TbMsg[4]; |
---|
82 | if (isset($_GET["idambito"])) $idambito=$_GET["idambito"]; |
---|
83 | if (isset($_GET["litambito"])) $litambito=$_GET["litambito"]; |
---|
84 | break; |
---|
85 | } |
---|
86 | echo '<p align=center><span class=cabeceras>'.$TbMsg["WDI11"].' </span><br>'; |
---|
87 | echo '<IMG src="'.$urlimg.'"> <span align=center class=subcabeceras> |
---|
88 | <U>'.$TbMsg[6].': '.$textambito.','.$nombreambito.'</U></span> </span></p>'; |
---|
89 | |
---|
90 | $sws=0x11111; // Mostrar todas las configuraciones diferentes. |
---|
91 | pintaConfiguraciones($cmd,$idambito,$ambito,7,$sws,false); |
---|
92 | ?> |
---|
93 | |
---|
94 | <form align=center name="fdatos" > |
---|
95 | |
---|
96 | <table class=tabla_datos border="0" cellpadding="0" cellspacing="1"> |
---|
97 | <?php |
---|
98 | include_once("./includes/asistentes/formDeployImage.php"); |
---|
99 | ?> |
---|
100 | |
---|
101 | <tr> |
---|
102 | <th > |
---|
103 | <INPUT TYPE="button" NAME="GenerarInstruccion" Value="<?php echo $TbMsg["WDI12"] ?>" onClick="codeDeployImage(this.form)"> |
---|
104 | <INPUT TYPE="button" NAME="ModificarCodigo" Value="<?php echo $TbMsg["WDI10"] ?>" onClick="modificarCodigo()"> |
---|
105 | </th> |
---|
106 | <td colspan="5"><textarea class="cajatexto" name="codigo" id="codigo" cols="70" rows="7" disabled></textarea></td> |
---|
107 | </tr> |
---|
108 | <tr> |
---|
109 | <th colspan="4"><?php echo $TbMsg["WDI31"] ?></th> |
---|
110 | </tr> |
---|
111 | </table> |
---|
112 | </form> |
---|
113 | |
---|
114 | <?php |
---|
115 | //________________________________________________________________________________________________________ |
---|
116 | include_once("./includes/formularioacciones.php"); |
---|
117 | //________________________________________________________________________________________________________ |
---|
118 | //________________________________________________________________________________________________________ |
---|
119 | include_once("./includes/opcionesacciones.php"); |
---|
120 | //________________________________________________________________________________________________________ |
---|
121 | |
---|
122 | ?> |
---|
123 | |
---|
124 | |
---|
125 | </body> |
---|
126 | </html> |
---|
127 | |
---|