source: admin/WebConsole/principal/boot_grub4dos.php @ 6e235cd

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 6e235cd was 319b9f5, checked in by ramon <ramongomez@…>, 13 years ago

#551: Quitar algunos 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@3344 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 5.6 KB
Line 
1<html>
2<TITLE>Administración web de aulas</TITLE>
3<head>
4<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
5        <LINK rel="stylesheet" type="text/css" href="../estilos.css">
6        <SCRIPT language="javascript" src="../jscripts/propiedades_aulas.js"></SCRIPT>
7        <SCRIPT language="javascript" src="../jscripts/opciones.js"></SCRIPT>
8        <SCRIPT language="javascript" src="../idiomas/javascripts/esp/propiedades_aulas_esp.js"></SCRIPT></HEAD>
9
10<script language="javascript" type="text/javascript">
11
12function move(fbox, tbox) {
13        var arrFbox = new Array();
14        var arrTbox = new Array();
15        var arrLookup = new Array();
16        var i;
17        for (i = 0; i < tbox.options.length; i++) {
18                arrLookup[tbox.options[i].text] = tbox.options[i].value;
19                arrTbox[i] = tbox.options[i].text;
20        }
21        var fLength = 0;
22        var tLength = arrTbox.length;
23        for(i = 0; i < fbox.options.length; i++) {
24                arrLookup[fbox.options[i].text] = fbox.options[i].value;
25                if (fbox.options[i].selected && fbox.options[i].value != "") {
26                        arrTbox[tLength] = fbox.options[i].text;
27                        tLength++;
28                }
29                else {
30                        arrFbox[fLength] = fbox.options[i].text;
31                        fLength++;
32                  }
33                }
34        arrFbox.sort();
35        arrTbox.sort();
36                fbox.length = 0;
37                tbox.length = 0;
38        var c;
39
40for(c = 0; c < arrFbox.length; c++) {
41var no = new Option();
42no.value = arrLookup[arrFbox[c]];
43no.text = arrFbox[c];
44fbox[c] = no;
45}
46
47for(c = 0; c < arrTbox.length; c++) {
48var no = new Option();
49no.value = arrLookup[arrTbox[c]];
50no.text = arrTbox[c];
51tbox[c] = no;
52    }
53}
54
55function allSelect()
56{
57var saveString = "";
58// seleccionamos cada uno de los select
59var input = document.getElementsByTagName('select');
60//alert(input.length);
61for(var i=0; i<input.length; i++){
62//if(inputs[i].getAttribute('type')=='button'){
63// your statements
64patron = "L";
65parm = input[i].name;
66//alert(parm);
67parm = parm.replace(patron,'');
68//alert(parm);
69for (j=0;j<input[i].length;j++)
70                {
71                        //List.options[i].selected = true;
72                        saveString = saveString + parm + '|' + input[i].options[j].value + ';';
73                        //alert(saveString);                   
74                }
75}
76document.forms['myForm'].listOfItems.value = saveString;
77}
78
79
80</script>
81</head>
82<body>
83
84<?php
85include_once("../includes/ctrlacc.php");
86include_once("../clases/AdoPhp.php");
87include_once("../clases/XmlPhp.php");
88include_once("../clases/MenuContextual.php");
89include_once("../clases/SockHidra.php");
90include_once("../includes/constantes.php");
91include_once("../includes/comunes.php");
92include_once("../includes/CreaComando.php");
93include_once("../idiomas/php/".$idioma."/aulas_".$idioma.".php");
94
95$cmd=CreaComando($cadenaconexion);
96if (!$cmd)
97        Header('Location: '.$pagerror.'?herror=2'); // Error de conexión con servidor B.D.
98//________________________________________________________________________________________________________
99
100$litambito=0;
101$idambito=0;
102$nombreambito="";
103$id_aula=0;
104
105
106if (isset($_GET["litambito"])) $litambito=$_GET["litambito"]; // Recoge parametros
107if (isset($_GET["idambito"])) $idambito=$_GET["idambito"];
108if (isset($_GET["nombreambito"])) $nombreambito=$_GET["nombreambito"];
109if (isset($_GET["id_aula"])) $idambito=$_GET["id_aula"];
110
111
112switch($litambito){
113        case "aulas":
114                $seleccion="and idaula=" .  $idambito ."";
115                break;
116        case "gruposordenadores":
117                $seleccion= "and grupoid=" .  $idambito . "";
118        break;
119}
120?>
121
122<TABLE  align=center border=1 cellPadding=1 cellSpacing=1 class=tabla_datos >
123<form name="myForm" method="post" action="../gestores/gestor_pxe_grub4dos.php?idaula=<?php echo $idambito ?>&nombreambito=<?php echo $nombreambito?>&litambito=<?php echo $litambito?>" >
124
125
126        <P align=center class=cabeceras><?php echo $TbMsg[42]; ?><BR>
127        <SPAN align=center class=subcabeceras> <?php echo $nombreambito; ?> </SPAN>
128        <input type="submit" value=<?php echo $TbMsg[43]; ?> name="saveButton"  onclick="allSelect()"> </P>
129       
130       
131       
132
133
134
135<input type="hidden" name="listOfItems" value="">
136<input type="hidden" name="rungrupo" value="<?php echo $id_aula;?>">
137
138
139<!-- primer file, nombre de las equipos por pxe hace falta  <td>  </td>-->
140<tr>
141<td> 
142 <!-- <a href="./muestramenu.php?labelmenu=pxe">  OGclient </a><br> pxe <br> -->
143<br>OGclient <br><br>
144<select multiple size="30" name="Lpxe" id="Lpxe">
145
146<?php
147#### Listado de equipos con menú PXE.
148$menupxe="pxe";
149$listadopxe=listaequipos($cmd,$menupxe,$seleccion);
150echo $listadopxe;
151?>
152</select>
153</td>
154
155
156<?php
157
158$cmd->texto="SELECT * FROM menuboot WHERE label <> 'pxe' ";
159$rsmenu=new Recordset;
160$rsmenu->Comando=&$cmd;
161if (!$rsmenu->Abrir()) echo "error";
162$rsmenu->Primero();
163while (!$rsmenu->EOF)
164{
165        echo "<td></td>";
166        echo "<td> ";
167        echo $rsmenu->campos['description'];
168        echo " <br>";
169        echo "<input type='button' onClick='move(this.form.L" . $rsmenu->campos['label'] . ",this.form.Lpxe)' value='OUT' style='height: 25px; width: 50px' >";
170        echo "<input type='button' onClick='move(this.form.Lpxe,this.form.L" . $rsmenu->campos['label'] .")' value='IN' style='height: 25px; width: 35px' >";
171        echo " <br>";
172        echo "<select multiple size='30' name='L" . $rsmenu->campos['label'] . "' >";
173        $listadopxe=listaequipos($cmd,$rsmenu->campos['label'],$seleccion);
174        echo $listadopxe;
175        echo "</select>";
176        echo "</td>";
177        $rsmenu->Siguiente();
178}
179$rsmenu->Cerrar();
180
181
182
183// esta funcion genera los elementos de un select(formulario html) donde aparecen los nombres de los ordenadores, según su menu pxe
184function listaequipos($cmd,$menupxe,$seleccion)
185{
186$cmd->texto="SELECT * FROM ordenadores where arranque='" . $menupxe ."' " . $seleccion;
187$rs=new Recordset;
188$rs->Comando=&$cmd;
189if (!$rs->Abrir()) echo "error";
190$rs->Primero();
191while (!$rs->EOF)
192{
193        echo "<option value='";
194        echo $rs->campos["nombreordenador"];
195        echo "'>";
196        echo $rs->campos["nombreordenador"];
197        echo "</option>";
198        $rs->Siguiente();
199}
200$rs->Cerrar();
201}
202
203?>
204
205</tr>
206
207</form>
208</table>
209
210</body>
211</html>
212
Note: See TracBrowser for help on using the repository browser.