Add anual report feature
This commit is contained in:
@@ -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!";
|
||||
|
||||
Reference in New Issue
Block a user