diff options
author | alonso <alonso@us.es> | 2010-10-23 09:22:07 +0000 |
---|---|---|
committer | alonso <alonso@us.es> | 2010-10-23 09:22:07 +0000 |
commit | 550b680d176cbccfecfe35fad440dd570d90ba5b (patch) | |
tree | c81a133cb819d719d5e2d103b2b6b12447b60bf7 /admin/WebConsole/varios/perfilcomponente_hard.php | |
parent | 5f11948f55d9b9c11c76a75b65bde7d4e5477191 (diff) |
git-svn-id: https://opengnsys.es/svn/trunk@1313 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/varios/perfilcomponente_hard.php')
-rw-r--r-- | admin/WebConsole/varios/perfilcomponente_hard.php | 99 |
1 files changed, 0 insertions, 99 deletions
diff --git a/admin/WebConsole/varios/perfilcomponente_hard.php b/admin/WebConsole/varios/perfilcomponente_hard.php deleted file mode 100644 index 93425e43..00000000 --- a/admin/WebConsole/varios/perfilcomponente_hard.php +++ /dev/null @@ -1,99 +0,0 @@ -<? -// ************************************************************************************************************************************************* -// Aplicación WEB: ogAdmWebCon -// Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla -// 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> - <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/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> |