diff options
author | ramon <ramongomez@us.es> | 2009-10-29 10:39:24 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2009-10-29 10:39:24 +0000 |
commit | 1b9262949ad2e32b4a82338d45fb4b6e5b293fba (patch) | |
tree | 3aee6892f32251570b996f7321a06980588cbc1e /admin/WebConsole/varios/perfilcomponente_hard.php | |
parent | afcf2a19aa44ea6d03e02abd05b6f2938d687225 (diff) |
Reorganización directorios OpenGNSys Admin.
git-svn-id: https://opengnsys.es/svn/trunk@455 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/varios/perfilcomponente_hard.php')
-rw-r--r-- | admin/WebConsole/varios/perfilcomponente_hard.php | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/admin/WebConsole/varios/perfilcomponente_hard.php b/admin/WebConsole/varios/perfilcomponente_hard.php new file mode 100644 index 00000000..169fe051 --- /dev/null +++ b/admin/WebConsole/varios/perfilcomponente_hard.php @@ -0,0 +1,98 @@ +<? +// ************************************************************************************************************************************************* +// Aplicación WEB: ogAdmWebCon +// Copyright 200-2005 Jos�Manuel Alonso. Todos los derechos reservados. +// Fecha Creación: Año 2003-2004 +// Fecha Última modificación: Febrero-2005 +// Nombre del fichero: perfilcomponente_hard.php +// Descripción : +// Administra los componentes hardware incluidos en un perfil harware +// ************************************************************************************************************************************************* +include_once("../includes/ctrlacc.php"); +include_once("../clases/AdoPhp.php"); +include_once("../includes/CreaComando.php"); +include_once("../idiomas/php/".$idioma."/perfilcomponente_hard_".$idioma.".php"); +//________________________________________________________________________________________________________ +$idperfilhard=0; +$descripcionperfil=""; +if (isset($_GET["idperfilhard"])) $idperfilhard=$_GET["idperfilhard"]; // Recoge parametros +if (isset($_GET["descripcionperfil"])) $descripcionperfil=$_GET["descripcionperfil"]; // Recoge parametros + +$cmd=CreaComando($cadenaconexion); +if (!$cmd) + Header('Location: '.$pagerror.'?herror=2'); // Error de conexióncon servidor B.D. +//________________________________________________________________________________________________________ +?> +<HTML> +<HEAD> +<LINK rel="stylesheet" type="text/css" href="../estilos.css"> +<SCRIPT language="javascript" src="../jscripts/perfilcomponente_hard.js"></SCRIPT> +<SCRIPT language="javascript" src="../jscripts/opciones.js"></SCRIPT> +<? echo '<SCRIPT language="javascript" src="../idiomas/javascripts/'.$idioma.'/perfilcomponente_hard_'.$idioma.'.js"></SCRIPT>'?> +</HEAD> +<BODY> +<FORM name="fdatos"> + <INPUT type=hidden value="<? echo $idcentro?>" id=idcentro> + <INPUT type=hidden value="<? echo $idperfilhard?>" id=idperfilhard> + <P align=center class=cabeceras><?echo $TbMsg[0]?><BR> + <SPAN align=center class=subcabeceras><?echo $TbMsg[1]?></SPAN> <IMG src="../images/iconos/confihard.gif"></P> + <BR> + <DIV align=center id="Layer_componentes"> + <SPAN align=center class=presentaciones><B><U><?echo $TbMsg[2]?></U>: <? echo $descripcionperfil?></B></SPAN></P> + <TABLE width="100%" class="tabla_listados" cellspacing=1 cellpadding=0 > + <TR> + <TH> </TH> + <TH>T</TH> + <TH><?echo $TbMsg[3]?></TH> + </TR> + <? + $rs=new Recordset; + $cmd->texto='SELECT hardwares.idhardware,hardwares.descripcion,tipohardwares.descripcion as hdescripcion,tipohardwares.urlimg,tipohardwares.pci FROM hardwares INNER JOIN perfileshard_hardwares ON hardwares.idhardware=perfileshard_hardwares.idhardware INNER JOIN tipohardwares ON hardwares.idtipohardware=tipohardwares.idtipohardware WHERE perfileshard_hardwares.idperfilhard='.$idperfilhard.' ORDER BY tipohardwares.idtipohardware,hardwares.descripcion'; + $rs->Comando=&$cmd; + + if ($rs->Abrir()){ + $rs->Primero(); + $A_W=" WHERE "; + $strex=""; + while (!$rs->EOF){ + echo '<TR>'; + echo '<TD align=center width="10%" ><INPUT type=checkbox onclick="gestion_componente('.$rs->campos["idhardware"].',this)" checked ></INPUT></TD>'; + echo '<TD align=center width="10%" ><IMG alt="'. $rs->campos["hdescripcion"].'"src="'.$rs->campos["urlimg"].'"></TD>'; + echo '<TD width="80%" > '.$rs->campos["descripcion"].'</TD>'; + echo '</TR>'; + $strex.= $A_W."hardwares.idhardware<>".$rs->campos["idhardware"]; + $A_W=" AND "; + $rs->Siguiente(); + } + } + $rs->Cerrar(); + $cmd->texto='SELECT hardwares.idhardware,hardwares.descripcion,tipohardwares.descripcion as hdescripcion,tipohardwares.urlimg,tipohardwares.pci FROM hardwares INNER JOIN tipohardwares ON hardwares.idtipohardware=tipohardwares.idtipohardware '.$strex.' AND hardwares.idcentro='.$idcentro.' ORDER BY tipohardwares.idtipohardware,hardwares.descripcion'; + $rs->Comando=&$cmd; + if ($rs->Abrir()){ + $rs->Primero(); + while (!$rs->EOF){ + echo '<TR>'; + echo '<TD align=center width="10%" ><INPUT type=checkbox onclick="gestion_componente('.$rs->campos["idhardware"].',this)" ></INPUT></TD>'; + echo '<TD align=center width="10%" ><IMG alt="'. $rs->campos["hdescripcion"].'"src="'.$rs->campos["urlimg"].'"></TD>'; + + echo '<TD width="80%" > '.$rs->campos["descripcion"].'</TD>'; + echo '</TR>'; + $rs->Siguiente(); + } + } + $rs->Cerrar(); + ?> + </TABLE> + </DIV> + <DIV id="Layer_nota" align=center > + <BR> + <SPAN align=center class=notas><I><?echo $TbMsg[4]?></I></SPAN> + </DIV> +</FORM> +<? +//________________________________________________________________________________________________________ +include_once("../includes/iframecomun.php"); +//________________________________________________________________________________________________________ +?> +</BODY> +</HTML> |