public function index()
 {
     if (!isset($_GET['p'])) {
         $_GET['p'] = 1;
     }
     if (!isset($_GET['q'])) {
         $_GET['q'] = "";
     }
     if (!isset($_GET['criterio'])) {
         $_GET['criterio'] = "matricula_cca.idmatricula";
     }
     $obj = new matricula_cca();
     $data = array();
     $comision_actual = $obj->comision_actual();
     //        var_dump($comision_actual);
     //        exit();
     //        var_dump($comision_actual);
     //        exit();
     //        $data['query'] = $_GET['q'];
     //        $data['pag'] = $this->Pagination(array('rows'=>$data['data']['rowspag'],'url'=>'index.php?controller=matricula_cca&action=index','query'=>$_GET['q']));
     //        $cols = array("id","alumno","comision","proyecto","fecha");
     //        $opt = array("matricula_cca.nombre_proyecto"=>"matricula");
     //        $data['grilla'] = $this->grilla_comision_cca("matricula_cca",$cols, $data['data']['rows'],$opt,$data['pag'],true,false,true,true);
     $a = $obj->comision_actual();
     foreach ($a as $vl) {
         $idc = $vl[0];
     }
     $data['comision'] = $comision_actual;
     //$data['alumno'] = $this->Select(array('id'=>'idalumno','name'=>'idalumno','table'=>'vista_alumno_cca','code'=>$obj->idalumno));
     //        $data['comision'] = $this->Select(array('id'=>'idcomision','name'=>'idcomision','table'=>'comision_cca','code'=>$obj->idcomision));
     $obj2 = new cronograma_cca();
     $data['montocomi'] = $obj2->monto_comision($idc);
     $view = new View();
     $view->setData($data);
     $view->setTemplate('../view/matricula_cca/_Form.php');
     $view->setLayout('../template/Layout.php');
     $view->render();
 }
 public function insertar_cronograma($_G)
 {
     $monto = $_GET['monto'];
     $fechas = $_GET['fechacrono'];
     $alumno = $_GET['alumno'];
     //        var_dump($_GET['fechacrono']);
     //        exit();
     $obj = new cronograma_cca();
     $p = $obj->insert($_GET);
     if ($p[0]) {
         header('Location:index.php?controller=cronograma_cca');
     } else {
         $data = array();
         $view = new View();
         $data['msg'] = $p[1];
         $data['url'] = 'index.php?controller=alumno_cca';
         $view->setData($data);
         $view->setTemplate('../view/_Error_App.php');
         $view->setLayout('../template/Layout.php');
         $view->render();
     }
 }