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

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 a4c7e74 was 0ccb7c7, checked in by ramon <ramongomez@…>, 13 years ago

#551: Quitar más avisos para mejorar la compatibilidad con PHP 5.4, eliminando mensajes de error en fichero de log de Apache.

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

  • Property mode set to 100644
File size: 6.1 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</head>
62
63
64<body onload="
65        var disks=document.getElementsByName('disksize');
66        var min=null;
67        for (var i=0; i<disks.length; i++) {
68                var val=parseInt(disks[i].textContent);
69                if (min==null || val<min) {
70                        min=val;
71                }
72        }
73        document.getElementById('minsize').value=min;
74        document.getElementById('freedisk').value=min;
75">
76<?php
77        switch($ambito){
78                case $AMBITO_CENTROS :
79                        $urlimg='../images/iconos/centros.gif';
80                        $textambito=$TbMsg[0];
81                        break;
82                case $AMBITO_GRUPOSAULAS :
83                        $urlimg='../images/iconos/carpeta.gif';
84                        $textambito=$TbMsg[1];
85                        break;
86                case $AMBITO_AULAS :
87                        $urlimg='../images/iconos/aula.gif';
88                        $textambito=$TbMsg[2];
89                        if (isset($_GET["idambito"])) $idambito=$_GET["idambito"];
90                        break;
91                case $AMBITO_GRUPOSORDENADORES :
92                        $urlimg='../images/iconos/carpeta.gif';
93                        $textambito=$TbMsg[3];
94                        break;
95                case $AMBITO_ORDENADORES :
96                        $urlimg='../images/iconos/ordenador.gif';
97                        $textambito=$TbMsg[4];
98                        break;
99        }
100       
101        echo '<p align=center><span class=cabeceras>'.$descricomando.'&nbsp;</span><br>';
102        echo '<IMG src="'.$urlimg.'">&nbsp;&nbsp;<span align=center class=subcabeceras><U>'.$TbMsg[1].'
103                        : '.$textambito.'</U></span>&nbsp;&nbsp;</span></p>';
104
105        $sws=0x11111;   // Mostrar todas las configuraciones diferentes.
106        pintaConfiguraciones($cmd,$idambito,$ambito,7,$sws,false);     
107?>
108
109        <form  align=center name="fdatos" >
110
111                <table class="tabla_datos">
112                <tr>
113                <td>
114                        <?php echo $TbMsg[35].":\n";    // Disco ?>
115                        <input type="text" name="n_disk" value="1">
116                </td>
117                </tr>
118                <tr>
119                <td>
120                        <?php echo $TbMsg["CONFIG_PARTTABLE"].":\n"; ?>
121                        <select name="tipo_part_table" id="tipo_part_table" onchange="showPartitionForm(this.value)">
122                                <option value="MSDOS">MSDOS</option>
123                                <option value="GPT">GPT</option>
124                        </select>
125                </td>
126                </tr>
127                </table>
128                <div id="formMSDOS">
129                        <table class="tabla_datos" border="0" cellpadding="0" cellspacing="1">
130                                <?php include_once("includes/asistentes/formParticionado_msdos.php");?>
131                        </table>
132                </div>
133                <div id="formGPT" style="display:none">
134                        <table class="tabla_datos" border="0" cellpadding="0" cellspacing="1">
135                                <?php include_once("includes/asistentes/formParticionado_gpt.php");?>
136                        </table>
137                </div>
138                <table class="tabla_datos">             
139                        <tr>
140                                <th><input type="button" name="GenerarInstruccion" Value="<?php echo $TbMsg[41];?>" onclick="codeParticionado(this.form)" /> </th>
141                                <td colspan="2"><textarea class="cajatexto" name="codigo" cols="70" rows="7"></textarea></td>
142                        </tr>
143                        <tr>
144                                <th colspan="3"><?php echo $TbMsg["WARN_REBOOTAFTER"]; ?></th>
145                        </tr>
146                </table>
147        </form>
148
149<?php
150        //________________________________________________________________________________________________________
151        include_once("./includes/formularioacciones.php");
152        //________________________________________________________________________________________________________
153        //________________________________________________________________________________________________________
154        include_once("./includes/opcionesacciones.php");
155        //________________________________________________________________________________________________________
156
157?>
158
159
160</body>
161</html>
162
Note: See TracBrowser for help on using the repository browser.