function view() { if (!VAR3) { die("Error del sistema 404"); } $codigo = ""; $codigop = ""; $serie = new series(); $this->usuario = new usuario(); $adm = $this->usuario->esAdm(); $this->series = new tab_series(); $this->series->setRequest2Object($_REQUEST); $row = $this->series->dbselectByField("ser_id", VAR3); $row = $row[0]; // Find state $departamento = new departamento(); //$dep_id = $departamento->obtenerIdDeptoCodigoSerie($row->ser_codigo); $this->registry->template->dep_id = $departamento->obtenerSelect($row->dep_id); //$departamento->obtenerSelect($dep_id); // Find unity $unidad = new unidad(); $this->registry->template->uni_id = $unidad->listUnidad($row->uni_id); //$unidad->obtenerSelect($uni_id); $fondo = new fondo(); $this->registry->template->fon_id = $fondo->obtenerSelectFondosbySeccion($row->uni_id); $this->registry->template->adm = $adm; $this->registry->template->ser_id = $row->ser_id; $this->registry->template->ser_par = $serie->obtenerSelectSeriesDefault($row->ser_par); $this->registry->template->ser_categoria = utf8_encode($row->ser_categoria); $this->registry->template->ser_tipo = $row->ser_tipo; $this->registry->template->ser_contador = $row->ser_contador; $this->registry->template->fon_cod = $fondo->getCod($row->uni_id); $this->registry->template->uni_cod = $unidad->getCodigo($row->uni_id); $tipo_corr = new tipocorr(); $this->registry->template->tco_codigo = $tipo_corr->getCodigoById($row->tco_id); $retensiondoc = new retensiondoc(); $this->registry->template->tco_id = $tipo_corr->obtenerSelect($row->tco_id); $this->registry->template->red_id = $retensiondoc->obtenerSelect($row->red_id); $this->registry->template->delimiter = DELIMITER; $this->registry->template->ser_orden = $row->ser_orden; $this->registry->template->ser_codigo = $row->ser_codigo; if ($row->ser_corr == 'AUTO') { $this->registry->template->ser_corr = "<OPTION selected>AUTO</OPTION><OPTION>MANUAL</OPTION>"; } else { $this->registry->template->ser_corr = "<OPTION>AUTO</OPTION><OPTION selected>MANUAL</OPTION>"; } $this->registry->template->ser_exp = $row->ser_exp; $this->registry->template->ser_nivel = $row->ser_nivel; $this->registry->template->serclon_id = ""; $tramiteSerie = new tramite(); $tramites = $tramiteSerie->obtenerTramitesSerie(VAR3); $tramiteTr = ""; $i = 0; if ($tramites != "") { foreach ($tramites as $tramite) { $tramiteTr .= "<tr><td><input type='checkbox' name='tramite[{$i}]' value='" . $tramite->tra_id . "' {$tramite->checked}></td><td>" . $tramite->tra_descripcion . "</td></tr>\n"; $i++; } } else { $tramiteTr = "<tr><td colspan='2'>No existen tramites</td></tr>"; } $this->registry->template->LISTA_TRAMITES = $tramiteTr; $this->registry->template->LISTA_TRAMITES_SELECT = ''; //$tramiteLi; $this->registry->template->titulo = "Editar "; $this->registry->template->PATH_WEB = PATH_WEB; $this->registry->template->PATH_DOMAIN = PATH_DOMAIN; $this->registry->template->PATH_EVENT = "update"; $this->registry->template->GRID_SW = "true"; $this->registry->template->PATH_J = "jquery-1.4.1"; $this->menu = new menu(); $this->liMenu = $this->menu->imprimirMenu(VAR1, $_SESSION['USU_ID']); $this->registry->template->men_titulo = $this->liMenu; $this->registry->template->show('headerG'); $this->registry->template->show('serie/tab_series.tpl'); $this->registry->template->show('footer'); }
function clonar_view() { if (!VAR3) { die("Error del sistema 404"); } $this->usuario = new tab_usuario(); $usuario = new usuario(); $this->usuario->setRequest2Object($_REQUEST); $row = $this->usuario->dbselectByField("usu_id", VAR3); if (!$row) { die("Error del sistema 404"); } $row = $row[0]; $this->registry->template->titulo = "NUEVO USUARIO DEL SISTEMA"; $this->registry->template->usu_id = ""; $this->registry->template->mod_login = ""; $unidad = new unidad(); $this->registry->template->uni_id = $unidad->listUnidad($row->uni_id); $rol = new rol(); $this->registry->template->roles = $rol->obtenerSelect($row->rol_id); $this->registry->template->leer_doc = '<option value="1">LEER</option><option value="2">NO LEER</option>'; $this->registry->template->crear_doc = 'NO'; $this->registry->template->usu_nombres = ""; $this->registry->template->usu_apellidos = ""; //$this->registry->template->usu_iniciales = $row->usu_iniciales; $this->registry->template->usu_fono = ""; $this->registry->template->usu_email = ""; $this->registry->template->usu_nro_item = ""; $this->registry->template->usu_fech_ing = ""; $this->registry->template->usu_fech_fin = ""; $this->registry->template->usu_login = ""; $this->registry->template->usu_leer_doc = ""; $this->registry->template->usu_verproy = ""; $encuesta = new encuesta(); $this->registry->template->lista_encuesta = $usuario->allencuestaSeleccionado($row->usu_id); $this->menu = new menu(); $this->liMenu = $this->menu->imprimirMenu(VAR1, $_SESSION['USU_ID']); $this->registry->template->men_titulo = $this->liMenu; $this->registry->template->PATH_WEB = PATH_WEB; $this->registry->template->PATH_DOMAIN = PATH_DOMAIN; $this->registry->template->PATH_EVENT = "save"; $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/tab_usuario.tpl'); $this->registry->template->show('footer'); }