function index() { $departamento = new departamento(); $this->registry->template->dep_id = $departamento->obtenerSelect(); $fondo = new fondo(); $this->registry->template->fon_id = $fondo->obtenerSelectFondos(); $this->registry->template->uni_id = ""; $this->registry->template->ser_id = ""; //$this->registry->template->exp_id = ""; $this->registry->template->tra_id = ""; $this->registry->template->cue_id = ""; $tmenu = new menu(); $liMenu = $tmenu->imprimirMenu("prestamos", $_SESSION['USU_ID']); $this->registry->template->men_titulo = $liMenu; $this->registry->template->UNI_ID = $_SESSION['UNI_ID']; $this->registry->template->PATH_WEB = PATH_WEB; $this->registry->template->PATH_DOMAIN = PATH_DOMAIN; $this->registry->template->PATH_EVENT = "search"; $this->registry->template->PATH_EVENT2 = "verifpass"; $this->registry->template->PATH_EVENT_VERIF_PASS = "******"; $this->registry->template->PATH_EVENT3 = "download"; $this->registry->template->PATH_EVENT4 = "getConfidencialidad"; $this->registry->template->PATH_EVENT_EXPORT = "exportar"; $this->registry->template->GRID_SW = "false"; $this->registry->template->PATH_J = "jquery-1.4.1"; //session //ajax $this->registry->template->PATH_EVENT_LISTA = "guardarLista"; //$this->registry->template->cantidad= $tseries->countBySQL(); $this->registry->template->show('headerBuscador'); $this->registry->template->show('prestamos/buscarArchivo.tpl'); $this->registry->template->show('footer'); }
function index() { $tseries = new series(); $series = ""; if ($_SESSION["ROL_COD"] == "AA" || $_SESSION["ROL_COD"] == "AC" || $_SESSION["ROL_COD"] == "AI") { $series = $tseries->obtenerSelectTodas(); } else { $series = $tseries->obtenerSelectSeries(); } $departamento = new departamento(); $this->registry->template->dep_id = $departamento->obtenerSelect(); $fondo = new fondo(); $this->registry->template->fon_id = $fondo->obtenerSelectFondos(); $this->registry->template->uni_id = ""; $this->registry->template->ser_id = ""; //$this->registry->template->exp_id = ""; $this->registry->template->tra_id = ""; $this->registry->template->cue_id = ""; $tmenu = new menu(); $liMenu = $tmenu->imprimirMenu("buscarArchivo", $_SESSION['USU_ID']); $this->registry->template->men_titulo = $liMenu; $this->registry->template->UNI_ID = $_SESSION['UNI_ID']; $this->registry->template->PATH_WEB = PATH_WEB; $this->registry->template->PATH_DOMAIN = PATH_DOMAIN; $this->registry->template->PATH_EVENT = "search"; $this->registry->template->PATH_EVENT2 = "verifpass"; $this->registry->template->PATH_EVENT_VERIF_PASS = "******"; $this->registry->template->PATH_EVENT3 = "download"; $this->registry->template->PATH_EVENT4 = "getConfidencialidad"; $this->registry->template->PATH_EVENT_EXPORT = "exportar"; $this->registry->template->GRID_SW = "false"; $this->registry->template->PATH_J = "jquery-1.4.1"; $this->registry->template->show('headerBuscador'); $this->registry->template->show('archivo/buscarArchivo.tpl'); $this->registry->template->show('footer'); }
function clonar_view() { if (!VAR3) { die("Error del sistema 404"); } // Clonar serie del sistema de información $this->usuario = new usuario(); $adm = $this->usuario->esAdm(); $departamento = new departamento(); $this->registry->template->dep_id = $departamento->obtenerSelect(); $unidad = new unidad(); //$this->registry->template->uni_id = $unidad->obtenerSelect(); $this->registry->template->uni_id = ""; $serie = new series(); $tipo_corr = new tipocorr(); $retensiondoc = new retensiondoc(); $fondo = new fondo(); $this->registry->template->adm = $adm; $this->registry->template->delimiter = DELIMITER; // Clonacion de serie $this->registry->template->serclon_id = VAR3; $this->registry->template->ser_id = ""; $this->registry->template->fon_id = $fondo->obtenerSelectFondos(); //$this->registry->template->ser_par = $serie->obtenerSelectTodas(); $this->registry->template->ser_par = ""; $this->registry->template->ser_categoria = ""; $this->registry->template->ser_tipo = "N"; $this->registry->template->ser_codigop = ""; $this->registry->template->ser_codigo = ""; $this->registry->template->titulo = "Nueva "; $this->registry->template->tco_id = $tipo_corr->obtenerSelect(); $this->registry->template->red_id = $retensiondoc->obtenerSelect(); $this->registry->template->fon_cod = ""; $this->registry->template->uni_cod = ""; $this->registry->template->tco_codigo = ""; $this->registry->template->ser_contador = "0"; $this->registry->template->ser_corr = "<OPTION>AUTO</OPTION><OPTION>MANUAL</OPTION>"; $this->registry->template->ser_exp = "0"; $tramiteSerie = new tab_tramite(); $tramites = $tramiteSerie->dbSelectBySQL("SELECT * FROM tab_tramite\r\n WHERE tra_estado = '1' ORDER BY tra_descripcion ASC "); $tramiteTr = ""; $i = 0; if (count($tramites)) { foreach ($tramites as $tramite) { $tramiteTr .= "<tr><td><input type='checkbox' class='' name='tramite[{$i}]' value='" . $tramite->tra_id . "' /></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 = ""; $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_clon"; $this->registry->template->GRID_SW = "false"; $this->registry->template->PATH_J = "jquery-1.4.1"; $this->registry->template->show('headerG'); $this->registry->template->show('tab_series.tpl'); $this->registry->template->show('footer'); }