Add anual report feature

This commit is contained in:
2021-09-17 21:26:28 +07:00
parent 8da0a69176
commit cd74f850b0
23 changed files with 1155 additions and 18 deletions

View File

@@ -27,8 +27,12 @@ class DetailUmkm extends CI_Controller {
public function index()
{
$get = $this->input->get();
if($this->input->get()){
$get = $this->input->get();
if(isset($get['msg'])){
$data['msg'] = 'success';
}
}
$umkm = $this->UmkmModel->getUmkmsById($get['id_umkm']);
@@ -41,6 +45,9 @@ class DetailUmkm extends CI_Controller {
$post = $this->input->post();
if($this->AbsensiModel->update($post['id_absensi'])){
$this->UmkmModel->updateAset($umkm->id_umkm,$post['aset']);
redirect(site_url('user/detailumkm?id_umkm='.$umkm->id_umkm.'&msg=success'));
} else {
$data['msg']="error!";