[eb3e2b8] | 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 |
---|
[502daab] | 6 | // version 1.1: Se incluye aviso para particiones GTP. |
---|
| 7 | // autor: Irina Gomez, ETSII Universidad de Sevilla |
---|
| 8 | // fecha: 2016-06-21 |
---|
[eb3e2b8] | 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"); |
---|
[1ec9b7a] | 24 | include_once("../idiomas/php/".$idioma."/configuraciones_".$idioma.".php"); |
---|
[835d044] | 25 | include_once("../idiomas/php/".$idioma."/comandos/opcionesacciones_".$idioma.".php"); |
---|
[70ed85d] | 26 | include_once("../idiomas/php/".$idioma."/avisos_".$idioma.".php"); |
---|
[eb3e2b8] | 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> |
---|
[c7b62bd] | 48 | <title> Administración web de aulas </title> |
---|
[eb3e2b8] | 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> |
---|
[12603f8] | 52 | <SCRIPT language="javascript" src="../comandos/jscripts/comunescomandos.js"></SCRIPT> |
---|
[eb3e2b8] | 53 | <SCRIPT language="javascript" src="./jscripts/asistentes.js"></SCRIPT> |
---|
[c7b62bd] | 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>'?> |
---|
[dd14ed2] | 56 | <?php echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/asistentes_'.$idioma.'.js"></SCRIPT>'?> |
---|
[eb3e2b8] | 57 | |
---|
[2e69949] | 58 | <script> |
---|
| 59 | function doOnload(){ |
---|
| 60 | calculateFreeDisk(document.fdatos); |
---|
[dd14ed2] | 61 | getMaxCacheSize(); |
---|
[2e69949] | 62 | } |
---|
| 63 | |
---|
| 64 | </script> |
---|
[eb3e2b8] | 65 | </head> |
---|
| 66 | |
---|
| 67 | |
---|
[2e69949] | 68 | <body onload="doOnload()"> |
---|
[c1cd54c] | 69 | <?php |
---|
| 70 | switch($ambito){ |
---|
[eb3e2b8] | 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 | } |
---|
[1ec9b7a] | 93 | |
---|
[0ccb7c7] | 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>'; |
---|
[eb3e2b8] | 97 | |
---|
[865c207] | 98 | $sws=bindec('0x11111'); // Mostrar todas las configuraciones diferentes. |
---|
[92cf666] | 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 |
---|
[9dba4c18] | 102 | // numero de discos minimo: partimos de un valor alto y comparamos con la configuracion de cada pc. |
---|
| 103 | $mindisks = 10; |
---|
[92cf666] | 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, |
---|
[9dba4c18] | 108 | // no quedamos con su length que será el numero de discos |
---|
| 109 | $aux = count($diskConfigs); |
---|
| 110 | if ( $mindisks > $aux ) |
---|
| 111 | $mindisks = $aux; |
---|
[92cf666] | 112 | } |
---|
[c1cd54c] | 113 | ?> |
---|
[eb3e2b8] | 114 | |
---|
| 115 | <form align=center name="fdatos" > |
---|
| 116 | |
---|
[c7b62bd] | 117 | <table class="tabla_datos"> |
---|
| 118 | <tr> |
---|
| 119 | <td> |
---|
[c1cd54c] | 120 | <?php echo $TbMsg[35].":\n"; // Disco ?> |
---|
[92cf666] | 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> |
---|
[c7b62bd] | 126 | </td> |
---|
| 127 | </tr> |
---|
| 128 | <tr> |
---|
| 129 | <td> |
---|
[c1cd54c] | 130 | <?php echo $TbMsg["CONFIG_PARTTABLE"].":\n"; ?> |
---|
[c7b62bd] | 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"> |
---|
[eb3e2b8] | 149 | <tr> |
---|
[a71cfe29] | 150 | <th><input type="button" name="GenerarInstruccion" Value="<?php echo $TbMsg[41];?>" onclick="codeParticionado(this.form)" /> </th> |
---|
[345e789] | 151 | <td colspan="2"><textarea class="cajatexto" name="codigo" id="codigo" cols="70" rows="7"></textarea></td> |
---|
[eb3e2b8] | 152 | </tr> |
---|
[cf30efc] | 153 | <tr> <th colspan="3"><?php echo $TbMsg["WARN_DISKSIZE"]; ?></th> </tr> |
---|
| 154 | <tr> <th colspan="3"><?php echo $TbMsg["WARN_REBOOTAFTER"]; ?></th> </tr> |
---|
[502daab] | 155 | <tr id="warngpt" style="display:none"> |
---|
| 156 | <th colspan="3" ><?php echo $TbMsg["WARN_GPT"]; ?></th> |
---|
| 157 | </tr> |
---|
[c1cd54c] | 158 | </table> |
---|
[eb3e2b8] | 159 | </form> |
---|
| 160 | |
---|
[c7b62bd] | 161 | <?php |
---|
[eb3e2b8] | 162 | //________________________________________________________________________________________________________ |
---|
| 163 | include_once("./includes/formularioacciones.php"); |
---|
| 164 | //________________________________________________________________________________________________________ |
---|
| 165 | //________________________________________________________________________________________________________ |
---|
| 166 | include_once("./includes/opcionesacciones.php"); |
---|
| 167 | //________________________________________________________________________________________________________ |
---|
| 168 | |
---|
| 169 | ?> |
---|
| 170 | |
---|
| 171 | |
---|
| 172 | </body> |
---|
[a71cfe29] | 173 | </html> |
---|
[c7b62bd] | 174 | |
---|