function view() { if (!VAR3) { die("Error del sistema 404"); } $tusuario = new tab_usuario(); $tusuario->setRequest2Object($_REQUEST); $row = $tusuario->dbselectByField("usu_id", VAR3); if (!$row) { die("Error del sistema 404"); } $row = $row[0]; $this->registry->template->titulo = "EDITAR PERMISOS DE LECTURA DEL USUARIO"; $this->registry->template->usu_id = $row->usu_id; $usu = new usuario(); $datosUsu = $usu->getDatos(VAR3); $this->registry->template->unidad = $datosUsu->uni_descripcion; $rol = new rol(); $this->registry->template->roles = $rol->obtenerSelect($row->rol_id); if ($row->usu_leer_doc == '1') { $selected1 = " selected"; $selected2 = ""; } if ($row->usu_leer_doc == '2') { $selected2 = " selected"; $selected1 = ""; } $this->registry->template->leer_doc = '<option value="1" ' . $selected1 . '>LEER</option><option value="2" ' . $selected2 . '>NO LEER</option>'; $this->registry->template->usuario = $row->usu_nombres . " " . $row->usu_apellidos; $tmenu = new menu(); $liMenu = $tmenu->imprimirMenu(VAR1, $_SESSION['USU_ID']); $this->registry->template->men_titulo = $liMenu; $this->registry->template->PATH_WEB = PATH_WEB; $this->registry->template->PATH_DOMAIN = PATH_DOMAIN; $this->registry->template->PATH_EVENT = "update"; $this->registry->template->PATH_J = "jquery"; $this->registry->template->GRID_SW = "true"; $this->registry->template->FORM_SW = ""; $this->registry->template->show('headerG'); $this->registry->template->show('usuario/permisos.tpl'); $this->registry->template->show('footer'); }