summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/comandos/InventarioSoftware.php
diff options
context:
space:
mode:
authoralonso <alonso@us.es>2010-10-23 09:34:04 +0000
committeralonso <alonso@us.es>2010-10-23 09:34:04 +0000
commit3ec149cb19165453434984c88e8ba03f648e578e (patch)
tree9d315751684c2c27ed66ad645aeea52ce9027859 /admin/WebConsole/comandos/InventarioSoftware.php
parent550b680d176cbccfecfe35fad440dd570d90ba5b (diff)
git-svn-id: https://opengnsys.es/svn/trunk@1314 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/comandos/InventarioSoftware.php')
-rw-r--r--admin/WebConsole/comandos/InventarioSoftware.php122
1 files changed, 122 insertions, 0 deletions
diff --git a/admin/WebConsole/comandos/InventarioSoftware.php b/admin/WebConsole/comandos/InventarioSoftware.php
new file mode 100644
index 00000000..35772002
--- /dev/null
+++ b/admin/WebConsole/comandos/InventarioSoftware.php
@@ -0,0 +1,122 @@
+<?
+// *************************************************************************************************************************************************
+// Aplicación WEB: ogAdmWebCon
+// Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla
+// Fecha Creación: Año 2009-2010
+// Fecha Última modificación: Agosto-2010
+// Nombre del fichero: InventarioSoftware.php
+// Descripción :
+// Implementación del comando "Inventario Software"
+// *************************************************************************************************************************************************
+include_once("../includes/ctrlacc.php");
+include_once("../clases/AdoPhp.php");
+include_once("../includes/constantes.php");
+include_once("../includes/comunes.php");
+include_once("../includes/CreaComando.php");
+include_once("../includes/HTMLSELECT.php");
+include_once("../idiomas/php/".$idioma."/comandos/inventariosoftware_".$idioma.".php");
+include_once("./includes/capturaacciones.php");
+//________________________________________________________________________________________________________
+$cmd=CreaComando($cadenaconexion);
+if (!$cmd)
+ Header('Location: '.$pagerror.'?herror=2'); // Error de conexión con servidor B.D.
+//________________________________________________________________________________________________________
+?>
+<HTML>
+<TITLE>Administración web de aulas</TITLE>
+<HEAD>
+ <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+ <LINK rel="stylesheet" type="text/css" href="../estilos.css">
+ <SCRIPT language="javascript" src="./jscripts/InventarioSoftware.js"></SCRIPT>
+ <SCRIPT language="javascript" src="../clases/jscripts/HttpLib.js"></SCRIPT>
+ <SCRIPT language="javascript" src="./jscripts/comunescomandos.js"></SCRIPT>
+<? echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/comandos/inventariosoftware_'.$idioma.'.js"></SCRIPT>'?>
+ <? echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/comandos/comunescomandos_'.$idioma.'.js"></SCRIPT>'?>
+</HEAD>
+<BODY>
+<?
+switch($ambito){
+ case $AMBITO_CENTROS :
+ $urlimg='../images/iconos/centros.gif';
+ $textambito=$TbMsg[0];
+ break;
+ case $AMBITO_GRUPOSAULAS :
+ $urlimg='../images/iconos/carpeta.gif';
+ $textambito=$TbMsg[1];
+ break;
+ case $AMBITO_AULAS :
+ $urlimg='../images/iconos/aula.gif';
+ $textambito=$TbMsg[2];
+ break;
+ case $AMBITO_GRUPOSORDENADORES :
+ $urlimg='../images/iconos/carpeta.gif';
+ $textambito=$TbMsg[3];
+ break;
+ case $AMBITO_ORDENADORES :
+ $urlimg='../images/iconos/ordenador.gif';
+ $textambito=$TbMsg[4];
+ break;
+ }
+ echo '<p align=center><span class=cabeceras>'.$TbMsg[5].'&nbsp;</span><br>';
+ echo '<IMG src="'.$urlimg.'">&nbsp;&nbsp;<span align=center class=subcabeceras><U>'.$TbMsg[6].': '.$textambito.','.$nombreambito.'</U></span>&nbsp;&nbsp;</span></p>';
+?>
+<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
+ <P align=center>
+ <SPAN align=center class=subcabeceras><? echo $TbMsg[7] ?></SPAN>
+ </BR>
+ <TABLE id="tabla_conf" align=center border=0 cellPadding=1 cellSpacing=1 class=tabla_datos>
+ <TR>
+ <TH align=center>&nbsp;&nbsp;</TH>
+ <TH align=center>&nbsp;<? echo $TbMsg[8] ?>&nbsp;</TH>
+ <TH align=center>&nbsp;<? echo $TbMsg[9] ?>&nbsp;</TH>
+ </TR>
+ <?
+ echo tabla_configuraciones($cmd,$idambito);
+ ?>
+ </TABLE>
+
+<BR>
+<?
+//________________________________________________________________________________________________________
+ include_once("./includes/formularioacciones.php");
+//________________________________________________________________________________________________________
+//________________________________________________________________________________________________________
+ include_once("./includes/opcionesacciones.php");
+ //________________________________________________________________________________________________________
+?>
+</BODY>
+</HTML>
+<?
+/*________________________________________________________________________________________________________
+ Particiones
+________________________________________________________________________________________________________*/
+function tabla_configuraciones($cmd,$idordenador)
+{
+ global $idcentro;
+ $tablaHtml="";
+ $rs=new Recordset;
+ $rsp=new Recordset;
+ $cmd->texto="SELECT ordenadores_particiones.numpar,nombresos.nombreso
+ FROM ordenadores_particiones
+ INNER JOIN tipospar ON tipospar.codpar=ordenadores_particiones.codpar
+ INNER JOIN nombresos ON ordenadores_particiones.idnombreso=nombresos.idnombreso
+ WHERE ordenadores_particiones.idordenador=$idordenador
+ AND tipospar.clonable>0 AND ordenadores_particiones.idnombreso>0
+ ORDER BY ordenadores_particiones.numpar";
+ $rs->Comando=&$cmd;
+ $rs=new Recordset;
+ $rs->Comando=&$cmd;
+ if (!$rs->Abrir()) return($tablaHtml); // Error al abrir recordset
+ $rs->Primero();
+ while (!$rs->EOF){
+ $tablaHtml.='<TR>'.chr(13);
+ $tablaHtml.='<TD ><input type="radio" name="particion" value='.$rs->campos["numpar"].'></TD>'.chr(13);
+ $tablaHtml.='<TD align=center>&nbsp;'.$rs->campos["numpar"].'&nbsp;</TD>'.chr(13);
+ $tablaHtml.='<TD>&nbsp;'.$rs->campos["nombreso"].'&nbsp;</TD>'.chr(13);
+ $tablaHtml.='</TR>'.chr(13);
+ $rs->Siguiente();
+ }
+ $rs->Cerrar();
+ return($tablaHtml);
+}
+?>