source: admin/WebConsole/asistentes/AsistenteParticionado.php @ f784f18

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since f784f18 was cf30efc, checked in by irina <irinagomez@…>, 8 years ago

#753 Se incluye mensaje avisando que conviene dejar un espacio libre en el disco para que la creación de la cache sea correcta

git-svn-id: https://opengnsys.es/svn/branches/version1.1@5107 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 7.0 KB
Line 
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
7// version 1.1: Se incluye aviso para particiones GTP.
8// autor: Irina Gomez, ETSII Universidad de Sevilla
9// fecha: 2016-06-21
10// *************************************************************************************************************************************************
11
12
13require_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***********/
19include_once("../includes/ctrlacc.php");
20include_once("../clases/AdoPhp.php");
21include_once("../includes/constantes.php");
22include_once("../includes/comunes.php");
23include_once("../includes/CreaComando.php");
24include_once("../includes/HTMLSELECT.php");
25include_once("../idiomas/php/".$idioma."/comandos/ejecutarscripts_".$idioma.".php");
26include_once("../idiomas/php/".$idioma."/configuraciones_".$idioma.".php");
27include_once("../idiomas/php/".$idioma."/comandos/opcionesacciones_".$idioma.".php");
28include_once("../idiomas/php/".$idioma."/avisos_".$idioma.".php");
29include_once("../includes/HTMLCTESELECT.php");
30include_once("../includes/TomaDato.php");
31include_once("../includes/ConfiguracionesParticiones.php");
32include_once("../includes/RecopilaIpesMacs.php");
33
34 include_once("./includes/asistentes/AyudanteFormularios.php");
35
36
37//________________________________________________________________________________________________________
38include_once("./includes/capturaacciones.php");
39//________________________________________________________________________________________________________
40//________________________________________________________________________________________________________
41$cmd=CreaComando($cadenaconexion);
42if (!$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>
50<title> Administración web de aulas </title>
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>
54        <SCRIPT language="javascript" src="../comandos/jscripts/comunescomandos.js"></SCRIPT>
55        <SCRIPT language="javascript" src="./jscripts/asistentes.js"></SCRIPT>
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>'?>
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?>
64<script>
65function doOnload(){
66        calculateFreeDisk(document.fdatos);
67}
68
69</script>
70</head>
71
72
73<body onload="doOnload()">
74<?php
75        switch($ambito){
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        }
98       
99        echo '<p align=center><span class=cabeceras>'.$descricomando.'&nbsp;</span><br>';
100        echo '<IMG src="'.$urlimg.'">&nbsp;&nbsp;<span align=center class=subcabeceras><U>'.$TbMsg[1].'
101                        : '.$textambito.'</U></span>&nbsp;&nbsp;</span></p>';
102
103        $sws=0x11111;   // Mostrar todas las configuraciones diferentes.
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
107        // numero de discos minimo: partimos de un valor alto y comparamos con la configuracion de cada pc.
108        $mindisks = 10;
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,
113                // no quedamos con su length que será el numero de discos
114                $aux = count($diskConfigs);
115                if ( $mindisks > $aux )
116                         $mindisks = $aux;
117        }       
118?>
119
120        <form  align=center name="fdatos" >
121
122                <table class="tabla_datos">
123                <tr>
124                <td>
125                        <?php echo $TbMsg[35].":\n";    // Disco ?>
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>
131                </td>
132                </tr>
133                <tr>
134                <td>
135                        <?php echo $TbMsg["CONFIG_PARTTABLE"].":\n"; ?>
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">             
154                        <tr>
155                                <th><input type="button" name="GenerarInstruccion" Value="<?php echo $TbMsg[41];?>" onclick="codeParticionado(this.form)" /> </th>
156                                <td colspan="2"><textarea class="cajatexto" name="codigo" id="codigo" cols="70" rows="7"></textarea></td>
157                        </tr>
158                        <tr> <th colspan="3"><?php echo $TbMsg["WARN_DISKSIZE"]; ?></th> </tr>
159                        <tr> <th colspan="3"><?php echo $TbMsg["WARN_REBOOTAFTER"]; ?></th> </tr>
160                        <tr id="warngpt" style="display:none">
161                                <th colspan="3" ><?php echo $TbMsg["WARN_GPT"]; ?></th>
162                        </tr>
163                </table>
164        </form>
165
166<?php
167        //________________________________________________________________________________________________________
168        include_once("./includes/formularioacciones.php");
169        //________________________________________________________________________________________________________
170        //________________________________________________________________________________________________________
171        include_once("./includes/opcionesacciones.php");
172        //________________________________________________________________________________________________________
173
174?>
175
176
177</body>
178</html>
179
Note: See TracBrowser for help on using the repository browser.