$form['nombre'] = array('type' => 'text', 'label' => 'Nombre'); $form['nombre_corto'] = array('type' => 'text', 'label' => 'Nombre Corto'); $form['telefono'] = array('type' => 'text', 'label' => 'Teléfonos'); $form['direccion'] = array('type' => 'textarea', 'label' => 'Dirección'); $form['hr_1'] = array('type' => 'hr'); $form['login'] = array('type' => 'text', 'label' => 'Usuario (DNI)'); $form['pwd'] = array('type' => 'pwd', 'label' => 'Contraseña'); $form['perfil_id'] = array('type' => 'select1', 'label' => 'Perfil', 'combo' => 'usu_perfil'); $form['comentario'] = array('type' => 'textarea', 'label' => 'Comentario'); $form['hr_2'] = array('type' => 'hr'); $form['vigente'] = array('type' => 'bool', 'label' => 'Vigente'); $form['fecha_entrada'] = array('type' => 'timestamp', 'label' => 'Fecha de Entrada'); $form['fecha_cese'] = array('type' => 'timestamp', 'label' => 'Fecha de Cese'); $form['cese_observacion'] = array('type' => 'textarea', 'label' => 'Observación de Cese'); $form['cese_tipo'] = array('type' => 'select2', 'label' => 'Perfil', 'combo' => 'usu_cese_tipo'); $combo['usu_perfil'] = $modelo->getPerfil($in); $combo['usu_cese_tipo'] = $modelo->getCeseTipo($in); $grupos = $modelo->getGrupoByUsuario($in); // -------------------------------------------------------- TEST // Utilidades::printr($in); // Utilidades::printr($_SESSION); // Utilidades::printr($dato); // Utilidades::printr($grupos); // -------------------------------------------------------- OUT echo '<form class="myform">'; echo '<div class="row">'; echo '<div class="large-12 medium-12 small-12 columns">'; echo '<input type="hidden" id="field_modal_usuario_existe_dni" value="no">'; foreach ($form as $name => $row) { if ($row['type'] == 'hidden') { echo '<input type="hidden"
<?php include "../../../../../lib/mysql/dbconnector.php"; include "../../../../../lib/mysql/conexion01.php"; include "../../../../../lib/mysql/utilidades.php"; include "../../../../../lib/html/tabla.php"; include "../../../modelo/ModeloUsuario.php"; session_start(); $modelo = new ModeloUsuario(); // -------------------------------------------------------- INPUT $in['perfil'] = trim($_SESSION['perfiles']); // -------------------------------------------------------- Data $ou = $modelo->getPerfil($in); $combo = new OptionComboSimple(); // $combo->set_option(0); $combo->set_format(array('id', 'nombre')); $combo->imprimir($ou); // -------------------------------------------------------- TEST // Utilidades::printr($in); // Utilidades::printr($campos); // Utilidades::printr($dato); // -------------------------------------------------------- OUT