diff options
author | alonso <alonso@us.es> | 2009-11-04 11:04:54 +0000 |
---|---|---|
committer | alonso <alonso@us.es> | 2009-11-04 11:04:54 +0000 |
commit | 7b3bc4abe41dff4402ee433a7eab47c2b36c47bc (patch) | |
tree | 8830f3b0fbec41b03f207273eb6f5ff90eaa09ce /admin/WebConsole/varios/perfilcomponente_hard.php | |
parent | 3acdc93388ab0907242a9a074df54e1cc93b7908 (diff) |
git-svn-id: https://opengnsys.es/svn/trunk@481 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, 0 insertions, 98 deletions
diff --git a/admin/WebConsole/varios/perfilcomponente_hard.php b/admin/WebConsole/varios/perfilcomponente_hard.php deleted file mode 100644 index 684f84dc..00000000 --- a/admin/WebConsole/varios/perfilcomponente_hard.php +++ /dev/null @@ -1,98 +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> -<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> |