FROM sikk_approval a LEFT JOIN sikk_izin_keluar b ON a.`izin_keluar_id` = b.`izin_keluar_id` WHERE a.`approver_id` = ".$akunID->pegawai_id.' and b.status='.$roleks.' and a.`status_approval` = '.$roleks);
FROM sikk_approval a LEFT JOIN sikk_izin_keluar b ON a.`izin_keluar_id` = b.`izin_keluar_id` WHERE a.`approver_id` = ".$akunID->pegawai_id.' and b.status='.$roleks.' and a.`status_approval` = '.$roleks);
}elseif($roleID==3){
//keasramaan
$roleks=2;
...
...
@@ -86,8 +85,11 @@ class SikkIzinKeluarController extends Controller {
FROM sikk_approval a LEFT JOIN sikk_izin_keluar b ON a.`izin_keluar_id` = b.`izin_keluar_id` WHERE a.`approver_id` = ".$akunID->pegawai_id.' and b.status='.$roleks);
}elseif($roleID==1){
//satpam
}
$dataProvider=new\yii\data\ActiveDataProvider(
...
...
@@ -98,7 +100,6 @@ class SikkIzinKeluarController extends Controller {
'dataProvider'=>$dataProvider,
]);
}
publicfunctionactionIndex2(){
$searchModel=newSikkIzinKeluarSearch();
...
...
@@ -145,16 +146,8 @@ class SikkIzinKeluarController extends Controller {
Yii::$app->session->setFlash('warning','Request yang anda buat tidak benar, coba perhatikan jika masih ada kolom yang kosong atau tanggal yang anda masukkan');
return$this->render('create',[
'model'=>$model,
'modelchk'=>$modelchk,
'id_wali'=>$id_wali,
'nama_wali'=>$nama_wali,
'arrayNamaDosen'=>$arrayNamaDosen,
]);
}
}else{
return$this->render('update',[
'model'=>$model,
'modelchk'=>$modelchk,
'id_wali'=>$id_wali,
'nama_wali'=>$nama_wali,
'arrayNamaDosen'=>$arrayNamaDosen,
]);
}
}
...
...
@@ -625,7 +495,7 @@ class SikkIzinKeluarController extends Controller {
publicfunctionactionDelete($id){
$this->findModel($id)->delete();
return$this->redirect(['daftarrequest']);
return$this->redirect(['index']);
}
/**
...
...
@@ -644,21 +514,15 @@ class SikkIzinKeluarController extends Controller {
FROM sikk_approval a LEFT JOIN sikk_izin_keluar b ON a.`izin_keluar_id` = b.`izin_keluar_id` WHERE a.`approver_id` = ".$akunID->pegawai_id.' and b.status='.$roleks.' and a.status_approval='.$roleks);
FROM sikk_approval a LEFT JOIN sikk_izin_keluar b ON a.`izin_keluar_id` = b.`izin_keluar_id` WHERE a.`approver_id` = ".$akunID->pegawai_id.' and b.status='.$roleks);
FROM sikk_approval a LEFT JOIN sikk_izin_keluar b ON a.`izin_keluar_id` = b.`izin_keluar_id` WHERE a.`approver_id` = ".$akunID->pegawai_id.' and b.status='.$roleks);