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