source: admin/WebConsole/asistentes/AsistenteParticionado.php @ 0390d46

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 0390d46 was 2e69949, checked in by ramon <ramongomez@…>, 12 years ago

#601: Integrar código revisión r3853, con mejoras en asistente de particionado.

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

  • Property mode set to 100644
File size: 5.9 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// *************************************************************************************************************************************************
8
9
10require_once('xajax.common.php');
11//Haciendo referencia a las funciones registradas y que seran interpretadas como funciones javascript
12
13
14
15/********HACIENDO CONSULTA A LA TABLA ordenadores***********/
16include_once("../includes/ctrlacc.php");
17include_once("../clases/AdoPhp.php");
18include_once("../includes/constantes.php");
19include_once("../includes/comunes.php");
20include_once("../includes/CreaComando.php");
21include_once("../includes/HTMLSELECT.php");
22include_once("../idiomas/php/".$idioma."/comandos/ejecutarscripts_".$idioma.".php");
23include_once("../idiomas/php/".$idioma."/configuraciones_".$idioma.".php");
24include_once("../idiomas/php/".$idioma."/comandos/opcionesacciones_".$idioma.".php");
25include_once("../idiomas/php/".$idioma."/avisos_".$idioma.".php");
26include_once("../includes/HTMLCTESELECT.php");
27include_once("../includes/TomaDato.php");
28include_once("../includes/ConfiguracionesParticiones.php");
29include_once("../includes/RecopilaIpesMacs.php");
30
31 include_once("./includes/asistentes/AyudanteFormularios.php");
32
33
34//________________________________________________________________________________________________________
35include_once("./includes/capturaacciones.php");
36//________________________________________________________________________________________________________
37//________________________________________________________________________________________________________
38$cmd=CreaComando($cadenaconexion);
39if (!$cmd)
40        Header('Location: '.$pagerror.'?herror=2'); // Error de conexión con servidor B.D.
41//________________________________________________________________________________________________________
42
43?>
44<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
45<html>
46<head>
47<title> Administración web de aulas </title>
48<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
49        <LINK rel="stylesheet" type="text/css" href="../estilos.css">
50        <SCRIPT language="javascript" src="./jscripts/EjecutarScripts.js"></SCRIPT>
51        <SCRIPT language="javascript" src="./jscripts/comunescomandos.js"></SCRIPT>
52        <SCRIPT language="javascript" src="./jscripts/asistentes.js"></SCRIPT>
53        <?php echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/comandos/ejecutarscripts_'.$idioma.'.js"></SCRIPT>'?>
54        <?php echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/comandos/comunescomandos_'.$idioma.'.js"></SCRIPT>'?>
55
56
57<?php
58//indicamos al objeto xajax se encargue de generar el javascript de las funciones registradas por ejm: ListarParticionesXip
59$xajax->printJavascript('../xajax/');
60?>
61<script>
62function doOnload(){
63        calculateFreeDisk(document.fdatos);
64}
65
66</script>
67</head>
68
69
70<body onload="doOnload()">
71<?php
72        switch($ambito){
73                case $AMBITO_CENTROS :
74                        $urlimg='../images/iconos/centros.gif';
75                        $textambito=$TbMsg[0];
76                        break;
77                case $AMBITO_GRUPOSAULAS :
78                        $urlimg='../images/iconos/carpeta.gif';
79                        $textambito=$TbMsg[1];
80                        break;
81                case $AMBITO_AULAS :
82                        $urlimg='../images/iconos/aula.gif';
83                        $textambito=$TbMsg[2];
84                        if (isset($_GET["idambito"])) $idambito=$_GET["idambito"];
85                        break;
86                case $AMBITO_GRUPOSORDENADORES :
87                        $urlimg='../images/iconos/carpeta.gif';
88                        $textambito=$TbMsg[3];
89                        break;
90                case $AMBITO_ORDENADORES :
91                        $urlimg='../images/iconos/ordenador.gif';
92                        $textambito=$TbMsg[4];
93                        break;
94        }
95       
96        echo '<p align=center><span class=cabeceras>'.$descricomando.'&nbsp;</span><br>';
97        echo '<IMG src="'.$urlimg.'">&nbsp;&nbsp;<span align=center class=subcabeceras><U>'.$TbMsg[1].'
98                        : '.$textambito.'</U></span>&nbsp;&nbsp;</span></p>';
99
100        $sws=0x11111;   // Mostrar todas las configuraciones diferentes.
101        pintaConfiguraciones($cmd,$idambito,$ambito,7,$sws,false);     
102?>
103
104        <form  align=center name="fdatos" >
105
106                <table class="tabla_datos">
107                <tr>
108                <td>
109                        <?php echo $TbMsg[35].":\n";    // Disco ?>
110                        <input type="text" id="n_disk" name="n_disk" value="1" onchange="calculateFreeDisk(document.fdatos)">
111                </td>
112                </tr>
113                <tr>
114                <td>
115                        <?php echo $TbMsg["CONFIG_PARTTABLE"].":\n"; ?>
116                        <select name="tipo_part_table" id="tipo_part_table" onchange="showPartitionForm(this.value)">
117                                <option value="MSDOS">MSDOS</option>
118                                <option value="GPT">GPT</option>
119                        </select>
120                </td>
121                </tr>
122                </table>
123                <div id="formMSDOS">
124                        <table class="tabla_datos" border="0" cellpadding="0" cellspacing="1">
125                                <?php include_once("includes/asistentes/formParticionado_msdos.php");?>
126                        </table>
127                </div>
128                <div id="formGPT" style="display:none">
129                        <table class="tabla_datos" border="0" cellpadding="0" cellspacing="1">
130                                <?php include_once("includes/asistentes/formParticionado_gpt.php");?>
131                        </table>
132                </div>
133                <table class="tabla_datos">             
134                        <tr>
135                                <th><input type="button" name="GenerarInstruccion" Value="<?php echo $TbMsg[41];?>" onclick="codeParticionado(this.form)" /> </th>
136                                <td colspan="2"><textarea class="cajatexto" name="codigo" cols="70" rows="7"></textarea></td>
137                        </tr>
138                        <tr>
139                                <th colspan="3"><?php echo $TbMsg["WARN_REBOOTAFTER"]; ?></th>
140                        </tr>
141                </table>
142        </form>
143
144<?php
145        //________________________________________________________________________________________________________
146        include_once("./includes/formularioacciones.php");
147        //________________________________________________________________________________________________________
148        //________________________________________________________________________________________________________
149        include_once("./includes/opcionesacciones.php");
150        //________________________________________________________________________________________________________
151
152?>
153
154
155</body>
156</html>
157
Note: See TracBrowser for help on using the repository browser.