function view() { $pav_id = VAR3; $dov_id = VAR4; $this->pasaje_viatico = new tab_documento_viaje(); $rows = $this->pasaje_viatico->dbselectByField("pav_id", $pav_id); $row = $rows[0]; $pasaje_viatico = new pasaje_viatico(); $this->registry->template->pav_nromemo = $pasaje_viatico->getPav_nromemo(VAR3); $this->registry->template->pav_de = $pasaje_viatico->getPav_de(VAR3); $this->registry->template->pav_a = $pasaje_viatico->getPav_a(VAR3); if (VAR5) { if (VAR5 == 0) { $msm = "HUBO ERROR AL REGISTRAR EL DOCUMENTO!"; } else { if (VAR5 == 1) { $msm = "SE GUARDO CORRECTAMENTE EL DOCUMENTO!"; } else { $msm = ""; } } } else { $msm = ""; } $this->registry->template->msm = $msm; $exp = new pasaje_viatico(); $this->registry->template->linkTree = $exp->linkTree(VAR3); $arc = new archivo(); $this->registry->template->confidencialidad = $arc->loadConfidencialidad('1'); $this->registry->template->PATH_WEB = PATH_WEB; $this->registry->template->PATH_DOMAIN = PATH_DOMAIN; $this->registry->template->PATH_EVENT = "update"; $this->registry->template->controller = VAR1; $this->registry->template->GRID_SW = "true"; $this->registry->template->PATH_J = "jquery-1.4.1"; $this->registry->template->tituloEstructura = "<div class='titulo' align='center'>DOCUMENTOS DEL INFORME</div>"; $this->menu = new menu(); $liMenu = $this->menu->imprimirMenu(VAR1, $_SESSION['USU_ID']); $this->registry->template->men_titulo = $liMenu; $this->registry->template->show('headerG'); // $this->registry->template->show('archivo/exp_detallesView.tpl'); $this->registry->template->show('documento_viaje/tab_documento_viaje.tpl'); $this->registry->template->show('footer'); }
function validateChangeFlow() { $pasaje_viatico = new pasaje_viatico(); $swDepen = $pasaje_viatico->validateAuthorize($_REQUEST['pav_id']); if ($swDepen == 0) { echo 'Para aprobar los pasajes y viáticos, debe registrar e imprimir todos los requerisitos.'; } echo ''; }