--- /dev/null
+<?php
+// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4 foldmethod=marker:
+// +----------------------------------------------------------------------+
+// | PHP Version 4 |
+// +----------------------------------------------------------------------+
+// | Copyright (c) 1997-2003 The PHP Group |
+// +----------------------------------------------------------------------+
+// | This source file is subject to version 2.02 of the PHP license, |
+// | that is bundled with this package in the file LICENSE, and is |
+// | available at through the world-wide-web at |
+// | http://www.php.net/license/2_02.txt. |
+// | If you did not receive a copy of the PHP license and are unable to |
+// | obtain it through the world-wide-web, please send a note to |
+// | license@php.net so we can mail you a copy immediately. |
+// +----------------------------------------------------------------------+
+// | Created: jue jul 17 16:29:54 ART 2003
+// | Author: Martin Marrese <mmarre@mecon.gov.ar>
+// +----------------------------------------------------------------------+
+//
+// $Id$
+//
+
+//REQUIRE ONCE {{{
+ //MECON {{{
+ require_once 'MECON/HTML/QuickForm.php';
+ require_once 'MECON/HTML/Error.php';
+ //}}}
+ //SAMURAI {{{
+ require_once 'SAMURAI/Usuario.php';
+ //}}}
+// }}}
+
+//CREO LOS OBJETOS NECESARIOS {{{
+ if (!@$_GET['login']) {
+ $FORM = new MECON_HTML_Error('No hay un usuario seleccionado');
+ }
+ else {
+ $FORM = new MECON_HTML_QuickForm ('usuarios_datos','post','usuarios-datos');
+ $USUARIO = new SAMURAI_Usuario($DB, $_GET['login']);
+ }
+// }}}
+
+//OBTENGO LOS DATOS DE LA BASE {{{
+ $tmps = SAMURAI_Perfil::getPerfiles($DB, null, $_SESSION['samurai']['id_sistema']);
+ foreach ($tmps as $tmp) {
+ $PERFILES[$tmp->getId()] = $tmp->getDescripcion();
+ }
+//}}}
+
+//AGREGO LOS ELEMENTOS AL FORM {{{
+ $FORM->addElement ('static', 'login' , 'Login@Organismo', $USUARIO->getLogin() );
+ $FORM->addElement ('static', 'nrodoc' , 'Nro Documento' , $USUARIO->getNrodoc() );
+ $FORM->addElement ('static', 'nombre' , 'Nombre' , $USUARIO->getNombre() );
+ $perf =& $FORM->addElement('select', 'perfiles', 'Perfiles' , $PERFILES , array ('size'=>'5'));
+ $group[] = HTML_QuickForm::createElement('button', 'salir', 'Salir', array ('onClick' => 'self.close();return false;'));
+ $FORM->addGroup($group,'botones');
+ $perf->setSelected($USUARIO->getPerfiles());
+ $FORM->freeze();
+// }}}
+
+//DIBUJO LA PAGINA {{{
+ $FORM->display();
+// }}}
+//FIN
+?>