$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" name = "' . $name . '" id = "field_modal_usuario_' . $name . '"