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'); }