public function index()
 {
     if (!isset($_GET['p'])) {
         $_GET['p'] = 1;
     }
     if (!isset($_GET['q'])) {
         $_GET['q'] = "";
     }
     if (!isset($_GET['criterio'])) {
         $_GET['criterio'] = "evento.tema";
     }
     $obj = new evento();
     $data = array();
     $semestre_ultimo = $this->mostrar_semestre_ultimo();
     if ($_SESSION['cargo'] == 'Presidente' && $_SESSION['comicion'] == 'COMISION ESPECIAL DE TUTORIA') {
         $presidente = true;
     }
     $data['data'] = $obj->index($_GET['q'], $_GET['p'], $_GET['criterio'], $semestre_ultimo, $_SESSION['idusuario']);
     $data['query'] = $_GET['q'];
     $data['pag'] = $this->Pagination(array('rows' => $data['data']['rowspag'], 'url' => 'index.php?controller=evento&action=index', 'query' => $_GET['q']));
     $cols = array("CODIGO", "Tema", "Tipo Evento", "Fecha");
     $opt = array("tipo_evento.descripcion" => "Tema", "evento.fecha" => "Fecha ");
     $data['grilla'] = $this->grilla("evento", $cols, $data['data']['rows'], $opt, $data['pag'], true, true, false, true, false, false, $presidente);
     $view = new View();
     $view->setData($data);
     $view->setTemplate('../view/evento/_Index.php');
     $view->setLayout('../template/Layout.php');
     $view->render();
 }