1 | <?php |
---|
2 | // ************************************************************************************************************************************************* |
---|
3 | // Aplicacion WEB: ogAdmWebCon |
---|
4 | // Autor: Antonio J. Doblas Viso |
---|
5 | // Baso en Codigo Comando.php de : Jose Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla |
---|
6 | // version 1.1: Se incluye aviso para particiones GTP. |
---|
7 | // autor: Irina Gomez, ETSII Universidad de Sevilla |
---|
8 | // fecha: 2016-06-21 |
---|
9 | // ************************************************************************************************************************************************* |
---|
10 | |
---|
11 | |
---|
12 | //Haciendo referencia a las funciones registradas y que seran interpretadas como funciones javascript |
---|
13 | |
---|
14 | |
---|
15 | |
---|
16 | /********HACIENDO CONSULTA A LA TABLA ordenadores***********/ |
---|
17 | include_once("../includes/ctrlacc.php"); |
---|
18 | include_once("../clases/AdoPhp.php"); |
---|
19 | include_once("../includes/constantes.php"); |
---|
20 | include_once("../includes/comunes.php"); |
---|
21 | include_once("../includes/CreaComando.php"); |
---|
22 | include_once("../includes/HTMLSELECT.php"); |
---|
23 | include_once("../idiomas/php/".$idioma."/comandos/ejecutarscripts_".$idioma.".php"); |
---|
24 | include_once("../idiomas/php/".$idioma."/configuraciones_".$idioma.".php"); |
---|
25 | include_once("../idiomas/php/".$idioma."/comandos/opcionesacciones_".$idioma.".php"); |
---|
26 | include_once("../idiomas/php/".$idioma."/avisos_".$idioma.".php"); |
---|
27 | include_once("../includes/HTMLCTESELECT.php"); |
---|
28 | include_once("../includes/TomaDato.php"); |
---|
29 | include_once("../includes/ConfiguracionesParticiones.php"); |
---|
30 | include_once("../includes/RecopilaIpesMacs.php"); |
---|
31 | |
---|
32 | include_once("./includes/asistentes/AyudanteFormularios.php"); |
---|
33 | |
---|
34 | |
---|
35 | //________________________________________________________________________________________________________ |
---|
36 | include_once("./includes/capturaacciones.php"); |
---|
37 | //________________________________________________________________________________________________________ |
---|
38 | //________________________________________________________________________________________________________ |
---|
39 | $cmd=CreaComando($cadenaconexion); |
---|
40 | if (!$cmd) |
---|
41 | Header('Location: '.$pagerror.'?herror=2'); // Error de conexión con servidor B.D. |
---|
42 | //________________________________________________________________________________________________________ |
---|
43 | |
---|
44 | ?> |
---|
45 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
46 | <html> |
---|
47 | <head> |
---|
48 | <title> Administración web de aulas </title> |
---|
49 | <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
---|
50 | <LINK rel="stylesheet" type="text/css" href="../estilos.css"> |
---|
51 | <SCRIPT language="javascript" src="./jscripts/EjecutarScripts.js"></SCRIPT> |
---|
52 | <SCRIPT language="javascript" src="../comandos/jscripts/comunescomandos.js"></SCRIPT> |
---|
53 | <SCRIPT language="javascript" src="./jscripts/asistentes.js"></SCRIPT> |
---|
54 | <?php echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/comandos/ejecutarscripts_'.$idioma.'.js"></SCRIPT>'?> |
---|
55 | <?php echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/comandos/comunescomandos_'.$idioma.'.js"></SCRIPT>'?> |
---|
56 | <?php echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/asistentes_'.$idioma.'.js"></SCRIPT>'?> |
---|
57 | |
---|
58 | <script> |
---|
59 | function doOnload(){ |
---|
60 | calculateFreeDisk(document.fdatos); |
---|
61 | getMaxCacheSize(); |
---|
62 | } |
---|
63 | |
---|
64 | </script> |
---|
65 | </head> |
---|
66 | |
---|
67 | |
---|
68 | <body onload="doOnload()"> |
---|
69 | <?php |
---|
70 | switch($ambito){ |
---|
71 | case $AMBITO_CENTROS : |
---|
72 | $urlimg='../images/iconos/centros.gif'; |
---|
73 | $textambito=$TbMsg[0]; |
---|
74 | break; |
---|
75 | case $AMBITO_GRUPOSAULAS : |
---|
76 | $urlimg='../images/iconos/carpeta.gif'; |
---|
77 | $textambito=$TbMsg[1]; |
---|
78 | break; |
---|
79 | case $AMBITO_AULAS : |
---|
80 | $urlimg='../images/iconos/aula.gif'; |
---|
81 | $textambito=$TbMsg[2]; |
---|
82 | if (isset($_GET["idambito"])) $idambito=$_GET["idambito"]; |
---|
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 | break; |
---|
92 | } |
---|
93 | |
---|
94 | echo '<p align=center><span class=cabeceras>'.$descricomando.' </span><br>'; |
---|
95 | echo '<IMG src="'.$urlimg.'"> <span align=center class=subcabeceras><U>'.$TbMsg[1].' |
---|
96 | : '.$textambito.'</U></span> </span></p>'; |
---|
97 | |
---|
98 | $sws=bindec('0x11111'); // Mostrar todas las configuraciones diferentes. |
---|
99 | $configuraciones = pintaConfiguraciones($cmd,$idambito,$ambito,7,$sws,false); |
---|
100 | global $tbKeys; // Tabla contenedora de claves de configuración |
---|
101 | global $conKeys; // Contador de claves de configuración |
---|
102 | // numero de discos minimo: partimos de un valor alto y comparamos con la configuracion de cada pc. |
---|
103 | $mindisks = 10; |
---|
104 | foreach($configuraciones as $configuracion){ |
---|
105 | // Separamos las configuraciones segun el disco al que pertenezcan |
---|
106 | $diskConfigs = splitConfigurationsByDisk($configuracion); |
---|
107 | // En diskconfigs tendremos un array con tantas configuraciones como discos, |
---|
108 | // no quedamos con su length que será el numero de discos |
---|
109 | $aux = count($diskConfigs); |
---|
110 | if ( $mindisks > $aux ) |
---|
111 | $mindisks = $aux; |
---|
112 | } |
---|
113 | ?> |
---|
114 | |
---|
115 | <form align=center name="fdatos" > |
---|
116 | |
---|
117 | <table class="tabla_datos"> |
---|
118 | <tr> |
---|
119 | <td> |
---|
120 | <?php echo $TbMsg[35].":\n"; // Disco ?> |
---|
121 | <select id="n_disk" onchange="calculateFreeDisk(document.fdatos)"> |
---|
122 | <?php for($d = 1; $d <= $mindisks; $d++){ |
---|
123 | echo "<option value=\"$d\">$d</option>\n"; |
---|
124 | } ?> |
---|
125 | </select> |
---|
126 | </td> |
---|
127 | </tr> |
---|
128 | <tr> |
---|
129 | <td> |
---|
130 | <?php echo $TbMsg["CONFIG_PARTTABLE"].":\n"; ?> |
---|
131 | <select name="tipo_part_table" id="tipo_part_table" onchange="showPartitionForm(this.value)"> |
---|
132 | <option value="MSDOS">MSDOS</option> |
---|
133 | <option value="GPT">GPT</option> |
---|
134 | </select> |
---|
135 | </td> |
---|
136 | </tr> |
---|
137 | </table> |
---|
138 | <div id="formMSDOS"> |
---|
139 | <table class="tabla_datos" border="0" cellpadding="0" cellspacing="1"> |
---|
140 | <?php include_once("includes/asistentes/formParticionado_msdos.php");?> |
---|
141 | </table> |
---|
142 | </div> |
---|
143 | <div id="formGPT" style="display:none"> |
---|
144 | <table class="tabla_datos" border="0" cellpadding="0" cellspacing="1"> |
---|
145 | <?php include_once("includes/asistentes/formParticionado_gpt.php");?> |
---|
146 | </table> |
---|
147 | </div> |
---|
148 | <table class="tabla_datos"> |
---|
149 | <tr> |
---|
150 | <th><input type="button" name="GenerarInstruccion" Value="<?php echo $TbMsg[41];?>" onclick="codeParticionado(this.form)" /> </th> |
---|
151 | <td colspan="2"><textarea class="cajatexto" name="codigo" id="codigo" cols="70" rows="7"></textarea></td> |
---|
152 | </tr> |
---|
153 | <tr> <th colspan="3"><?php echo $TbMsg["WARN_DISKSIZE"]; ?></th> </tr> |
---|
154 | <tr> <th colspan="3"><?php echo $TbMsg["WARN_REBOOTAFTER"]; ?></th> </tr> |
---|
155 | <tr id="warngpt" style="display:none"> |
---|
156 | <th colspan="3" ><?php echo $TbMsg["WARN_GPT"]; ?></th> |
---|
157 | </tr> |
---|
158 | </table> |
---|
159 | </form> |
---|
160 | |
---|
161 | <?php |
---|
162 | //________________________________________________________________________________________________________ |
---|
163 | include_once("./includes/formularioacciones.php"); |
---|
164 | //________________________________________________________________________________________________________ |
---|
165 | //________________________________________________________________________________________________________ |
---|
166 | include_once("./includes/opcionesacciones.php"); |
---|
167 | //________________________________________________________________________________________________________ |
---|
168 | |
---|
169 | ?> |
---|
170 | |
---|
171 | |
---|
172 | </body> |
---|
173 | </html> |
---|
174 | |
---|