public function data_index_skripsi() { if (isset($_POST['univ']) && isset($_POST['jurusan']) && isset($_POST['tahun'])) { //tinggal nambahin filter di get_elem_jadup $univ = $_POST['univ']; $jurusan = $_POST['jurusan']; $tahun = $_POST['tahun']; $user = Session::get('kd_user'); $elem = new ElemenBeasiswa(); if (Session::get('role') == 2) { $data_skripsi = $elem->get_elem_skripsi($univ, $jurusan, $tahun, $user); } else { $data_skripsi = $elem->get_elem_skripsi($univ, $jurusan, $tahun); } if (isset($_POST['cur_page'])) { $cur_page = $_POST['cur_page']; } else { $cur_page = 1; } $paging = new MyPaging($cur_page, $data_skripsi); $this->view->cur_page = $paging->getCurPage(); $this->view->per_page = $paging->getPerPage(); $this->view->page_num = $paging->getPageNum(); $this->view->skripsi = $paging->getData(); $this->view->load('bantuan/tabel_index_skripsi'); } }
public function dataBiayaKontrak() { if (isset($_POST['univ']) && isset($_POST['status']) && isset($_POST['jadwal'])) { $univ = $_POST['univ']; //print_r ($univ); $status = $_POST['status']; $tahun = $_POST['jadwal']; //print_r ($tahun); $user = Session::get('kd_user'); $biaya = new Biaya(); if (Session::get('role') == 2) { $data_biaya = $biaya->get_by_filter($univ, $status, $tahun, $user); } else { $data_biaya = $biaya->get_by_filter($univ, $status, $tahun); } $universitas = new Universitas($this->registry); $jurusan = new Jurusan($this->registry); $kontrak = new Kontrak(); $this->view->universitas = $universitas; $this->view->jurusan = $jurusan; $this->view->kontrak = $kontrak; $this->view->biaya = $biaya; //echo "aaaa"; //var_dump($biaya); if (isset($_POST['cur_page'])) { $cur_page = $_POST['cur_page']; } else { $cur_page = 1; } $paging = new MyPaging($cur_page, $data_biaya); $this->view->cur_page = $paging->getCurPage(); $this->view->per_page = $paging->getPerPage(); $this->view->page_num = $paging->getPageNum(); $this->view->data_biaya = $paging->getData(); $this->view->load('kontrak/tabel_biaya'); } }