public function search_por_facultad() { if (!isset($_GET['p'])) { $_GET['p'] = 1; } $obj = new alumno(); $data = array(); if (!isset($_GET['q'])) { $_GET['q'] = ""; } if (!isset($_GET['p'])) { $_GET['p'] = ""; } if (!isset($_GET['criterio'])) { $_GET['criterio'] = "alumnos.NombreAlumno"; } $fac = $_GET['fac']; if (empty($fac)) { $fac = $_POST['fac']; } $data['sinCab'] = $_POST['sinCab']; // recive lo del imput, pagina, criterio del campo $obj->borar_chek(); $count = $data['data'] = $obj->indexBuscarAlumno($_GET['q'], $_GET['p'], $_GET['criterio'], $fac); $data['query'] = $_GET['q']; $data['pag'] = $this->Pagination2(array('rows' => $data['data']['rowspag'], 'url' => 'index.php?controller=alumno&action=search_por_facultad&criterio=' . $_GET['criterio'], 'query' => $_GET['q'], 'fac' => $_GET['fac'])); $cols = array(); $cols = array("CODIGO", "Nombre", "Apellidos", "Documentos", "Fecha Ingreso", "CodAlumnoSira", "Estado"); $opt = array("NombreAlumno" => "Nombre Alumno", "CodAlumnoSira" => "Codigo Sira "); $data['grilla'] = $this->grilla2("alumno", $cols, $data['data']['rows'], $opt, $data['pag'], false, false, true, false, false, false, false, true); $view = new View(); $view->setData($data); $view->setTemplate('../view/alumno/_Lista.php'); $view->setLayout('../template/List.php'); $view->render(); }