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