public function index() { if (!isset($_GET['p'])) { $_GET['p'] = 1; } if (!isset($_GET['q'])) { $_GET['q'] = ""; } if (!isset($_GET['criterio'])) { $_GET['criterio'] = "idevento"; } $obj = new evento_proyeccion_social(); $data = array(); $datos = $data['data'] = $obj->index($_GET['q'], $_GET['p'], $_GET['criterio']); $data['query'] = $_GET['q']; $data['pag'] = $this->Pagination(array('rows' => $data['data']['rowspag'], 'url' => 'index.php?controller=evento_proyeccion_social&action=index', 'query' => $_GET['q'])); $cols = array("CODIGO", "TEMA DE EVENTO", "TIPO", "FECHA", "LUGAR", "PREACTIVIDADES"); $opt = array("evento_proyeccion_social.DescripcionTipoColegio" => "Nombre Tipo Colegio"); $data['grilla'] = $this->grilla("evento_proyeccion_social", $cols, $data['data']['rows'], $opt, $data['pag'], true, true); $view = new View(); $view->setData($data); $view->setTemplate('../view/evento_proyeccion_social/_Index.php'); $view->setLayout('../template/Layout.php'); $view->render(); }
public function index() { if (!isset($_GET['p'])) { $_GET['p'] = 1; } if (!isset($_GET['q'])) { $_GET['q'] = ""; } if (!isset($_GET['criterio'])) { $_GET['criterio'] = "idevento"; } $obj = new evento_proyeccion_social(); $data = array(); $sem = $this->mostrar_semestre_ultimo(); $datos = $data['data'] = $obj->index($_GET['q'], $_GET['p'], $_GET['criterio'], $_SESSION['idusuario'], $sem); $data['query'] = $_GET['q']; $data['pag'] = $this->Pagination(array('rows' => $data['data']['rowspag'], 'url' => 'index.php?controller=evento_proyeccion_social&action=index', 'query' => $_GET['q'])); $cols = array("CODIGO", "TEMA DE EVENTO", "TIPO", "FECHA", "LUGAR"); $opt = array("eventotema" => "Tema", "evento.fecha" => "Fecha"); $data['grilla'] = $this->grilla_E_PS_EU("evento_proyeccion_social", $cols, $data['data']['rows'], $opt, $data['pag'], true, true, false, true, true, false); $view = new View(); $view->setData($data); $view->setTemplate('../view/evento_proyeccion_social/_Index.php'); $view->setLayout('../template/Layout3.php'); $view->render(); }