function view() { if (!VAR3) { die("Error del sistema 404"); } $expcampo = new expcampo(); $ser_categoria = ""; $this->expcampo = new tab_expcampo(); $sql = "SELECT * \r\n FROM tab_expcampo \r\n WHERE ecp_id = " . VAR3; $resul = $this->expcampo->dbselectBySQL($sql); if (!$resul) { die("Error del sistema 404"); } if (count($resul)) { $ser_id = $resul[0]->ser_id; $series = new series(); $ser_categoria = $series->getTitle($ser_id); } else { $ser_id = ""; } $this->expcampo->setRequest2Object($_REQUEST); $ecp_id = VAR3; $row = $this->expcampo->dbselectByField("ecp_id", $ecp_id); $row = $row[0]; $this->registry->template->ser_categoria = $ser_categoria; $this->registry->template->ser_id = $ser_id; $this->registry->template->ecp_id = $row->ecp_id; $this->registry->template->ecp_orden = $row->ecp_orden; $this->registry->template->ecp_nombre = $row->ecp_nombre; $this->registry->template->ecp_eti = $row->ecp_eti; $this->registry->template->ecp_tipdat = $expcampo->obtenerSelectTipoDato($row->ecp_tipdat); $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"; $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_expcampo.tpl'); $this->registry->template->show('footer'); }
function linkTree($exp_id, $tra_id, $cue_id) { $expediente = new tab_expediente(); $tab_expediente = $expediente->dbselectById($exp_id); $tab_expisadg = new tab_expisadg(); $expisadg = $tab_expisadg->dbselectById($exp_id); $serie = new series(); $tab_tramite = new Tab_tramite(); $tab_tramite = $tab_tramite->dbselectById($tra_id); $tab_cuerpo = new Tab_cuerpos(); $tab_cuerpo = $tab_cuerpo->dbselectById($cue_id); $flecha = "<img src='" . PATH_DOMAIN . "/web/img/arrow.png' width=\"12px\" height=\"12px\"/>"; $serie_des = utf8_decode($serie->getTitle($tab_expediente->getSer_id())); $exp_des = utf8_decode($expisadg->getExp_titulo()); $tramite = utf8_decode($tab_tramite->getTra_descripcion()); $cuerpo = utf8_decode($tab_cuerpo->getCue_descripcion()); return "<a href='" . PATH_DOMAIN . "/estrucDocumental/'> {$serie_des}</a> {$flecha}\r\n <a href='" . PATH_DOMAIN . "/estrucDocumental/viewTree/" . $exp_id . "/'> {$exp_des}</a> {$flecha}\r\n <a href='" . PATH_DOMAIN . "/estrucDocumental/viewTree/" . $exp_id . "/'> {$tramite} </a> {$flecha}\r\n <a href='" . PATH_DOMAIN . "/estrucDocumental/viewTree/{$exp_id}/'> {$cuerpo} </a> "; }