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){
}elseif($roleID==3){
//keasramaan
//keasramaan
$roleks=2;
$roleks=2;
...
@@ -86,8 +85,11 @@ class SikkIzinKeluarController extends Controller {
...
@@ -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);
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){
}elseif($roleID==1){
//satpam
//satpam
}
}
$dataProvider=new\yii\data\ActiveDataProvider(
$dataProvider=new\yii\data\ActiveDataProvider(
...
@@ -98,7 +100,6 @@ class SikkIzinKeluarController extends Controller {
...
@@ -98,7 +100,6 @@ class SikkIzinKeluarController extends Controller {
'dataProvider'=>$dataProvider,
'dataProvider'=>$dataProvider,
]);
]);
}
}
publicfunctionactionIndex2(){
publicfunctionactionIndex2(){
$searchModel=newSikkIzinKeluarSearch();
$searchModel=newSikkIzinKeluarSearch();
...
@@ -145,16 +146,8 @@ class SikkIzinKeluarController extends Controller {
...
@@ -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',[
return$this->render('update',[
'model'=>$model,
'model'=>$model,
'modelchk'=>$modelchk,
'id_wali'=>$id_wali,
'nama_wali'=>$nama_wali,
'arrayNamaDosen'=>$arrayNamaDosen,
]);
]);
}
}
}
}
...
@@ -625,7 +495,7 @@ class SikkIzinKeluarController extends Controller {
...
@@ -625,7 +495,7 @@ class SikkIzinKeluarController extends Controller {
publicfunctionactionDelete($id){
publicfunctionactionDelete($id){
$this->findModel($id)->delete();
$this->findModel($id)->delete();
return$this->redirect(['daftarrequest']);
return$this->redirect(['index']);
}
}
/**
/**
...
@@ -644,21 +514,15 @@ class SikkIzinKeluarController extends Controller {
...
@@ -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);