X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/b49bcec7b53d0fef70585697308ba2473cd961e9..52ec6b73aae5937cd9c04e150e6b261b8be98b01:/lib/SAMURAI/HTML/Perfil.php diff --git a/lib/SAMURAI/HTML/Perfil.php b/lib/SAMURAI/HTML/Perfil.php index f447971..372abf8 100644 --- a/lib/SAMURAI/HTML/Perfil.php +++ b/lib/SAMURAI/HTML/Perfil.php @@ -98,9 +98,6 @@ require_once 'PEAR.php'; //SAMURAI_HTML_Perfil {{{ function SAMURAI_HTML_Perfil(&$MARCO, $id_sistema) { - $_SESSION['samurai']['id_sistema'] = $id_sistema; - $_SESSION['samurai']['login'] = $_SESSION['usuario']; - //INICIALIZO OBJETOS GENERALES {{{ //REALIZO CONEXION $tmp = new SAMURAI_DB(); @@ -109,7 +106,6 @@ function SAMURAI_HTML_Perfil(&$MARCO, $id_sistema) { $SAMURAI_PERM = new SAMURAI_Perm ($_SESSION['usuario'], $id_sistema, $DB); //}}} - if (@$_POST['samurai_accion'] == 'abm' || @$_GET['samurai_perfiles'] == 'abm') { $OPCION = 'abm'; } @@ -206,7 +202,7 @@ function SAMURAI_HTML_Perfil(&$MARCO, $id_sistema) { //AGREGO LOS ELEMENTOS DEL FORM {{{ $FORM->addElement ('hidden', 'samurai_accion', 'nuevo'); $FORM->addElement ('header', 'cabecera' , 'Nuevo Perfil'); - $FORM->addElement ('select', 'perfiles' , 'Perfiles', '', array('size' => '1')); + $FORM->addElement ('select', 'perfiles' , 'Perfiles', null, array('size' => '1')); $FORM->addElement ('text' , 'filtro' , 'Filtrar' , array('size' => '50')); $FORM->addElement ('text' , 'descripcion', 'Nombre' , array('size' => '50')); $group[] = HTML_QuickForm::createElement('submit', 'continuar', 'Continuar'); @@ -317,7 +313,7 @@ function SAMURAI_HTML_Perfil(&$MARCO, $id_sistema) { } $FORM =& new MECON_HTML_QuickForm ('samurai_perfiles','post',$_SERVER['PHP_SELF']); $SISTEMA =& new SAMURAI_Sistema ($DB, $id_sistema); - $PERFIL =& new SAMURAI_Perfil ($DB, $id_perfil); + $PERFIL =& new SAMURAI_Perfil ($DB, $id_perfil, $id_sistema); if ($PERFIL->getResponsable()) { $responsable = $PERFIL->getResponsable();