| 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 |  | 
|---|
| 10 | require_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***********/ | 
|---|
| 16 | include_once("../includes/ctrlacc.php"); | 
|---|
| 17 | include_once("../clases/AdoPhp.php"); | 
|---|
| 18 | include_once("../includes/constantes.php"); | 
|---|
| 19 | include_once("../includes/comunes.php"); | 
|---|
| 20 | include_once("../includes/CreaComando.php"); | 
|---|
| 21 | include_once("../includes/HTMLSELECT.php"); | 
|---|
| 22 | include_once("../idiomas/php/".$idioma."/comandos/ejecutarscripts_".$idioma.".php"); | 
|---|
| 23 | include_once("../idiomas/php/".$idioma."/comandos/opcionesacciones_".$idioma.".php"); | 
|---|
| 24 | //________________________________________________________________________________________________________ | 
|---|
| 25 | include_once("./includes/capturaacciones.php"); | 
|---|
| 26 | //________________________________________________________________________________________________________ | 
|---|
| 27 | //________________________________________________________________________________________________________ | 
|---|
| 28 | $cmd=CreaComando($cadenaconexion); | 
|---|
| 29 | if (!$cmd) | 
|---|
| 30 |         Header('Location: '.$pagerror.'?herror=2'); // Error de conexión con servidor B.D. | 
|---|
| 31 | //________________________________________________________________________________________________________ | 
|---|
| 32 |  | 
|---|
| 33 | ?> | 
|---|
| 34 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | 
|---|
| 35 | <html> | 
|---|
| 36 | <head> | 
|---|
| 37 | <title> Administración web de aulas </title> | 
|---|
| 38 | <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> | 
|---|
| 39 |         <LINK rel="stylesheet" type="text/css" href="../estilos.css"> | 
|---|
| 40 |         <SCRIPT language="javascript" src="./jscripts/EjecutarScripts.js"></SCRIPT> | 
|---|
| 41 |         <SCRIPT language="javascript" src="../comandos/jscripts/comunescomandos.js"></SCRIPT> | 
|---|
| 42 |         <SCRIPT language="javascript" src="./jscripts/asistentes.js"></SCRIPT> | 
|---|
| 43 |         <? echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/comandos/ejecutarscripts_'.$idioma.'.js"></SCRIPT>'?> | 
|---|
| 44 |         <? echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/comandos/comunescomandos_'.$idioma.'.js"></SCRIPT>'?> | 
|---|
| 45 | <?php  | 
|---|
| 46 | //indicamos al objeto xajax se encargue de generar el javascript de las funciones registradas por ejm: ListarParticionesXip | 
|---|
| 47 | $xajax->printJavascript('../xajax/');  | 
|---|
| 48 | ?> | 
|---|
| 49 | </head> | 
|---|
| 50 |  | 
|---|
| 51 |  | 
|---|
| 52 | <body> | 
|---|
| 53 | <? | 
|---|
| 54 | switch($ambito){ | 
|---|
| 55 |                 case $AMBITO_CENTROS : | 
|---|
| 56 |                         $urlimg='../images/iconos/centros.gif'; | 
|---|
| 57 |                         $textambito=$TbMsg[0]; | 
|---|
| 58 |                         break; | 
|---|
| 59 |                 case $AMBITO_GRUPOSAULAS : | 
|---|
| 60 |                         $urlimg='../images/iconos/carpeta.gif'; | 
|---|
| 61 |                         $textambito=$TbMsg[1]; | 
|---|
| 62 |                         break; | 
|---|
| 63 |                 case $AMBITO_AULAS : | 
|---|
| 64 |                         $urlimg='../images/iconos/aula.gif'; | 
|---|
| 65 |                         $textambito=$TbMsg[2]; | 
|---|
| 66 |                         if (isset($_GET["idambito"])) $idambito=$_GET["idambito"]; | 
|---|
| 67 |                         break; | 
|---|
| 68 |                 case $AMBITO_GRUPOSORDENADORES : | 
|---|
| 69 |                         $urlimg='../images/iconos/carpeta.gif'; | 
|---|
| 70 |                         $textambito=$TbMsg[3]; | 
|---|
| 71 |                         break; | 
|---|
| 72 |                 case $AMBITO_ORDENADORES : | 
|---|
| 73 |                         $urlimg='../images/iconos/ordenador.gif'; | 
|---|
| 74 |                         $textambito=$TbMsg[4]; | 
|---|
| 75 |                         break; | 
|---|
| 76 |         } | 
|---|
| 77 |         echo '<p align=center><span class=cabeceras>'.$TbMsg["WCRP31"].' </span><br>'; | 
|---|
| 78 |         echo '<IMG src="'.$urlimg.'">  <span align=center class=subcabeceras> | 
|---|
| 79 |                                 <U>'.$TbMsg[6].': '.$textambito.','.$nombreambito.'</U></span>  </span></p>'; | 
|---|
| 80 |         ?>       | 
|---|
| 81 |  | 
|---|
| 82 |  | 
|---|
| 83 |         <form  align=center name="fdatos" >  | 
|---|
| 84 |  | 
|---|
| 85 |  | 
|---|
| 86 |          | 
|---|
| 87 |                 <table align=center  class=tabla_datos border="0" cellpadding="0" cellspacing="1"> | 
|---|
| 88 |                         <? | 
|---|
| 89 |                          include_once("./includes/asistentes/AyudanteFormularios.php"); | 
|---|
| 90 |                          include_once("./includes/asistentes/formCloneRemotePartition.php"); | 
|---|
| 91 | ?> | 
|---|
| 92 |                          | 
|---|
| 93 |                  | 
|---|
| 94 |                  | 
|---|
| 95 |                         <tr>  | 
|---|
| 96 |                                 <th><INPUT TYPE="button" NAME="GenerarInstruccion" Value="<? echo $TbMsg["WDI12"]  ?>" onClick="codeCloneRemotePartition(this.form)">   </th> | 
|---|
| 97 |                                 <td colspan="5"><textarea class="cajatexto" name="codigo" id="codigo" cols="70" rows="7"></textarea></td> | 
|---|
| 98 |                         </tr> | 
|---|
| 99 |                                                 </table>         | 
|---|
| 100 |         </form>  | 
|---|
| 101 |  | 
|---|
| 102 | <? | 
|---|
| 103 |         //________________________________________________________________________________________________________ | 
|---|
| 104 |         include_once("./includes/formularioacciones.php"); | 
|---|
| 105 |         //________________________________________________________________________________________________________ | 
|---|
| 106 |         //________________________________________________________________________________________________________ | 
|---|
| 107 |         include_once("./includes/opcionesacciones.php"); | 
|---|
| 108 |         //________________________________________________________________________________________________________ | 
|---|
| 109 | ?> | 
|---|
| 110 |  | 
|---|
| 111 |  | 
|---|
| 112 | </body> | 
|---|
| 113 | </html> | 
|---|
| 114 |  | 
|---|