Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
ubux-kendaraan
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jonathan Borisman Tambun
ubux-kendaraan
Commits
0a7c2d1d
Commit
0a7c2d1d
authored
May 30, 2018
by
Hendro Prabowo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revisi Integrasi 3
parent
e2653d07
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
67 changed files
with
318 additions
and
456 deletions
+318
-456
DefaultController.php
backend/modules/ubux/controllers/DefaultController.php
+0
-20
KendaraanController.php
backend/modules/ubux/controllers/KendaraanController.php
+6
-9
LaporanPemakaianKendaraanController.php
.../ubux/controllers/LaporanPemakaianKendaraanController.php
+6
-9
PemakaianKendaraanController.php
...modules/ubux/controllers/PemakaianKendaraanController.php
+0
-0
PemakaianKendaraanMahasiswaController.php
...bux/controllers/PemakaianKendaraanMahasiswaController.php
+28
-31
SupirController.php
backend/modules/ubux/controllers/SupirController.php
+5
-8
LaporanPemakaianKendaraan.php
backend/modules/ubux/models/LaporanPemakaianKendaraan.php
+4
-4
PemakaianKendaraan.php
backend/modules/ubux/models/PemakaianKendaraan.php
+32
-24
PemakaianKendaraanMahasiswa.php
backend/modules/ubux/models/PemakaianKendaraanMahasiswa.php
+8
-8
StatusRequest.php
backend/modules/ubux/models/StatusRequest.php
+2
-2
KendaraanSearch.php
backend/modules/ubux/models/search/KendaraanSearch.php
+1
-1
LaporanPemakaianKendaraanSearch.php
...es/ubux/models/search/LaporanPemakaianKendaraanSearch.php
+3
-3
PemakaianKendaraanMahasiswaSearch.php
.../ubux/models/search/PemakaianKendaraanMahasiswaSearch.php
+4
-4
PemakaianKendaraanSearch.php
...d/modules/ubux/models/search/PemakaianKendaraanSearch.php
+7
-5
SupirSearch.php
backend/modules/ubux/models/search/SupirSearch.php
+1
-1
_form.php
backend/modules/ubux/views/kendaraan/_form.php
+16
-2
add.php
backend/modules/ubux/views/kendaraan/add.php
+0
-0
edit.php
backend/modules/ubux/views/kendaraan/edit.php
+0
-0
index.php
backend/modules/ubux/views/kendaraan/index.php
+3
-3
view.php
backend/modules/ubux/views/kendaraan/view.php
+2
-2
_form.php
.../modules/ubux/views/laporan-pemakaian-kendaraan/_form.php
+19
-6
_search.php
...odules/ubux/views/laporan-pemakaian-kendaraan/_search.php
+1
-1
add.php
...nd/modules/ubux/views/laporan-pemakaian-kendaraan/add.php
+0
-0
edit.php
...d/modules/ubux/views/laporan-pemakaian-kendaraan/edit.php
+0
-0
index.php
.../modules/ubux/views/laporan-pemakaian-kendaraan/index.php
+4
-4
view.php
...d/modules/ubux/views/laporan-pemakaian-kendaraan/view.php
+3
-3
viewPdf.php
...odules/ubux/views/laporan-pemakaian-kendaraan/viewPdf.php
+2
-2
_form.php
backend/modules/ubux/views/pegawai/_form.php
+0
-37
_search.php
backend/modules/ubux/views/pegawai/_search.php
+0
-43
create.php
backend/modules/ubux/views/pegawai/create.php
+0
-21
index.php
backend/modules/ubux/views/pegawai/index.php
+0
-44
update.php
backend/modules/ubux/views/pegawai/update.php
+0
-21
view.php
backend/modules/ubux/views/pegawai/view.php
+0
-43
_form.php
...odules/ubux/views/pemakaian-kendaraan-mahasiswa/_form.php
+15
-2
_search.php
...ules/ubux/views/pemakaian-kendaraan-mahasiswa/_search.php
+1
-1
add.php
.../modules/ubux/views/pemakaian-kendaraan-mahasiswa/add.php
+0
-0
edit.php
...modules/ubux/views/pemakaian-kendaraan-mahasiswa/edit.php
+0
-0
index.php
...odules/ubux/views/pemakaian-kendaraan-mahasiswa/index.php
+5
-5
indexByKemahasiswaan.php
...ws/pemakaian-kendaraan-mahasiswa/indexByKemahasiswaan.php
+2
-2
view.php
...modules/ubux/views/pemakaian-kendaraan-mahasiswa/view.php
+5
-5
viewByKemahasiswaan.php
...ews/pemakaian-kendaraan-mahasiswa/viewByKemahasiswaan.php
+4
-4
viewPdf.php
...ules/ubux/views/pemakaian-kendaraan-mahasiswa/viewPdf.php
+2
-2
_formByPegawai.php
...modules/ubux/views/pemakaian-kendaraan/_formByPegawai.php
+19
-5
_formByPribadi.php
...modules/ubux/views/pemakaian-kendaraan/_formByPribadi.php
+23
-9
_formBySekretarisRektorat.php
...x/views/pemakaian-kendaraan/_formBySekretarisRektorat.php
+16
-3
edit.php
backend/modules/ubux/views/pemakaian-kendaraan/edit.php
+0
-0
indexByHrd.php
...end/modules/ubux/views/pemakaian-kendaraan/indexByHrd.php
+1
-1
indexByKabiroKsd.php
...dules/ubux/views/pemakaian-kendaraan/indexByKabiroKsd.php
+1
-1
indexByKeuangan.php
...odules/ubux/views/pemakaian-kendaraan/indexByKeuangan.php
+1
-1
indexByPegawai.php
...modules/ubux/views/pemakaian-kendaraan/indexByPegawai.php
+7
-7
indexByPribadi.php
...modules/ubux/views/pemakaian-kendaraan/indexByPribadi.php
+5
-5
indexBySekretarisRektorat.php
...x/views/pemakaian-kendaraan/indexBySekretarisRektorat.php
+5
-5
indexByWr2.php
...end/modules/ubux/views/pemakaian-kendaraan/indexByWr2.php
+1
-1
viewByHrd.php
backend/modules/ubux/views/pemakaian-kendaraan/viewByHrd.php
+2
-2
viewByKabiroKsd.php
...odules/ubux/views/pemakaian-kendaraan/viewByKabiroKsd.php
+2
-2
viewByKeuangan.php
...modules/ubux/views/pemakaian-kendaraan/viewByKeuangan.php
+2
-2
viewByPegawai.php
.../modules/ubux/views/pemakaian-kendaraan/viewByPegawai.php
+6
-6
viewByPegawaiPdf.php
...dules/ubux/views/pemakaian-kendaraan/viewByPegawaiPdf.php
+2
-2
viewByPribadi.php
.../modules/ubux/views/pemakaian-kendaraan/viewByPribadi.php
+6
-6
viewByPribadiPdf.php
...dules/ubux/views/pemakaian-kendaraan/viewByPribadiPdf.php
+1
-1
viewBySekretarisRektorat.php
...ux/views/pemakaian-kendaraan/viewBySekretarisRektorat.php
+5
-5
viewByWr2.php
backend/modules/ubux/views/pemakaian-kendaraan/viewByWr2.php
+2
-2
_form.php
backend/modules/ubux/views/supir/_form.php
+15
-3
add.php
backend/modules/ubux/views/supir/add.php
+0
-0
edit.php
backend/modules/ubux/views/supir/edit.php
+0
-0
index.php
backend/modules/ubux/views/supir/index.php
+3
-3
view.php
backend/modules/ubux/views/supir/view.php
+2
-2
No files found.
backend/modules/ubux/controllers/DefaultController.php
deleted
100644 → 0
View file @
e2653d07
<?php
namespace
backend\modules\ubux\controllers
;
use
yii\web\Controller
;
/**
* Default controller for the `ubux` module
*/
class
DefaultController
extends
Controller
{
/**
* Renders the index view for the module
* @return string
*/
public
function
actionIndex
()
{
return
$this
->
render
(
'index'
);
}
}
backend/modules/ubux/controllers/KendaraanController.php
View file @
0a7c2d1d
...
@@ -65,14 +65,14 @@ class KendaraanController extends Controller
...
@@ -65,14 +65,14 @@ class KendaraanController extends Controller
* If creation is successful, the browser will be redirected to the 'view' page.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
* @return mixed
*/
*/
public
function
action
Create
()
public
function
action
Add
()
{
{
$model
=
new
Kendaraan
();
$model
=
new
Kendaraan
();
if
(
$model
->
load
(
Yii
::
$app
->
request
->
post
())
&&
$model
->
save
())
{
if
(
$model
->
load
(
Yii
::
$app
->
request
->
post
())
&&
$model
->
save
())
{
return
$this
->
redirect
([
'view'
,
'id'
=>
$model
->
kendaraan_id
]);
return
$this
->
redirect
([
'view'
,
'id'
=>
$model
->
kendaraan_id
]);
}
else
{
}
else
{
return
$this
->
render
(
'
create
'
,
[
return
$this
->
render
(
'
add
'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
]);
]);
}
}
...
@@ -84,14 +84,14 @@ class KendaraanController extends Controller
...
@@ -84,14 +84,14 @@ class KendaraanController extends Controller
* @param integer $id
* @param integer $id
* @return mixed
* @return mixed
*/
*/
public
function
action
Update
(
$id
)
public
function
action
Edit
(
$id
)
{
{
$model
=
$this
->
findModel
(
$id
);
$model
=
$this
->
findModel
(
$id
);
if
(
$model
->
load
(
Yii
::
$app
->
request
->
post
())
&&
$model
->
save
())
{
if
(
$model
->
load
(
Yii
::
$app
->
request
->
post
())
&&
$model
->
save
())
{
return
$this
->
redirect
([
'view'
,
'id'
=>
$model
->
kendaraan_id
]);
return
$this
->
redirect
([
'view'
,
'id'
=>
$model
->
kendaraan_id
]);
}
else
{
}
else
{
return
$this
->
render
(
'
update
'
,
[
return
$this
->
render
(
'
edit
'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
]);
]);
}
}
...
@@ -103,7 +103,7 @@ class KendaraanController extends Controller
...
@@ -103,7 +103,7 @@ class KendaraanController extends Controller
* @param integer $id
* @param integer $id
* @return mixed
* @return mixed
*/
*/
public
function
actionDel
ete
(
$id
)
public
function
actionDel
(
$id
)
{
{
$this
->
findModel
(
$id
)
->
softDelete
();
$this
->
findModel
(
$id
)
->
softDelete
();
...
@@ -119,10 +119,7 @@ class KendaraanController extends Controller
...
@@ -119,10 +119,7 @@ class KendaraanController extends Controller
*/
*/
protected
function
findModel
(
$id
)
protected
function
findModel
(
$id
)
{
{
if
((
$model
=
Kendaraan
::
find
()
->
where
([
if
((
$model
=
Kendaraan
::
findOne
(
$id
)))
{
'kendaraan_id'
=>
$id
,
'deleted'
=>
0
,
])
->
one
())
!==
null
)
{
return
$model
;
return
$model
;
}
else
{
}
else
{
throw
new
NotFoundHttpException
(
'The requested page does not exist.'
);
throw
new
NotFoundHttpException
(
'The requested page does not exist.'
);
...
...
backend/modules/ubux/controllers/LaporanPemakaianKendaraanController.php
View file @
0a7c2d1d
...
@@ -65,14 +65,14 @@ class LaporanPemakaianKendaraanController extends Controller
...
@@ -65,14 +65,14 @@ class LaporanPemakaianKendaraanController extends Controller
* If creation is successful, the browser will be redirected to the 'view' page.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
* @return mixed
*/
*/
public
function
action
Create
()
public
function
action
Add
()
{
{
$model
=
new
LaporanPemakaianKendaraan
();
$model
=
new
LaporanPemakaianKendaraan
();
if
(
$model
->
load
(
Yii
::
$app
->
request
->
post
())
&&
$model
->
save
())
{
if
(
$model
->
load
(
Yii
::
$app
->
request
->
post
())
&&
$model
->
save
())
{
return
$this
->
redirect
([
'view'
,
'id'
=>
$model
->
laporan_pemakaian_kendaraan_id
]);
return
$this
->
redirect
([
'view'
,
'id'
=>
$model
->
laporan_pemakaian_kendaraan_id
]);
}
else
{
}
else
{
return
$this
->
render
(
'
create
'
,
[
return
$this
->
render
(
'
add
'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
]);
]);
}
}
...
@@ -84,14 +84,14 @@ class LaporanPemakaianKendaraanController extends Controller
...
@@ -84,14 +84,14 @@ class LaporanPemakaianKendaraanController extends Controller
* @param integer $id
* @param integer $id
* @return mixed
* @return mixed
*/
*/
public
function
action
Update
(
$id
)
public
function
action
Edit
(
$id
)
{
{
$model
=
$this
->
findModel
(
$id
);
$model
=
$this
->
findModel
(
$id
);
if
(
$model
->
load
(
Yii
::
$app
->
request
->
post
())
&&
$model
->
save
())
{
if
(
$model
->
load
(
Yii
::
$app
->
request
->
post
())
&&
$model
->
save
())
{
return
$this
->
redirect
([
'view'
,
'id'
=>
$model
->
laporan_pemakaian_kendaraan_id
]);
return
$this
->
redirect
([
'view'
,
'id'
=>
$model
->
laporan_pemakaian_kendaraan_id
]);
}
else
{
}
else
{
return
$this
->
render
(
'
update
'
,
[
return
$this
->
render
(
'
edit
'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
]);
]);
}
}
...
@@ -103,7 +103,7 @@ class LaporanPemakaianKendaraanController extends Controller
...
@@ -103,7 +103,7 @@ class LaporanPemakaianKendaraanController extends Controller
* @param integer $id
* @param integer $id
* @return mixed
* @return mixed
*/
*/
public
function
actionDel
ete
(
$id
)
public
function
actionDel
(
$id
)
{
{
$this
->
findModel
(
$id
)
->
softDelete
();
$this
->
findModel
(
$id
)
->
softDelete
();
...
@@ -119,10 +119,7 @@ class LaporanPemakaianKendaraanController extends Controller
...
@@ -119,10 +119,7 @@ class LaporanPemakaianKendaraanController extends Controller
*/
*/
protected
function
findModel
(
$id
)
protected
function
findModel
(
$id
)
{
{
if
((
$model
=
LaporanPemakaianKendaraan
::
find
()
->
where
([
if
((
$model
=
LaporanPemakaianKendaraan
::
findOne
(
$id
))
!==
null
)
{
'laporan_pemakaian_kendaraan_id'
=>
$id
,
'deleted'
=>
0
,
])
->
one
())
!==
null
)
{
return
$model
;
return
$model
;
}
else
{
}
else
{
throw
new
NotFoundHttpException
(
'The requested page does not exist.'
);
throw
new
NotFoundHttpException
(
'The requested page does not exist.'
);
...
...
backend/modules/ubux/controllers/PemakaianKendaraanController.php
View file @
0a7c2d1d
This diff is collapsed.
Click to expand it.
backend/modules/ubux/controllers/PemakaianKendaraanMahasiswaController.php
View file @
0a7c2d1d
...
@@ -19,23 +19,23 @@ use backend\modules\ubux\models\PemakaianKendaraan;
...
@@ -19,23 +19,23 @@ use backend\modules\ubux\models\PemakaianKendaraan;
*/
*/
class
PemakaianKendaraanMahasiswaController
extends
Controller
class
PemakaianKendaraanMahasiswaController
extends
Controller
{
{
//
public function behaviors()
public
function
behaviors
()
//
{
{
//
return [
return
[
//
//TODO: crud controller actions are bypassed by default, set the appropriate privilege
//TODO: crud controller actions are bypassed by default, set the appropriate privilege
// 'privilege' => [
// 'privilege' => [
// 'class' => \Yii::$app->privilegeControl->getAppPrivilegeControlClass(),
// 'class' => \Yii::$app->privilegeControl->getAppPrivilegeControlClass(),
// 'skipActions' => ['*'],
// 'skipActions' => ['*'],
// ],
// ],
//
//
'verbs' => [
'verbs'
=>
[
//
'class' => VerbFilter::className(),
'class'
=>
VerbFilter
::
className
(),
//
'actions' => [
'actions'
=>
[
//
'delete' => ['post'],
'delete'
=>
[
'post'
],
//
],
],
//
],
],
//
];
];
//
}
}
/**
/**
* Lists all PemakaianKendaraanMahasiswa models.
* Lists all PemakaianKendaraanMahasiswa models.
...
@@ -49,8 +49,8 @@ class PemakaianKendaraanMahasiswaController extends Controller
...
@@ -49,8 +49,8 @@ class PemakaianKendaraanMahasiswaController extends Controller
{
{
$searchModel
=
new
PemakaianKendaraanMahasiswaSearch
();
$searchModel
=
new
PemakaianKendaraanMahasiswaSearch
();
$dataProvider
=
new
ActiveDataProvider
([
$dataProvider
=
new
ActiveDataProvider
([
'query'
=>
PemakaianKendaraanMahasiswa
::
find
()
->
where
([
'dim_id'
=>
$this
->
dim_id
]),
'query'
=>
PemakaianKendaraanMahasiswa
::
find
()
->
where
([
'dim_id'
=>
$this
->
dim_id
])
->
andWhere
(
'deleted!=1'
)
,
'sort'
=>
[
'defaultOrder'
=>
[
'
dim_id'
=>
SORT_ASC
,
'
updated_at'
=>
SORT_DESC
,
'created_at'
=>
SORT_DESC
]],
'sort'
=>
[
'defaultOrder'
=>
[
'updated_at'
=>
SORT_DESC
,
'created_at'
=>
SORT_DESC
]],
]);
]);
return
$this
->
render
(
'index'
,
[
return
$this
->
render
(
'index'
,
[
...
@@ -83,7 +83,7 @@ class PemakaianKendaraanMahasiswaController extends Controller
...
@@ -83,7 +83,7 @@ class PemakaianKendaraanMahasiswaController extends Controller
* If creation is successful, the browser will be redirected to the 'view' page.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
* @return mixed
*/
*/
public
function
action
Create
()
public
function
action
Add
()
{
{
$model
=
new
PemakaianKendaraanMahasiswa
();
$model
=
new
PemakaianKendaraanMahasiswa
();
...
@@ -118,7 +118,7 @@ class PemakaianKendaraanMahasiswaController extends Controller
...
@@ -118,7 +118,7 @@ class PemakaianKendaraanMahasiswaController extends Controller
return
$this
->
redirect
([
'view'
,
'id'
=>
$model
->
transaksi_kendaraan_id
]);
return
$this
->
redirect
([
'view'
,
'id'
=>
$model
->
transaksi_kendaraan_id
]);
}
else
{
}
else
{
return
$this
->
render
(
'
create
'
,
[
return
$this
->
render
(
'
add
'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
]);
]);
}
}
...
@@ -130,14 +130,14 @@ class PemakaianKendaraanMahasiswaController extends Controller
...
@@ -130,14 +130,14 @@ class PemakaianKendaraanMahasiswaController extends Controller
* @param integer $id
* @param integer $id
* @return mixed
* @return mixed
*/
*/
public
function
action
Update
(
$id
)
public
function
action
Edit
(
$id
)
{
{
$model
=
$this
->
findModel
(
$id
);
$model
=
$this
->
findModel
(
$id
);
if
(
$model
->
status_request_kemahasiswaan
==
2
||
$model
->
status_request_kemahasiswaan
==
3
){
if
(
$model
->
status_request_kemahasiswaan
==
2
||
$model
->
status_request_kemahasiswaan
==
3
){
$searchModel
=
new
PemakaianKendaraanMahasiswaSearch
();
$searchModel
=
new
PemakaianKendaraanMahasiswaSearch
();
$dataProvider
=
new
ActiveDataProvider
([
$dataProvider
=
new
ActiveDataProvider
([
'query'
=>
PemakaianKendaraanMahasiswa
::
find
()
->
where
([
'dim_id'
=>
$this
->
dim_id
]),
'query'
=>
PemakaianKendaraanMahasiswa
::
find
()
->
where
([
'dim_id'
=>
$this
->
dim_id
])
->
andWhere
(
'deleted!=1'
)
,
'sort'
=>
[
'defaultOrder'
=>
[
'
dim_id'
=>
SORT_ASC
,
'
updated_at'
=>
SORT_DESC
,
'created_at'
=>
SORT_DESC
]],
'sort'
=>
[
'defaultOrder'
=>
[
'updated_at'
=>
SORT_DESC
,
'created_at'
=>
SORT_DESC
]],
]);
]);
Yii
::
$app
->
messenger
->
addErrorFlash
(
"Tidak bisa mengubah, Sudah di setujui/ditolak Kemahasiswaan"
);
Yii
::
$app
->
messenger
->
addErrorFlash
(
"Tidak bisa mengubah, Sudah di setujui/ditolak Kemahasiswaan"
);
return
$this
->
render
(
'index'
,
[
return
$this
->
render
(
'index'
,
[
...
@@ -148,7 +148,7 @@ class PemakaianKendaraanMahasiswaController extends Controller
...
@@ -148,7 +148,7 @@ class PemakaianKendaraanMahasiswaController extends Controller
if
(
$model
->
load
(
Yii
::
$app
->
request
->
post
())
&&
$model
->
save
())
{
if
(
$model
->
load
(
Yii
::
$app
->
request
->
post
())
&&
$model
->
save
())
{
return
$this
->
redirect
([
'view'
,
'id'
=>
$model
->
transaksi_kendaraan_id
]);
return
$this
->
redirect
([
'view'
,
'id'
=>
$model
->
transaksi_kendaraan_id
]);
}
else
{
}
else
{
return
$this
->
render
(
'
update
'
,
[
return
$this
->
render
(
'
edit
'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
]);
]);
}
}
...
@@ -160,14 +160,14 @@ class PemakaianKendaraanMahasiswaController extends Controller
...
@@ -160,14 +160,14 @@ class PemakaianKendaraanMahasiswaController extends Controller
* @param integer $id
* @param integer $id
* @return mixed
* @return mixed
*/
*/
public
function
actionDel
ete
(
$id
)
public
function
actionDel
(
$id
)
{
{
$model
=
$this
->
findModel
(
$id
);
$model
=
$this
->
findModel
(
$id
);
if
(
$model
->
status_request_kemahasiswaan
==
2
||
$model
->
status_request_kemahasiswaan
==
3
){
if
(
$model
->
status_request_kemahasiswaan
==
2
||
$model
->
status_request_kemahasiswaan
==
3
){
$searchModel
=
new
PemakaianKendaraanMahasiswaSearch
();
$searchModel
=
new
PemakaianKendaraanMahasiswaSearch
();
$dataProvider
=
new
ActiveDataProvider
([
$dataProvider
=
new
ActiveDataProvider
([
'query'
=>
PemakaianKendaraanMahasiswa
::
find
()
->
where
([
'dim_id'
=>
$this
->
dim_id
]),
'query'
=>
PemakaianKendaraanMahasiswa
::
find
()
->
where
([
'dim_id'
=>
$this
->
dim_id
])
->
andWhere
(
'deleted!=1'
)
,
'sort'
=>
[
'defaultOrder'
=>
[
'
transaksi_kendaraan_id'
=>
SORT_ASC
,
'
updated_at'
=>
SORT_DESC
,
'created_at'
=>
SORT_DESC
]],
'sort'
=>
[
'defaultOrder'
=>
[
'updated_at'
=>
SORT_DESC
,
'created_at'
=>
SORT_DESC
]],
]);
]);
Yii
::
$app
->
messenger
->
addErrorFlash
(
"Tidak bisa menghapus, Sudah di setujui Kemahasiswaan"
);
Yii
::
$app
->
messenger
->
addErrorFlash
(
"Tidak bisa menghapus, Sudah di setujui Kemahasiswaan"
);
return
$this
->
render
(
'index'
,
[
return
$this
->
render
(
'index'
,
[
...
@@ -175,7 +175,7 @@ class PemakaianKendaraanMahasiswaController extends Controller
...
@@ -175,7 +175,7 @@ class PemakaianKendaraanMahasiswaController extends Controller
'dataProvider'
=>
$dataProvider
,
'dataProvider'
=>
$dataProvider
,
]);
]);
}
}
$this
->
findModel
(
$id
)
->
d
elete
();
$this
->
findModel
(
$id
)
->
softD
elete
();
return
$this
->
redirect
([
'index'
]);
return
$this
->
redirect
([
'index'
]);
}
}
...
@@ -189,10 +189,7 @@ class PemakaianKendaraanMahasiswaController extends Controller
...
@@ -189,10 +189,7 @@ class PemakaianKendaraanMahasiswaController extends Controller
*/
*/
protected
function
findModel
(
$id
)
protected
function
findModel
(
$id
)
{
{
if
((
$model
=
PemakaianKendaraanMahasiswa
::
find
()
->
where
([
if
((
$model
=
PemakaianKendaraanMahasiswa
::
findOne
(
$id
))
!==
null
)
{
'transaksi_kendaraan_id'
=>
$id
,
'deleted'
=>
0
,
])
->
one
())
!==
null
)
{
return
$model
;
return
$model
;
}
else
{
}
else
{
throw
new
NotFoundHttpException
(
'The requested page does not exist.'
);
throw
new
NotFoundHttpException
(
'The requested page does not exist.'
);
...
@@ -244,14 +241,14 @@ class PemakaianKendaraanMahasiswaController extends Controller
...
@@ -244,14 +241,14 @@ class PemakaianKendaraanMahasiswaController extends Controller
$model
=
$this
->
findModel
(
$id
);
$model
=
$this
->
findModel
(
$id
);
if
(
$model
->
status_request_kemahasiswaan
==
1
){
if
(
$model
->
status_request_kemahasiswaan
==
1
){
$modelBaru
=
new
PemakaianKendaraan
();
$modelBaru
=
new
PemakaianKendaraan
();
$modelBaru
->
transaksi_kendaraan_m
ahasiswa
_id
=
$model
->
transaksi_kendaraan_id
;
$modelBaru
->
transaksi_kendaraan_m
hs
_id
=
$model
->
transaksi_kendaraan_id
;
$modelBaru
->
nama_perequest_kendaraan
=
$model
->
mahasiswa
->
nama
;
$modelBaru
->
nama_perequest_kendaraan
=
$model
->
mahasiswa
->
nama
;
$modelBaru
->
desc_penggunaan_kendaraan
=
$model
->
desc_penggunaan_kendaraan
;
$modelBaru
->
desc_penggunaan_kendaraan
=
$model
->
desc_penggunaan_kendaraan
;
$modelBaru
->
tujuan
=
$model
->
tujuan
;
$modelBaru
->
tujuan
=
$model
->
tujuan
;
$modelBaru
->
jumlah_penumpang_kendaraan
=
$model
->
jumlah_penumpang_kendaraan
;
$modelBaru
->
jumlah_penumpang_kendaraan
=
$model
->
jumlah_penumpang_kendaraan
;
$modelBaru
->
rencana_waktu_keberangkatan
=
$model
->
rencana_waktu_keberangkatan
;
$modelBaru
->
rencana_waktu_keberangkatan
=
$model
->
rencana_waktu_keberangkatan
;
$modelBaru
->
rencana_waktu_kembali
=
$model
->
rencana_waktu_kembali
;
$modelBaru
->
rencana_waktu_kembali
=
$model
->
rencana_waktu_kembali
;
$modelBaru
->
status_req
uest_seker
taris_rektorat
=
1
;
$modelBaru
->
status_req
_sekre
taris_rektorat
=
1
;
$modelBaru
->
status_request_kemahasiswaan
=
$model
->
status_request_kemahasiswaan
;
$modelBaru
->
status_request_kemahasiswaan
=
$model
->
status_request_kemahasiswaan
;
$modelBaru
->
role
=
1
;
$modelBaru
->
role
=
1
;
$modelBaru
->
proposal
=
$model
->
proposal
;
$modelBaru
->
proposal
=
$model
->
proposal
;
...
...
backend/modules/ubux/controllers/SupirController.php
View file @
0a7c2d1d
...
@@ -65,7 +65,7 @@ class SupirController extends Controller
...
@@ -65,7 +65,7 @@ class SupirController extends Controller
* If creation is successful, the browser will be redirected to the 'view' page.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
* @return mixed
*/
*/
public
function
action
Create
()
public
function
action
Add
()
{
{
$model
=
new
Supir
();
$model
=
new
Supir
();
...
@@ -77,7 +77,7 @@ class SupirController extends Controller
...
@@ -77,7 +77,7 @@ class SupirController extends Controller
$model
->
save
();
$model
->
save
();
return
$this
->
redirect
([
'view'
,
'id'
=>
$model
->
supir_id
]);
return
$this
->
redirect
([
'view'
,
'id'
=>
$model
->
supir_id
]);
}
else
{
}
else
{
return
$this
->
render
(
'
create
'
,
[
return
$this
->
render
(
'
add
'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
]);
]);
}
}
...
@@ -89,7 +89,7 @@ class SupirController extends Controller
...
@@ -89,7 +89,7 @@ class SupirController extends Controller
* @param integer $id
* @param integer $id
* @return mixed
* @return mixed
*/
*/
public
function
action
Update
(
$id
)
public
function
action
Edit
(
$id
)
{
{
$model
=
$this
->
findModel
(
$id
);
$model
=
$this
->
findModel
(
$id
);
...
@@ -108,7 +108,7 @@ class SupirController extends Controller
...
@@ -108,7 +108,7 @@ class SupirController extends Controller
* @param integer $id
* @param integer $id
* @return mixed
* @return mixed
*/
*/
public
function
actionDel
ete
(
$id
)
public
function
actionDel
(
$id
)
{
{
$this
->
findModel
(
$id
)
->
softDelete
();
$this
->
findModel
(
$id
)
->
softDelete
();
...
@@ -124,10 +124,7 @@ class SupirController extends Controller
...
@@ -124,10 +124,7 @@ class SupirController extends Controller
*/
*/
protected
function
findModel
(
$id
)
protected
function
findModel
(
$id
)
{
{
if
((
$model
=
Supir
::
find
()
->
where
([
if
(
$model
=
Supir
::
findOne
(
$id
))
{
'supir_id'
=>
$id
,
'deleted'
=>
0
,
]))
!==
null
)
{
return
$model
;
return
$model
;
}
else
{
}
else
{
throw
new
NotFoundHttpException
(
'The requested page does not exist.'
);
throw
new
NotFoundHttpException
(
'The requested page does not exist.'
);
...
...
backend/modules/ubux/models/LaporanPemakaianKendaraan.php
View file @
0a7c2d1d
...
@@ -13,7 +13,7 @@ use common\behaviors\DeleteBehavior;
...
@@ -13,7 +13,7 @@ use common\behaviors\DeleteBehavior;
*
*
* @property integer $laporan_pemakaian_kendaraan_id
* @property integer $laporan_pemakaian_kendaraan_id
* @property string $tujuan
* @property string $tujuan
* @property string $des
kripsi
_penumpang
* @property string $des
c
_penumpang
* @property integer $jumlah_penumpang
* @property integer $jumlah_penumpang
* @property string $keperluan
* @property string $keperluan
* @property string $waktu_keberangkatan
* @property string $waktu_keberangkatan
...
@@ -66,10 +66,10 @@ class LaporanPemakaianKendaraan extends \yii\db\ActiveRecord
...
@@ -66,10 +66,10 @@ class LaporanPemakaianKendaraan extends \yii\db\ActiveRecord
public
function
rules
()
public
function
rules
()
{
{
return
[
return
[
[[
'tujuan'
,
'des
kripsi
_penumpang'
,
'jumlah_penumpang'
,
'keperluan'
,
'waktu_keberangkatan'
,
'waktu_tiba'
],
'required'
],
[[
'tujuan'
,
'des
c
_penumpang'
,
'jumlah_penumpang'
,
'keperluan'
,
'waktu_keberangkatan'
,
'waktu_tiba'
],
'required'
],
[[
'jumlah_penumpang'
,
'deleted'
,
'kendaraan_id'
,
'supir_id'
],
'integer'
],
[[
'jumlah_penumpang'
,
'deleted'
,
'kendaraan_id'
,
'supir_id'
],
'integer'
],
[[
'waktu_keberangkatan'
,
'waktu_tiba'
,
'deleted_at'
,
'created_at'
,
'updated_at'
],
'safe'
],
[[
'waktu_keberangkatan'
,
'waktu_tiba'
,
'deleted_at'
,
'created_at'
,
'updated_at'
],
'safe'
],
[[
'tujuan'
,
'des
kripsi_penumpang'
,
'keperluan'
],
'string'
,
'max'
=>
45
],
[[
'tujuan'
,
'des
c_penumpang'
,
'keperluan'
],
'string'
],
[[
'deleted_by'
,
'created_by'
,
'updated_by'
],
'string'
,
'max'
=>
32
],
[[
'deleted_by'
,
'created_by'
,
'updated_by'
],
'string'
,
'max'
=>
32
],
[[
'kendaraan_id'
],
'exist'
,
'skipOnError'
=>
true
,
'targetClass'
=>
Kendaraan
::
className
(),
'targetAttribute'
=>
[
'kendaraan_id'
=>
'kendaraan_id'
]],
[[
'kendaraan_id'
],
'exist'
,
'skipOnError'
=>
true
,
'targetClass'
=>
Kendaraan
::
className
(),
'targetAttribute'
=>
[
'kendaraan_id'
=>
'kendaraan_id'
]],
[[
'supir_id'
],
'exist'
,
'skipOnError'
=>
true
,
'targetClass'
=>
Supir
::
className
(),
'targetAttribute'
=>
[
'supir_id'
=>
'supir_id'
]]
[[
'supir_id'
],
'exist'
,
'skipOnError'
=>
true
,
'targetClass'
=>
Supir
::
className
(),
'targetAttribute'
=>
[
'supir_id'
=>
'supir_id'
]]
...
@@ -84,7 +84,7 @@ class LaporanPemakaianKendaraan extends \yii\db\ActiveRecord
...
@@ -84,7 +84,7 @@ class LaporanPemakaianKendaraan extends \yii\db\ActiveRecord
return
[
return
[
'laporan_pemakaian_kendaraan_id'
=>
'Laporan Pemakaian Kendaraan ID'
,
'laporan_pemakaian_kendaraan_id'
=>
'Laporan Pemakaian Kendaraan ID'
,
'tujuan'
=>
'Tujuan'
,
'tujuan'
=>
'Tujuan'
,
'des
kripsi
_penumpang'
=>
'Deskripsi Penumpang'
,
'des
c
_penumpang'
=>
'Deskripsi Penumpang'
,
'jumlah_penumpang'
=>
'Jumlah Penumpang'
,
'jumlah_penumpang'
=>
'Jumlah Penumpang'
,
'keperluan'
=>
'Keperluan'
,
'keperluan'
=>
'Keperluan'
,
'waktu_keberangkatan'
=>
'Waktu Keberangkatan'
,
'waktu_keberangkatan'
=>
'Waktu Keberangkatan'
,
...
...
backend/modules/ubux/models/PemakaianKendaraan.php
View file @
0a7c2d1d
...
@@ -12,14 +12,15 @@ use common\behaviors\DeleteBehavior;
...
@@ -12,14 +12,15 @@ use common\behaviors\DeleteBehavior;
* This is the model class for table "ubux_pemakaian_kendaraan".
* This is the model class for table "ubux_pemakaian_kendaraan".
*
*
* @property integer $transaksi_kendaraan_id
* @property integer $transaksi_kendaraan_id
* @property integer $transaksi_kendaraan_mahasiswa_id
* @property integer $transaksi_kendaraan_mhs_id
* @property integer $pegawai_id
* @property string $nama_perequest_kendaraan
* @property string $nama_perequest_kendaraan
* @property string $desc_penggunaan_kendaraan
* @property string $desc_penggunaan_kendaraan
* @property string $tujuan
* @property string $tujuan
* @property integer $jumlah_penumpang_kendaraan
* @property integer $jumlah_penumpang_kendaraan
* @property string $rencana_waktu_keberangkatan
* @property string $rencana_waktu_keberangkatan
* @property string $rencana_waktu_kembali
* @property string $rencana_waktu_kembali
* @property string $status_req
uest_seker
taris_rektorat
* @property string $status_req
_sekre
taris_rektorat
* @property string $status_request_kemahasiswaan
* @property string $status_request_kemahasiswaan
* @property string $role
* @property string $role
* @property string $no_telepon
* @property string $no_telepon
...
@@ -34,20 +35,21 @@ use common\behaviors\DeleteBehavior;
...
@@ -34,20 +35,21 @@ use common\behaviors\DeleteBehavior;
* @property integer $kendaraan_id
* @property integer $kendaraan_id
* @property integer $supir_id
* @property integer $supir_id
* @property string $no_hp_supir
* @property string $no_hp_supir
* @property
string
$status_request_kabiro_KSD
* @property
integer
$status_request_kabiro_KSD
* @property
string
$status_request_hrd
* @property
integer
$status_request_hrd
* @property
string
$status_request_keuangan
* @property
integer
$status_request_keuangan
* @property
string
$status_request_wr2
* @property
integer
$status_request_wr2
*
*
* @property Supir $supir
* @property Supir $supir
* @property Kendaraan $kendaraan
* @property Kendaraan $kendaraan
* @property
Referesi $statusRequestSeker
tarisRektorat
* @property
StatusRequest $statusRequestSekre
tarisRektorat
* @property
Referesi
$statusRequestKemahasiswaan
* @property
StatusRequest
$statusRequestKemahasiswaan
* @property
Referesi
$statusRequestKabiroKSD
* @property
StatusRequest
$statusRequestKabiroKSD
* @property
Referesi
$statusRequestHRD
* @property
StatusRequest
$statusRequestHRD
* @property
Referesi
$statusRequestKeuangan
* @property
StatusRequest
$statusRequestKeuangan
* @property
Referesi
$statusRequestWr2
* @property
StatusRequest
$statusRequestWr2
* @property JenisKeperluan $jenisKeperluan
* @property JenisKeperluan $jenisKeperluan
* @property HrdxPegawai $pegawai
*/
*/
class
PemakaianKendaraan
extends
\yii\db\ActiveRecord
class
PemakaianKendaraan
extends
\yii\db\ActiveRecord
{
{
...
@@ -84,8 +86,8 @@ class PemakaianKendaraan extends \yii\db\ActiveRecord
...
@@ -84,8 +86,8 @@ class PemakaianKendaraan extends \yii\db\ActiveRecord
public
function
rules
()
public
function
rules
()
{
{
return
[
return
[
[[
'
nama_perequest_kendaraan'
,
'
desc_penggunaan_kendaraan'
,
'tujuan'
,
'rencana_waktu_keberangkatan'
,
'rencana_waktu_kembali'
,
'no_telepon'
],
'required'
],
[[
'desc_penggunaan_kendaraan'
,
'tujuan'
,
'rencana_waktu_keberangkatan'
,
'rencana_waktu_kembali'
,
'no_telepon'
],
'required'
],
[[
'status_req
uest_sekertaris_rektorat'
,
'status_request_kemahasiswaan'
,
'jumlah_penumpang_kendaraan'
,
'deleted'
,
'kendaraan_id'
,
'supir_id'
,
'transaksi_kendaraan_mahasiswa_id'
,
'status_request_kabiro_KSD'
,
'status_request_hrd'
,
'status_request_keuangan'
,
'status_request_wr2'
,
'role
'
],
'integer'
],
[[
'status_req
_sekretaris_rektorat'
,
'status_request_kemahasiswaan'
,
'jumlah_penumpang_kendaraan'
,
'deleted'
,
'kendaraan_id'
,
'supir_id'
,
'transaksi_kendaraan_mhs_id'
,
'status_request_kabiro_KSD'
,
'status_request_hrd'
,
'status_request_keuangan'
,
'status_request_wr2'
,
'role'
,
'pegawai_id
'
],
'integer'
],
[[
'rencana_waktu_keberangkatan'
,
'rencana_waktu_kembali'
,
'deleted_at'
,
'created_at'
,
'updated_at'
],
'safe'
],
[[
'rencana_waktu_keberangkatan'
,
'rencana_waktu_kembali'
,
'deleted_at'
,
'created_at'
,
'updated_at'
],
'safe'
],
[[
'file'
],
'file'
],
[[
'file'
],
'file'
],
[[
'nama_perequest_kendaraan'
,],
'string'
,
'max'
=>
45
],
[[
'nama_perequest_kendaraan'
,],
'string'
,
'max'
=>
45
],
...
@@ -95,7 +97,8 @@ class PemakaianKendaraan extends \yii\db\ActiveRecord
...
@@ -95,7 +97,8 @@ class PemakaianKendaraan extends \yii\db\ActiveRecord
[[
'no_telepon'
,
'deleted_by'
,
'created_by'
,
'updated_by'
],
'string'
,
'max'
=>
32
],
[[
'no_telepon'
,
'deleted_by'
,
'created_by'
,
'updated_by'
],
'string'
,
'max'
=>
32
],
[[
'no_hp_supir'
],
'string'
,
'max'
=>
300
],
[[
'no_hp_supir'
],
'string'
,
'max'
=>
300
],
[[
'supir_id'
],
'exist'
,
'skipOnError'
=>
true
,
'targetClass'
=>
Supir
::
className
(),
'targetAttribute'
=>
[
'supir_id'
=>
'supir_id'
]],
[[
'supir_id'
],
'exist'
,
'skipOnError'
=>
true
,
'targetClass'
=>
Supir
::
className
(),
'targetAttribute'
=>
[
'supir_id'
=>
'supir_id'
]],
[[
'kendaraan_id'
],
'exist'
,
'skipOnError'
=>
true
,
'targetClass'
=>
Kendaraan
::
className
(),
'targetAttribute'
=>
[
'kendaraan_id'
=>
'kendaraan_id'
]]
[[
'kendaraan_id'
],
'exist'
,
'skipOnError'
=>
true
,
'targetClass'
=>
Kendaraan
::
className
(),
'targetAttribute'
=>
[
'kendaraan_id'
=>
'kendaraan_id'
]],
[[
'pegawai_id'
],
'exist'
,
'skipOnError'
=>
true
,
'targetClass'
=>
Pegawai
::
className
(),
'targetAttribute'
=>
[
'pegawai_id'
=>
'pegawai_id'
]],
];
];
}
}
...
@@ -106,13 +109,14 @@ class PemakaianKendaraan extends \yii\db\ActiveRecord
...
@@ -106,13 +109,14 @@ class PemakaianKendaraan extends \yii\db\ActiveRecord
{
{
return
[
return
[
'transaksi_kendaraan_id'
=>
'Transaksi Kendaraan ID'
,
'transaksi_kendaraan_id'
=>
'Transaksi Kendaraan ID'
,
'pegawai_id'
=>
'Pegawai ID'
,
'nama_perequest_kendaraan'
=>
'Nama'
,
'nama_perequest_kendaraan'
=>
'Nama'
,
'desc_penggunaan_kendaraan'
=>
'Keperluan'
,
'desc_penggunaan_kendaraan'
=>
'Keperluan'
,
'tujuan'
=>
'Tujuan'
,
'tujuan'
=>
'Tujuan'
,
'jumlah_penumpang_kendaraan'
=>
'Jumlah Penumpang'
,
'jumlah_penumpang_kendaraan'
=>
'Jumlah Penumpang'
,
'rencana_waktu_keberangkatan'
=>
'Waktu Keberangkatan'
,
'rencana_waktu_keberangkatan'
=>
'Waktu Keberangkatan'
,
'rencana_waktu_kembali'
=>
'Waktu Tiba'
,
'rencana_waktu_kembali'
=>
'Waktu Tiba'
,
'status_req
uest_seker
taris_rektorat'
=>
'Status'
,
'status_req
_sekre
taris_rektorat'
=>
'Status'
,
'status_request_kemahasiswaan'
=>
'Status Pemintaan Kemahasiswaan'
,
'status_request_kemahasiswaan'
=>
'Status Pemintaan Kemahasiswaan'
,
'no_telepon'
=>
'No Telepon'
,
'no_telepon'
=>
'No Telepon'
,
'role'
=>
'Jenis Permintaan'
,
'role'
=>
'Jenis Permintaan'
,
...
@@ -132,7 +136,7 @@ class PemakaianKendaraan extends \yii\db\ActiveRecord
...
@@ -132,7 +136,7 @@ class PemakaianKendaraan extends \yii\db\ActiveRecord
'status_request_hrd'
=>
'Status Permintaan Hrd'
,
'status_request_hrd'
=>
'Status Permintaan Hrd'
,
'status_request_keuangan'
=>
'Status Permintaan Keuangan'
,
'status_request_keuangan'
=>
'Status Permintaan Keuangan'
,
'status_request_wr2'
=>
'Status Permintaan Wr2'
,
'status_request_wr2'
=>
'Status Permintaan Wr2'
,
'transaksi_kendaraan_m
ahasiswa
_id'
=>
'Transaksi Kendaraan Mahasiswa ID'
'transaksi_kendaraan_m
hs
_id'
=>
'Transaksi Kendaraan Mahasiswa ID'
];
];
}
}
...
@@ -155,39 +159,43 @@ class PemakaianKendaraan extends \yii\db\ActiveRecord
...
@@ -155,39 +159,43 @@ class PemakaianKendaraan extends \yii\db\ActiveRecord
/**
/**
* @return \yii\db\ActiveQuery
* @return \yii\db\ActiveQuery
*/
*/
public
function
getStatusRequestSek
er
tarisRektorat
()
public
function
getStatusRequestSek
re
tarisRektorat
()
{
{
return
$this
->
hasOne
(
Referesi
::
className
(),
[
'id'
=>
'status_request_seker
taris_rektorat'
]);
return
$this
->
hasOne
(
StatusRequest
::
className
(),
[
'id'
=>
'status_req_sekre
taris_rektorat'
]);
}
}
/**
/**
* @return \yii\db\ActiveQuery
* @return \yii\db\ActiveQuery
*/
*/
public
function
getStatusRequestKemahasiswaan
()
public
function
getStatusRequestKemahasiswaan
()
{
{
return
$this
->
hasOne
(
Referesi
::
className
(),
[
'id'
=>
'status_request_kemahasiswaan'
]);
return
$this
->
hasOne
(
StatusRequest
::
className
(),
[
'id'
=>
'status_request_kemahasiswaan'
]);
}
}
public
function
getStatusRequestKabiroKSD
()
public
function
getStatusRequestKabiroKSD
()
{
{
return
$this
->
hasOne
(
Referesi
::
className
(),
[
'id'
=>
'status_request_kabiro_KSD'
]);
return
$this
->
hasOne
(
StatusRequest
::
className
(),
[
'id'
=>
'status_request_kabiro_KSD'
]);
}
}
public
function
getStatusRequestHRD
()
public
function
getStatusRequestHRD
()
{
{
return
$this
->
hasOne
(
Referesi
::
className
(),
[
'id'
=>
'status_request_hrd'
]);
return
$this
->
hasOne
(
StatusRequest
::
className
(),
[
'id'
=>
'status_request_hrd'
]);
}
}
public
function
getStatusRequestKeuangan
()
public
function
getStatusRequestKeuangan
()
{
{
return
$this
->
hasOne
(
Referesi
::
className
(),
[
'id'
=>
'status_request_keuangan'
]);
return
$this
->
hasOne
(
StatusRequest
::
className
(),
[
'id'
=>
'status_request_keuangan'
]);
}
}
public
function
getStatusRequestWr2
()
public
function
getStatusRequestWr2
()
{
{
return
$this
->
hasOne
(
Referesi
::
className
(),
[
'id'
=>
'status_request_wr2'
]);
return
$this
->
hasOne
(
StatusRequest
::
className
(),
[
'id'
=>
'status_request_wr2'
]);
}
}
public
function
getJenisKeperluan
(){
public
function
getJenisKeperluan
(){
return
$this
->
hasOne
(
JenisKeperluan
::
className
(),
[
'id'
=>
'role'
]);
return
$this
->
hasOne
(
JenisKeperluan
::
className
(),
[
'id'
=>
'role'
]);
}
}
public
function
getPegawai
(){
return
$this
->
hasOne
(
Pegawai
::
className
(),
[
'pegawai_id'
=>
'pegawai_id'
]);
}
}
}
backend/modules/ubux/models/PemakaianKendaraanMahasiswa.php
View file @
0a7c2d1d
...
@@ -18,7 +18,7 @@ use common\behaviors\DeleteBehavior;
...
@@ -18,7 +18,7 @@ use common\behaviors\DeleteBehavior;
* @property integer $jumlah_penumpang_kendaraan
* @property integer $jumlah_penumpang_kendaraan
* @property string $rencana_waktu_keberangkatan
* @property string $rencana_waktu_keberangkatan
* @property string $rencana_waktu_kembali
* @property string $rencana_waktu_kembali
* @property integer $status_req
uest_seker
taris_rektorat
* @property integer $status_req
_sekre
taris_rektorat
* @property integer $status_request_kemahasiswaan
* @property integer $status_request_kemahasiswaan
* @property string $proposal
* @property string $proposal
* @property string $no_telepon
* @property string $no_telepon
...
@@ -37,8 +37,8 @@ use common\behaviors\DeleteBehavior;
...
@@ -37,8 +37,8 @@ use common\behaviors\DeleteBehavior;
* @property Supir $supir
* @property Supir $supir
* @property Kendaraan $kendaraan
* @property Kendaraan $kendaraan
* @property Dim $mahasiswa
* @property Dim $mahasiswa
* @property
Referesi $statusRequestSeker
tarisRektorat
* @property
StatusRequest $statusRequestSekre
tarisRektorat
* @property
Referesi
$statusRequestKemahasiswaan
* @property
StatusRequest
$statusRequestKemahasiswaan
*/
*/
class
PemakaianKendaraanMahasiswa
extends
\yii\db\ActiveRecord
class
PemakaianKendaraanMahasiswa
extends
\yii\db\ActiveRecord
{
{
...
@@ -76,7 +76,7 @@ class PemakaianKendaraanMahasiswa extends \yii\db\ActiveRecord
...
@@ -76,7 +76,7 @@ class PemakaianKendaraanMahasiswa extends \yii\db\ActiveRecord
{
{
return
[
return
[
[[
'desc_penggunaan_kendaraan'
,
'tujuan'
,
'rencana_waktu_keberangkatan'
,
'rencana_waktu_kembali'
,
'no_telepon'
],
'required'
],
[[
'desc_penggunaan_kendaraan'
,
'tujuan'
,
'rencana_waktu_keberangkatan'
,
'rencana_waktu_kembali'
,
'no_telepon'
],
'required'
],
[[
'dim_id'
,
'jumlah_penumpang_kendaraan'
,
'deleted'
,
'kendaraan_id'
,
'supir_id'
,
'status_req
uest_seker
taris_rektorat'
,
'status_request_kemahasiswaan'
],
'integer'
],
[[
'dim_id'
,
'jumlah_penumpang_kendaraan'
,
'deleted'
,
'kendaraan_id'
,
'supir_id'
,
'status_req
_sekre
taris_rektorat'
,
'status_request_kemahasiswaan'
],
'integer'
],
[[
'rencana_waktu_keberangkatan'
,
'rencana_waktu_kembali'
,
'deleted_at'
,
'created_at'
,
'updated_at'
],
'safe'
],
[[
'rencana_waktu_keberangkatan'
,
'rencana_waktu_kembali'
,
'deleted_at'
,
'created_at'
,
'updated_at'
],
'safe'
],
[[
'file'
],
'file'
],
[[
'file'
],
'file'
],
[[
'desc_penggunaan_kendaraan'
,
'tujuan'
],
'string'
],
[[
'desc_penggunaan_kendaraan'
,
'tujuan'
],
'string'
],
...
@@ -100,7 +100,7 @@ class PemakaianKendaraanMahasiswa extends \yii\db\ActiveRecord
...
@@ -100,7 +100,7 @@ class PemakaianKendaraanMahasiswa extends \yii\db\ActiveRecord
'jumlah_penumpang_kendaraan'
=>
'Jumlah Penumpang'
,
'jumlah_penumpang_kendaraan'
=>
'Jumlah Penumpang'
,
'rencana_waktu_keberangkatan'
=>
'Waktu Keberangkatan'
,
'rencana_waktu_keberangkatan'
=>
'Waktu Keberangkatan'
,
'rencana_waktu_kembali'
=>
'Waktu Tiba'
,
'rencana_waktu_kembali'
=>
'Waktu Tiba'
,
'status_req
uest_seker
taris_rektorat'
=>
'Status Permintaan'
,
'status_req
_sekre
taris_rektorat'
=>
'Status Permintaan'
,
'status_request_kemahasiswaan'
=>
'Status Permintaan Kemahasiswaan'
,
'status_request_kemahasiswaan'
=>
'Status Permintaan Kemahasiswaan'
,
'proposal'
=>
'Proposal'
,
'proposal'
=>
'Proposal'
,
'no_telepon'
=>
'No Telepon'
,
'no_telepon'
=>
'No Telepon'
,
...
@@ -135,15 +135,15 @@ class PemakaianKendaraanMahasiswa extends \yii\db\ActiveRecord
...
@@ -135,15 +135,15 @@ class PemakaianKendaraanMahasiswa extends \yii\db\ActiveRecord
/**
/**
* @return \yii\db\ActiveQuery
* @return \yii\db\ActiveQuery
*/
*/
public
function
getStatusRequestSek
er
tarisRektorat
()
public
function
getStatusRequestSek
re
tarisRektorat
()
{
{
return
$this
->
hasOne
(
Referesi
::
className
(),
[
'id'
=>
'status_request_seker
taris_rektorat'
]);
return
$this
->
hasOne
(
StatusRequest
::
className
(),
[
'id'
=>
'status_req_sekre
taris_rektorat'
]);
}
}
/**
/**
* @return \yii\db\ActiveQuery
* @return \yii\db\ActiveQuery
*/
*/
public
function
getStatusRequestKemahasiswaan
()
public
function
getStatusRequestKemahasiswaan
()
{
{
return
$this
->
hasOne
(
Referesi
::
className
(),
[
'id'
=>
'status_request_kemahasiswaan'
]);
return
$this
->
hasOne
(
StatusRequest
::
className
(),
[
'id'
=>
'status_request_kemahasiswaan'
]);
}
}
}
}
backend/modules/ubux/models/
Referesi
.php
→
backend/modules/ubux/models/
StatusRequest
.php
View file @
0a7c2d1d
...
@@ -17,7 +17,7 @@ use common\behaviors\DeleteBehavior;
...
@@ -17,7 +17,7 @@ use common\behaviors\DeleteBehavior;
* @property PemakaianKendaraanMahasiswa[] $pemakaianKendaraanMahasiswas
* @property PemakaianKendaraanMahasiswa[] $pemakaianKendaraanMahasiswas
* @property PemakaianKendaraanMahasiswa[] $pemakaianKendaraanMahasiswas0
* @property PemakaianKendaraanMahasiswa[] $pemakaianKendaraanMahasiswas0
*/
*/
class
Referesi
extends
\yii\db\ActiveRecord
class
StatusRequest
extends
\yii\db\ActiveRecord
{
{
/**
/**
...
@@ -43,7 +43,7 @@ class Referesi extends \yii\db\ActiveRecord
...
@@ -43,7 +43,7 @@ class Referesi extends \yii\db\ActiveRecord
*/
*/
public
static
function
tableName
()
public
static
function
tableName
()
{
{
return
'ubux_
referesi
'
;
return
'ubux_
status_request
'
;
}
}
/**
/**
...
...
backend/modules/ubux/models/search/KendaraanSearch.php
View file @
0a7c2d1d
...
@@ -45,7 +45,7 @@ class KendaraanSearch extends Kendaraan
...
@@ -45,7 +45,7 @@ class KendaraanSearch extends Kendaraan
$dataProvider
=
new
ActiveDataProvider
([
$dataProvider
=
new
ActiveDataProvider
([
'query'
=>
$query
,
'query'
=>
$query
,
'sort'
=>
[
'defaultOrder'
=>
[
'
kendaraan_id'
=>
SORT_ASC
,
'
updated_at'
=>
SORT_DESC
,
'created_at'
=>
SORT_DESC
]],
'sort'
=>
[
'defaultOrder'
=>
[
'updated_at'
=>
SORT_DESC
,
'created_at'
=>
SORT_DESC
]],
]);
]);
$this
->
load
(
$params
);
$this
->
load
(
$params
);
...
...
backend/modules/ubux/models/search/LaporanPemakaianKendaraanSearch.php
View file @
0a7c2d1d
...
@@ -19,7 +19,7 @@ class LaporanPemakaianKendaraanSearch extends LaporanPemakaianKendaraan
...
@@ -19,7 +19,7 @@ class LaporanPemakaianKendaraanSearch extends LaporanPemakaianKendaraan
{
{
return
[
return
[
[[
'laporan_pemakaian_kendaraan_id'
,
'jumlah_penumpang'
,
'deleted'
,
'kendaraan_id'
,
'supir_id'
],
'integer'
],
[[
'laporan_pemakaian_kendaraan_id'
,
'jumlah_penumpang'
,
'deleted'
,
'kendaraan_id'
,
'supir_id'
],
'integer'
],
[[
'tujuan'
,
'des
kripsi
_penumpang'
,
'keperluan'
,
'waktu_keberangkatan'
,
'waktu_tiba'
,
'deleted_at'
,
'deleted_by'
,
'created_at'
,
'created_by'
,
'updated_at'
,
'updated_by'
],
'safe'
],
[[
'tujuan'
,
'des
c
_penumpang'
,
'keperluan'
,
'waktu_keberangkatan'
,
'waktu_tiba'
,
'deleted_at'
,
'deleted_by'
,
'created_at'
,
'created_by'
,
'updated_at'
,
'updated_by'
],
'safe'
],
];
];
}
}
...
@@ -45,7 +45,7 @@ class LaporanPemakaianKendaraanSearch extends LaporanPemakaianKendaraan
...
@@ -45,7 +45,7 @@ class LaporanPemakaianKendaraanSearch extends LaporanPemakaianKendaraan
$dataProvider
=
new
ActiveDataProvider
([
$dataProvider
=
new
ActiveDataProvider
([
'query'
=>
$query
,
'query'
=>
$query
,
'sort'
=>
[
'defaultOrder'
=>
[
'
laporan_pemakaian_kendaraan_id'
=>
SORT_ASC
,
'
updated_at'
=>
SORT_DESC
,
'created_at'
=>
SORT_DESC
]],
'sort'
=>
[
'defaultOrder'
=>
[
'updated_at'
=>
SORT_DESC
,
'created_at'
=>
SORT_DESC
]],
]);
]);
$this
->
load
(
$params
);
$this
->
load
(
$params
);
...
@@ -70,7 +70,7 @@ class LaporanPemakaianKendaraanSearch extends LaporanPemakaianKendaraan
...
@@ -70,7 +70,7 @@ class LaporanPemakaianKendaraanSearch extends LaporanPemakaianKendaraan
]);
]);
$query
->
andFilterWhere
([
'like'
,
'tujuan'
,
$this
->
tujuan
])
$query
->
andFilterWhere
([
'like'
,
'tujuan'
,
$this
->
tujuan
])
->
andFilterWhere
([
'like'
,
'des
kripsi_penumpang'
,
$this
->
deskripsi
_penumpang
])
->
andFilterWhere
([
'like'
,
'des
c_penumpang'
,
$this
->
desc
_penumpang
])
->
andFilterWhere
([
'like'
,
'keperluan'
,
$this
->
keperluan
])
->
andFilterWhere
([
'like'
,
'keperluan'
,
$this
->
keperluan
])
->
andFilterWhere
([
'like'
,
'deleted_by'
,
$this
->
deleted_by
])
->
andFilterWhere
([
'like'
,
'deleted_by'
,
$this
->
deleted_by
])
->
andFilterWhere
([
'like'
,
'created_by'
,
$this
->
created_by
])
->
andFilterWhere
([
'like'
,
'created_by'
,
$this
->
created_by
])
...
...
backend/modules/ubux/models/search/PemakaianKendaraanMahasiswaSearch.php
View file @
0a7c2d1d
...
@@ -18,7 +18,7 @@ class PemakaianKendaraanMahasiswaSearch extends PemakaianKendaraanMahasiswa
...
@@ -18,7 +18,7 @@ class PemakaianKendaraanMahasiswaSearch extends PemakaianKendaraanMahasiswa
public
function
rules
()
public
function
rules
()
{
{
return
[
return
[
[[
'status_req
uest_seker
taris_rektorat'
,
'status_request_kemahasiswaan'
,
'transaksi_kendaraan_id'
,
'dim_id'
,
'jumlah_penumpang_kendaraan'
,
'deleted'
,
'kendaraan_id'
,
'supir_id'
],
'integer'
],
[[
'status_req
_sekre
taris_rektorat'
,
'status_request_kemahasiswaan'
,
'transaksi_kendaraan_id'
,
'dim_id'
,
'jumlah_penumpang_kendaraan'
,
'deleted'
,
'kendaraan_id'
,
'supir_id'
],
'integer'
],
[[
'desc_penggunaan_kendaraan'
,
'tujuan'
,
'rencana_waktu_keberangkatan'
,
'rencana_waktu_kembali'
,
'proposal'
,
'no_telepon'
,
'deleted_at'
,
'deleted_by'
,
'created_at'
,
'created_by'
,
'updated_at'
,
'updated_by'
,
'no_hp_supir'
],
'safe'
],
[[
'desc_penggunaan_kendaraan'
,
'tujuan'
,
'rencana_waktu_keberangkatan'
,
'rencana_waktu_kembali'
,
'proposal'
,
'no_telepon'
,
'deleted_at'
,
'deleted_by'
,
'created_at'
,
'created_by'
,
'updated_at'
,
'updated_by'
,
'no_hp_supir'
],
'safe'
],
];
];
}
}
...
@@ -41,11 +41,11 @@ class PemakaianKendaraanMahasiswaSearch extends PemakaianKendaraanMahasiswa
...
@@ -41,11 +41,11 @@ class PemakaianKendaraanMahasiswaSearch extends PemakaianKendaraanMahasiswa
*/
*/
public
function
search
(
$params
)
public
function
search
(
$params
)
{
{
$query
=
PemakaianKendaraanMahasiswa
::
find
();
$query
=
PemakaianKendaraanMahasiswa
::
find
()
->
where
([
'deleted'
=>
0
])
;
$dataProvider
=
new
ActiveDataProvider
([
$dataProvider
=
new
ActiveDataProvider
([
'query'
=>
$query
,
'query'
=>
$query
,
'sort'
=>
[
'defaultOrder'
=>
[
'
transaksi_kendaraan_id'
=>
SORT_ASC
,
'
updated_at'
=>
SORT_DESC
,
'created_at'
=>
SORT_DESC
]],
'sort'
=>
[
'defaultOrder'
=>
[
'updated_at'
=>
SORT_DESC
,
'created_at'
=>
SORT_DESC
]],
]);
]);
$this
->
load
(
$params
);
$this
->
load
(
$params
);
...
@@ -72,7 +72,7 @@ class PemakaianKendaraanMahasiswaSearch extends PemakaianKendaraanMahasiswa
...
@@ -72,7 +72,7 @@ class PemakaianKendaraanMahasiswaSearch extends PemakaianKendaraanMahasiswa
$query
->
andFilterWhere
([
'like'
,
'desc_penggunaan_kendaraan'
,
$this
->
desc_penggunaan_kendaraan
])
$query
->
andFilterWhere
([
'like'
,
'desc_penggunaan_kendaraan'
,
$this
->
desc_penggunaan_kendaraan
])
->
andFilterWhere
([
'like'
,
'tujuan'
,
$this
->
tujuan
])
->
andFilterWhere
([
'like'
,
'tujuan'
,
$this
->
tujuan
])
->
andFilterWhere
([
'like'
,
'status_req
uest_sekertaris_rektorat'
,
$this
->
status_request_seker
taris_rektorat
])
->
andFilterWhere
([
'like'
,
'status_req
_sekretaris_rektorat'
,
$this
->
status_req_sekre
taris_rektorat
])
->
andFilterWhere
([
'like'
,
'status_request_kemahasiswaan'
,
$this
->
status_request_kemahasiswaan
])
->
andFilterWhere
([
'like'
,
'status_request_kemahasiswaan'
,
$this
->
status_request_kemahasiswaan
])
->
andFilterWhere
([
'like'
,
'proposal'
,
$this
->
proposal
])
->
andFilterWhere
([
'like'
,
'proposal'
,
$this
->
proposal
])
->
andFilterWhere
([
'like'
,
'no_telepon'
,
$this
->
no_telepon
])
->
andFilterWhere
([
'like'
,
'no_telepon'
,
$this
->
no_telepon
])
...
...
backend/modules/ubux/models/search/PemakaianKendaraanSearch.php
View file @
0a7c2d1d
...
@@ -18,8 +18,8 @@ class PemakaianKendaraanSearch extends PemakaianKendaraan
...
@@ -18,8 +18,8 @@ class PemakaianKendaraanSearch extends PemakaianKendaraan
public
function
rules
()
public
function
rules
()
{
{
return
[
return
[
[[
'transaksi_kendaraan_id'
,
'jumlah_penumpang_kendaraan'
,
'deleted'
,
'kendaraan_id'
,
'supir_id'
,
'role'
],
'integer'
],
[[
'transaksi_kendaraan_id'
,
'jumlah_penumpang_kendaraan'
,
'deleted'
,
'kendaraan_id'
,
'supir_id'
,
'role'
,
'pegawai_id'
],
'integer'
],
[[
'nama_perequest_kendaraan'
,
'desc_penggunaan_kendaraan'
,
'rencana_waktu_keberangkatan'
,
'rencana_waktu_kembali'
,
'status_req
uest_seker
taris_rektorat'
,
'status_request_kemahasiswaan'
,
'proposal'
,
'no_telepon'
,
'deleted_at'
,
'deleted_by'
,
'created_at'
,
'created_by'
,
'updated_at'
,
'updated_by'
,
'no_hp_supir'
,
'status_request_kabiro_KSD'
,
'status_request_hrd'
,
'status_request_keuangan'
,
'status_request_wr2'
],
'safe'
],
[[
'nama_perequest_kendaraan'
,
'desc_penggunaan_kendaraan'
,
'rencana_waktu_keberangkatan'
,
'rencana_waktu_kembali'
,
'status_req
_sekre
taris_rektorat'
,
'status_request_kemahasiswaan'
,
'proposal'
,
'no_telepon'
,
'deleted_at'
,
'deleted_by'
,
'created_at'
,
'created_by'
,
'updated_at'
,
'updated_by'
,
'no_hp_supir'
,
'status_request_kabiro_KSD'
,
'status_request_hrd'
,
'status_request_keuangan'
,
'status_request_wr2'
],
'safe'
],
];
];
}
}
...
@@ -41,11 +41,11 @@ class PemakaianKendaraanSearch extends PemakaianKendaraan
...
@@ -41,11 +41,11 @@ class PemakaianKendaraanSearch extends PemakaianKendaraan
*/
*/
public
function
search
(
$params
)
public
function
search
(
$params
)
{
{
$query
=
PemakaianKendaraan
::
find
();
$query
=
PemakaianKendaraan
::
find
()
->
where
([
'deleted'
=>
0
])
;
$dataProvider
=
new
ActiveDataProvider
([
$dataProvider
=
new
ActiveDataProvider
([
'query'
=>
$query
,
'query'
=>
$query
,
'sort'
=>
[
'defaultOrder'
=>
[
'
transaksi_kendaraan_id'
=>
SORT_ASC
,
'
updated_at'
=>
SORT_DESC
,
'created_at'
=>
SORT_DESC
]],
'sort'
=>
[
'defaultOrder'
=>
[
'updated_at'
=>
SORT_DESC
,
'created_at'
=>
SORT_DESC
]],
]);
]);
$this
->
load
(
$params
);
$this
->
load
(
$params
);
...
@@ -58,6 +58,7 @@ class PemakaianKendaraanSearch extends PemakaianKendaraan
...
@@ -58,6 +58,7 @@ class PemakaianKendaraanSearch extends PemakaianKendaraan
$query
->
andFilterWhere
([
$query
->
andFilterWhere
([
'transaksi_kendaraan_id'
=>
$this
->
transaksi_kendaraan_id
,
'transaksi_kendaraan_id'
=>
$this
->
transaksi_kendaraan_id
,
'pegawai_id'
=>
$this
->
pegawai_id
,
'jumlah_penumpang_kendaraan'
=>
$this
->
jumlah_penumpang_kendaraan
,
'jumlah_penumpang_kendaraan'
=>
$this
->
jumlah_penumpang_kendaraan
,
'rencana_waktu_keberangkatan'
=>
$this
->
rencana_waktu_keberangkatan
,
'rencana_waktu_keberangkatan'
=>
$this
->
rencana_waktu_keberangkatan
,
'rencana_waktu_kembali'
=>
$this
->
rencana_waktu_kembali
,
'rencana_waktu_kembali'
=>
$this
->
rencana_waktu_kembali
,
...
@@ -71,7 +72,8 @@ class PemakaianKendaraanSearch extends PemakaianKendaraan
...
@@ -71,7 +72,8 @@ class PemakaianKendaraanSearch extends PemakaianKendaraan
$query
->
andFilterWhere
([
'like'
,
'nama_perequest_kendaraan'
,
$this
->
nama_perequest_kendaraan
])
$query
->
andFilterWhere
([
'like'
,
'nama_perequest_kendaraan'
,
$this
->
nama_perequest_kendaraan
])
->
andFilterWhere
([
'like'
,
'desc_penggunaan_kendaraan'
,
$this
->
desc_penggunaan_kendaraan
])
->
andFilterWhere
([
'like'
,
'desc_penggunaan_kendaraan'
,
$this
->
desc_penggunaan_kendaraan
])
->
andFilterWhere
([
'like'
,
'status_request_sekertaris_rektorat'
,
$this
->
status_request_sekertaris_rektorat
])
->
andFilterWhere
([
'like'
,
'pegawai_id'
,
$this
->
pegawai_id
])
->
andFilterWhere
([
'like'
,
'status_req_sekretaris_rektorat'
,
$this
->
status_req_sekretaris_rektorat
])
->
andFilterWhere
([
'like'
,
'status_request_kemahasiswaan'
,
$this
->
status_request_kemahasiswaan
])
->
andFilterWhere
([
'like'
,
'status_request_kemahasiswaan'
,
$this
->
status_request_kemahasiswaan
])
->
andFilterWhere
([
'like'
,
'role'
,
$this
->
role
])
->
andFilterWhere
([
'like'
,
'role'
,
$this
->
role
])
->
andFilterWhere
([
'like'
,
'proposal'
,
$this
->
proposal
])
->
andFilterWhere
([
'like'
,
'proposal'
,
$this
->
proposal
])
...
...
backend/modules/ubux/models/search/SupirSearch.php
View file @
0a7c2d1d
...
@@ -45,7 +45,7 @@ class SupirSearch extends Supir
...
@@ -45,7 +45,7 @@ class SupirSearch extends Supir
$dataProvider
=
new
ActiveDataProvider
([
$dataProvider
=
new
ActiveDataProvider
([
'query'
=>
$query
,
'query'
=>
$query
,
'sort'
=>
[
'defaultOrder'
=>
[
'
supir_id'
=>
SORT_ASC
,
'
updated_at'
=>
SORT_DESC
,
'created_at'
=>
SORT_DESC
]],
'sort'
=>
[
'defaultOrder'
=>
[
'updated_at'
=>
SORT_DESC
,
'created_at'
=>
SORT_DESC
]],
]);
]);
$this
->
load
(
$params
);
$this
->
load
(
$params
);
...
...
backend/modules/ubux/views/kendaraan/_form.php
View file @
0a7c2d1d
<?php
<?php
use
yii\helpers\Html
;
use
yii\helpers\Html
;
use
yii\widgets\ActiveForm
;
//use yii\widgets\ActiveForm;
use
yii\bootstrap\ActiveForm
;
/* @var $this yii\web\View */
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\Kendaraan */
/* @var $model backend\modules\ubux\models\Kendaraan */
...
@@ -10,7 +11,18 @@ use yii\widgets\ActiveForm;
...
@@ -10,7 +11,18 @@ use yii\widgets\ActiveForm;
<div
class=
"ubux-kendaraan-form"
>
<div
class=
"ubux-kendaraan-form"
>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
([
'layout'
=>
'horizontal'
,
'fieldConfig'
=>
[
'template'
=>
"
{
label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint
}
"
,
'horizontalCssClasses'
=>
[
'label'
=>
'col-sm-2'
,
'wrapper'
=>
'col-sm-8'
,
'error'
=>
''
,
'hint'
=>
''
,
],
],
]);
?>
<?=
$form
->
field
(
$model
,
'kendaraan'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?=
$form
->
field
(
$model
,
'kendaraan'
)
->
textInput
([
'maxlength'
=>
true
])
?>
...
@@ -33,8 +45,10 @@ use yii\widgets\ActiveForm;
...
@@ -33,8 +45,10 @@ use yii\widgets\ActiveForm;
<?=
$form
->
field
(
$model
,
'updated_by'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?=
$form
->
field
(
$model
,
'updated_by'
)
->
textInput
([
'maxlength'
=>
true
])
?>
-->
-->
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"col-md-1 col-md-offset-2"
>
<?=
Html
::
submitButton
(
$model
->
isNewRecord
?
'Buat'
:
'Ubah'
,
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
<?=
Html
::
submitButton
(
$model
->
isNewRecord
?
'Buat'
:
'Ubah'
,
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
</div>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/modules/ubux/views/kendaraan/
create
.php
→
backend/modules/ubux/views/kendaraan/
add
.php
View file @
0a7c2d1d
File moved
backend/modules/ubux/views/kendaraan/
update
.php
→
backend/modules/ubux/views/kendaraan/
edit
.php
View file @
0a7c2d1d
File moved
backend/modules/ubux/views/kendaraan/index.php
View file @
0a7c2d1d
...
@@ -18,7 +18,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -18,7 +18,7 @@ $this->params['breadcrumbs'][] = $this->title;
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<
p
>
<
p
>
<?=
Html
::
a
(
'Tambah Kendaraan'
,
[
'
create
'
],
[
'class'
=>
'btn btn-success'
])
?>
<?=
Html
::
a
(
'Tambah Kendaraan'
,
[
'
add
'
],
[
'class'
=>
'btn btn-success'
])
?>
</p>
</p>
<?=
GridView
::
widget
([
<?=
GridView
::
widget
([
...
@@ -64,9 +64,9 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -64,9 +64,9 @@ $this->params['breadcrumbs'][] = $this->title;
if
(
$action
===
'view'
)
{
if
(
$action
===
'view'
)
{
return
Url
::
toRoute
([
'view'
,
'id'
=>
$key
]);
return
Url
::
toRoute
([
'view'
,
'id'
=>
$key
]);
}
else
if
(
$action
===
'update'
)
{
}
else
if
(
$action
===
'update'
)
{
return
Url
::
toRoute
([
'
update
'
,
'id'
=>
$key
]);
return
Url
::
toRoute
([
'
edit
'
,
'id'
=>
$key
]);
}
else
if
(
$action
===
'delete'
)
{
}
else
if
(
$action
===
'delete'
)
{
return
Url
::
toRoute
([
'del
ete
'
,
'id'
=>
$key
]);
return
Url
::
toRoute
([
'del'
,
'id'
=>
$key
]);
}
}
}
}
...
...
backend/modules/ubux/views/kendaraan/view.php
View file @
0a7c2d1d
...
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title;
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<p>
<p>
<?=
Html
::
a
(
'Ubah'
,
[
'
update
'
,
'id'
=>
$model
->
kendaraan_id
],
[
'class'
=>
'btn btn-primary'
])
?>
<?=
Html
::
a
(
'Ubah'
,
[
'
edit
'
,
'id'
=>
$model
->
kendaraan_id
],
[
'class'
=>
'btn btn-primary'
])
?>
<?=
Html
::
a
(
'Hapus'
,
[
'del
ete
'
,
'id'
=>
$model
->
kendaraan_id
],
[
<?=
Html
::
a
(
'Hapus'
,
[
'del'
,
'id'
=>
$model
->
kendaraan_id
],
[
'class'
=>
'btn btn-danger'
,
'class'
=>
'btn btn-danger'
,
'data'
=>
[
'data'
=>
[
'confirm'
=>
'Apakah anda yakin ?'
,
'confirm'
=>
'Apakah anda yakin ?'
,
...
...
backend/modules/ubux/views/laporan-pemakaian-kendaraan/_form.php
View file @
0a7c2d1d
<?php
<?php
use
yii\helpers\Html
;
use
yii\helpers\Html
;
use
yii\widgets\ActiveForm
;
//
use yii\widgets\ActiveForm;
use
dosamigos\datetimepicker\DateTimePicker
;
use
dosamigos\datetimepicker\DateTimePicker
;
use
yii\helpers\ArrayHelper
;
use
yii\helpers\ArrayHelper
;
use
backend\modules\ubux\models\Kendaraan
;
use
backend\modules\ubux\models\Kendaraan
;
use
backend\modules\ubux\models\Supir
;
use
backend\modules\ubux\models\Supir
;
use
yii\bootstrap\ActiveForm
;
/* @var $this yii\web\View */
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\LaporanPemakaianKendaraan */
/* @var $model backend\modules\ubux\models\LaporanPemakaianKendaraan */
...
@@ -14,15 +15,26 @@ use backend\modules\ubux\models\Supir;
...
@@ -14,15 +15,26 @@ use backend\modules\ubux\models\Supir;
<div
class=
"ubux-laporan-pemakaian-kendaraan-form"
>
<div
class=
"ubux-laporan-pemakaian-kendaraan-form"
>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
([
'layout'
=>
'horizontal'
,
'fieldConfig'
=>
[
'template'
=>
"
{
label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint
}
"
,
'horizontalCssClasses'
=>
[
'label'
=>
'col-sm-2'
,
'wrapper'
=>
'col-sm-8'
,
'error'
=>
''
,
'hint'
=>
''
,
],
],
]);
?>
<?=
$form
->
field
(
$model
,
'tujuan'
)
->
text
Input
([
'maxlength'
=>
true
]
)
?>
<?=
$form
->
field
(
$model
,
'tujuan'
)
->
text
area
(
)
?>
<?=
$form
->
field
(
$model
,
'des
kripsi_penumpang'
)
->
textInput
([
'maxlength'
=>
true
]
)
?>
<?=
$form
->
field
(
$model
,
'des
c_penumpang'
)
->
textarea
(
)
?>
<?=
$form
->
field
(
$model
,
'jumlah_penumpang'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'jumlah_penumpang'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'keperluan'
)
->
text
Input
([
'maxlength'
=>
true
]
)
?>
<?=
$form
->
field
(
$model
,
'keperluan'
)
->
text
area
(
)
?>
<?=
$form
->
field
(
$model
,
'waktu_keberangkatan'
)
->
widget
(
DateTimePicker
::
className
(),[
<?=
$form
->
field
(
$model
,
'waktu_keberangkatan'
)
->
widget
(
DateTimePicker
::
className
(),[
'inline'
=>
false
,
'inline'
=>
false
,
...
@@ -75,8 +87,9 @@ use backend\modules\ubux\models\Supir;
...
@@ -75,8 +87,9 @@ use backend\modules\ubux\models\Supir;
)
?>
)
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"col-md-1 col-md-offset-2"
>
<?=
Html
::
submitButton
(
$model
->
isNewRecord
?
'Buat'
:
'Ubah'
,
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
<?=
Html
::
submitButton
(
$model
->
isNewRecord
?
'Buat'
:
'Ubah'
,
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
</div>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/modules/ubux/views/laporan-pemakaian-kendaraan/_search.php
View file @
0a7c2d1d
...
@@ -19,7 +19,7 @@ use yii\widgets\ActiveForm;
...
@@ -19,7 +19,7 @@ use yii\widgets\ActiveForm;
<?=
$form
->
field
(
$model
,
'tujuan'
)
?>
<?=
$form
->
field
(
$model
,
'tujuan'
)
?>
<?=
$form
->
field
(
$model
,
'des
kripsi
_penumpang'
)
?>
<?=
$form
->
field
(
$model
,
'des
c
_penumpang'
)
?>
<?=
$form
->
field
(
$model
,
'jumlah_penumpang'
)
?>
<?=
$form
->
field
(
$model
,
'jumlah_penumpang'
)
?>
...
...
backend/modules/ubux/views/laporan-pemakaian-kendaraan/
create
.php
→
backend/modules/ubux/views/laporan-pemakaian-kendaraan/
add
.php
View file @
0a7c2d1d
File moved
backend/modules/ubux/views/laporan-pemakaian-kendaraan/
update
.php
→
backend/modules/ubux/views/laporan-pemakaian-kendaraan/
edit
.php
View file @
0a7c2d1d
File moved
backend/modules/ubux/views/laporan-pemakaian-kendaraan/index.php
View file @
0a7c2d1d
...
@@ -17,7 +17,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -17,7 +17,7 @@ $this->params['breadcrumbs'][] = $this->title;
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<p>
<p>
<?=
Html
::
a
(
'Tambah Laporan Pemakaian Kendaraan'
,
[
'
create
'
],
[
'class'
=>
'btn btn-success'
])
?>
<?=
Html
::
a
(
'Tambah Laporan Pemakaian Kendaraan'
,
[
'
add
'
],
[
'class'
=>
'btn btn-success'
])
?>
</p>
</p>
<?=
GridView
::
widget
([
<?=
GridView
::
widget
([
...
@@ -28,7 +28,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -28,7 +28,7 @@ $this->params['breadcrumbs'][] = $this->title;
// 'laporan_pemakaian_kendaraan_id',
// 'laporan_pemakaian_kendaraan_id',
'tujuan'
,
'tujuan'
,
'des
kripsi
_penumpang'
,
'des
c
_penumpang'
,
'jumlah_penumpang'
,
'jumlah_penumpang'
,
'keperluan'
,
'keperluan'
,
'waktu_keberangkatan'
,
'waktu_keberangkatan'
,
...
@@ -74,10 +74,10 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -74,10 +74,10 @@ $this->params['breadcrumbs'][] = $this->title;
'urlCreator'
=>
function
(
$action
,
$model
,
$key
,
$index
){
'urlCreator'
=>
function
(
$action
,
$model
,
$key
,
$index
){
if
(
$action
===
'view'
)
{
if
(
$action
===
'view'
)
{
return
Url
::
toRoute
([
'view'
,
'id'
=>
$key
]);
return
Url
::
toRoute
([
'view'
,
'id'
=>
$key
]);
}
else
if
(
$action
===
'
update
'
)
{
}
else
if
(
$action
===
'
edit
'
)
{
return
Url
::
toRoute
([
'update'
,
'id'
=>
$key
]);
return
Url
::
toRoute
([
'update'
,
'id'
=>
$key
]);
}
else
if
(
$action
===
'delete'
)
{
}
else
if
(
$action
===
'delete'
)
{
return
Url
::
toRoute
([
'del
ete
'
,
'id'
=>
$key
]);
return
Url
::
toRoute
([
'del'
,
'id'
=>
$key
]);
}
}
}
}
...
...
backend/modules/ubux/views/laporan-pemakaian-kendaraan/view.php
View file @
0a7c2d1d
...
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title;
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<p>
<p>
<?=
Html
::
a
(
'Ubah'
,
[
'
update
'
,
'id'
=>
$model
->
laporan_pemakaian_kendaraan_id
],
[
'class'
=>
'btn btn-primary'
])
?>
<?=
Html
::
a
(
'Ubah'
,
[
'
edit
'
,
'id'
=>
$model
->
laporan_pemakaian_kendaraan_id
],
[
'class'
=>
'btn btn-primary'
])
?>
<?=
Html
::
a
(
'Hapus'
,
[
'del
ete
'
,
'id'
=>
$model
->
laporan_pemakaian_kendaraan_id
],
[
<?=
Html
::
a
(
'Hapus'
,
[
'del'
,
'id'
=>
$model
->
laporan_pemakaian_kendaraan_id
],
[
'class'
=>
'btn btn-danger'
,
'class'
=>
'btn btn-danger'
,
'data'
=>
[
'data'
=>
[
'confirm'
=>
'Apakah anda yakin ?'
,
'confirm'
=>
'Apakah anda yakin ?'
,
...
@@ -31,7 +31,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -31,7 +31,7 @@ $this->params['breadcrumbs'][] = $this->title;
'attributes'
=>
[
'attributes'
=>
[
// 'laporan_pemakaian_kendaraan_id',
// 'laporan_pemakaian_kendaraan_id',
'tujuan'
,
'tujuan'
,
'des
kripsi
_penumpang'
,
'des
c
_penumpang'
,
'jumlah_penumpang'
,
'jumlah_penumpang'
,
'keperluan'
,
'keperluan'
,
'waktu_keberangkatan'
,
'waktu_keberangkatan'
,
...
...
backend/modules/ubux/views/laporan-pemakaian-kendaraan/viewPdf.php
View file @
0a7c2d1d
...
@@ -49,7 +49,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -49,7 +49,7 @@ $this->params['breadcrumbs'][] = $this->title;
<tr>
<tr>
<td
class=
"kolom"
>
Deskripsi Penumpang
</td>
<td
class=
"kolom"
>
Deskripsi Penumpang
</td>
<td
class=
"kolom"
>
:
</td>
<td
class=
"kolom"
>
:
</td>
<td
class=
"kolom"
>
<?=
$model
->
des
kripsi
_penumpang
?>
</td>
<td
class=
"kolom"
>
<?=
$model
->
des
c
_penumpang
?>
</td>
</tr>
</tr>
<tr>
<tr>
<td
class=
"kolom"
>
Jumlah Penumpang
</td>
<td
class=
"kolom"
>
Jumlah Penumpang
</td>
...
@@ -89,7 +89,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -89,7 +89,7 @@ $this->params['breadcrumbs'][] = $this->title;
// 'attributes' => [
// 'attributes' => [
// 'laporan_pemakaian_kendaraan_id',
// 'laporan_pemakaian_kendaraan_id',
// 'tujuan',
// 'tujuan',
// 'des
kripsi
_penumpang',
// 'des
c
_penumpang',
// 'jumlah_penumpang',
// 'jumlah_penumpang',
// 'keperluan',
// 'keperluan',
// 'waktu_keberangkatan',
// 'waktu_keberangkatan',
...
...
backend/modules/ubux/views/pegawai/_form.php
deleted
100644 → 0
View file @
e2653d07
<?php
use
yii\helpers\Html
;
use
yii\widgets\ActiveForm
;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxPegawai */
/* @var $form yii\widgets\ActiveForm */
?>
<div
class=
"ubux-pegawai-form"
>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?=
$form
->
field
(
$model
,
'jabatan'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<!--
<?=
$form
->
field
(
$model
,
'deleted'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'deleted_at'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'deleted_by'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?=
$form
->
field
(
$model
,
'created_at'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'created_by'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?=
$form
->
field
(
$model
,
'updated_at'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'updated_by'
)
->
textInput
([
'maxlength'
=>
true
])
?>
-->
<div
class=
"form-group"
>
<?=
Html
::
submitButton
(
$model
->
isNewRecord
?
'Create'
:
'Update'
,
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
</div>
<?php
ActiveForm
::
end
();
?>
</div>
backend/modules/ubux/views/pegawai/_search.php
deleted
100644 → 0
View file @
e2653d07
<?php
use
yii\helpers\Html
;
use
yii\widgets\ActiveForm
;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxPegawaiSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div
class=
"ubux-pegawai-search"
>
<?php
$form
=
ActiveForm
::
begin
([
'action'
=>
[
'index'
],
'method'
=>
'get'
,
]);
?>
<?=
$form
->
field
(
$model
,
'pegawai_id'
)
?>
<?=
$form
->
field
(
$model
,
'jabatan'
)
?>
<?=
$form
->
field
(
$model
,
'deleted'
)
?>
<?=
$form
->
field
(
$model
,
'deleted_at'
)
?>
<?=
$form
->
field
(
$model
,
'deleted_by'
)
?>
<?php
// echo $form->field($model, 'created_at') ?>
<?
php
// echo $form->field($model, 'created_by') ?>
<?
php
// echo $form->field($model, 'updated_at') ?>
<?
php
// echo $form->field($model, 'updated_by') ?>
<
div
class
="
form
-
group
">
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
backend/modules/ubux/views/pegawai/create.php
deleted
100644 → 0
View file @
e2653d07
<?php
use
yii\helpers\Html
;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxPegawai */
$this
->
title
=
'Tambah Pegawai'
;
$this
->
params
[
'breadcrumbs'
][]
=
[
'label'
=>
'Ubux Pegawai'
,
'url'
=>
[
'index'
]];
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
?>
<div
class=
"ubux-pegawai-create"
>
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<?=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
])
?>
</div>
backend/modules/ubux/views/pegawai/index.php
deleted
100644 → 0
View file @
e2653d07
<?php
use
yii\helpers\Html
;
use
yii\grid\GridView
;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\ubux\models\UbuxPegawaiSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this
->
title
=
'Ubux Pegawai'
;
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
?>
<div
class=
"ubux-pegawai-index"
>
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<
p
>
<?=
Html
::
a
(
'Tambah Pegawai'
,
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
</p>
<?=
GridView
::
widget
([
'dataProvider'
=>
$dataProvider
,
'filterModel'
=>
$searchModel
,
'columns'
=>
[
[
'class'
=>
'yii\grid\SerialColumn'
],
// 'pegawai_id',
'jabatan'
,
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
[
'class'
=>
'yii\grid\ViewColumn'
],
[
'class'
=>
'yii\grid\DeleteColumn'
],
[
'class'
=>
'yii\grid\UpdateColumn'
],
],
]);
?>
</div>
backend/modules/ubux/views/pegawai/update.php
deleted
100644 → 0
View file @
e2653d07
<?php
use
yii\helpers\Html
;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxPegawai */
$this
->
title
=
'Update Ubux Pegawai: '
.
' '
.
$model
->
pegawai_id
;
$this
->
params
[
'breadcrumbs'
][]
=
[
'label'
=>
'Ubux Pegawai'
,
'url'
=>
[
'index'
]];
$this
->
params
[
'breadcrumbs'
][]
=
[
'label'
=>
$model
->
pegawai_id
,
'url'
=>
[
'view'
,
'id'
=>
$model
->
pegawai_id
]];
$this
->
params
[
'breadcrumbs'
][]
=
'Update'
;
?>
<div
class=
"ubux-pegawai-update"
>
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<?=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
])
?>
</div>
backend/modules/ubux/views/pegawai/view.php
deleted
100644 → 0
View file @
e2653d07
<?php
use
yii\helpers\Html
;
use
yii\widgets\DetailView
;
/* @var $this yii\web\View */
/* @var $model backend\modules\ubux\models\UbuxPegawai */
$this
->
title
=
$model
->
jabatan
;
$this
->
params
[
'breadcrumbs'
][]
=
[
'label'
=>
'Ubux Pegawai'
,
'url'
=>
[
'index'
]];
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
?>
<div
class=
"ubux-pegawai-view"
>
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<p>
<?=
Html
::
a
(
'Update'
,
[
'update'
,
'id'
=>
$model
->
pegawai_id
],
[
'class'
=>
'btn btn-primary'
])
?>
<?=
Html
::
a
(
'Delete'
,
[
'delete'
,
'id'
=>
$model
->
pegawai_id
],
[
'class'
=>
'btn btn-danger'
,
'data'
=>
[
'confirm'
=>
'Are you sure you want to delete this item?'
,
'method'
=>
'post'
,
],
])
?>
</p>
<?=
DetailView
::
widget
([
'model'
=>
$model
,
'attributes'
=>
[
// 'pegawai_id',
'jabatan'
,
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
],
])
?>
</div>
backend/modules/ubux/views/pemakaian-kendaraan-mahasiswa/_form.php
View file @
0a7c2d1d
<?php
<?php
use
yii\helpers\Html
;
use
yii\helpers\Html
;
use
yii\
widgets
\ActiveForm
;
use
yii\
bootstrap
\ActiveForm
;
use
dosamigos\datetimepicker\DateTimePicker
;
use
dosamigos\datetimepicker\DateTimePicker
;
/* @var $this yii\web\View */
/* @var $this yii\web\View */
...
@@ -11,7 +11,18 @@ use dosamigos\datetimepicker\DateTimePicker;
...
@@ -11,7 +11,18 @@ use dosamigos\datetimepicker\DateTimePicker;
<div
class=
"ubux-transaksi-kendaraan-mahasiswa-baru-form"
>
<div
class=
"ubux-transaksi-kendaraan-mahasiswa-baru-form"
>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
([
'layout'
=>
'horizontal'
,
'fieldConfig'
=>
[
'template'
=>
"
{
label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint
}
"
,
'horizontalCssClasses'
=>
[
'label'
=>
'col-sm-2'
,
'wrapper'
=>
'col-sm-8'
,
'error'
=>
''
,
'hint'
=>
''
,
],
],
]);
?>
<!--
<!--
<?=
$form
->
field
(
$model
,
'dim_id'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'dim_id'
)
->
textInput
()
?>
-->
-->
...
@@ -68,8 +79,10 @@ use dosamigos\datetimepicker\DateTimePicker;
...
@@ -68,8 +79,10 @@ use dosamigos\datetimepicker\DateTimePicker;
<?=
$form
->
field
(
$model
,
'no_hp_supir'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?=
$form
->
field
(
$model
,
'no_hp_supir'
)
->
textInput
([
'maxlength'
=>
true
])
?>
-->
-->
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"col-md-1 col-md-offset-2"
>
<?=
Html
::
submitButton
(
$model
->
isNewRecord
?
'Buat'
:
'Ubah'
,
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
<?=
Html
::
submitButton
(
$model
->
isNewRecord
?
'Buat'
:
'Ubah'
,
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
</div>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/modules/ubux/views/pemakaian-kendaraan-mahasiswa/_search.php
View file @
0a7c2d1d
...
@@ -31,7 +31,7 @@ use yii\widgets\ActiveForm;
...
@@ -31,7 +31,7 @@ use yii\widgets\ActiveForm;
<?
php
// echo $form->field($model, 'rencana_waktu_kembali') ?>
<?
php
// echo $form->field($model, 'rencana_waktu_kembali') ?>
<?
php
// echo $form->field($model, 'status_req
uest_seker
taris_rektorat') ?>
<?
php
// echo $form->field($model, 'status_req
_sekre
taris_rektorat') ?>
<?
php
// echo $form->field($model, 'status_request_kemahasiswaan') ?>
<?
php
// echo $form->field($model, 'status_request_kemahasiswaan') ?>
...
...
backend/modules/ubux/views/pemakaian-kendaraan-mahasiswa/
create
.php
→
backend/modules/ubux/views/pemakaian-kendaraan-mahasiswa/
add
.php
View file @
0a7c2d1d
File moved
backend/modules/ubux/views/pemakaian-kendaraan-mahasiswa/
update
.php
→
backend/modules/ubux/views/pemakaian-kendaraan-mahasiswa/
edit
.php
View file @
0a7c2d1d
File moved
backend/modules/ubux/views/pemakaian-kendaraan-mahasiswa/index.php
View file @
0a7c2d1d
...
@@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -16,7 +16,7 @@ $this->params['breadcrumbs'][] = $this->title;
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<
div
class
="
col
-
md
-
9
">
<
div
class
="
col
-
md
-
9
">
<p><?= Html::a('Permintaan Kendaraan Mahasiswa', ['
create
'], ['class' => 'btn btn-success']) ?></p>
<p><?= Html::a('Permintaan Kendaraan Mahasiswa', ['
add
'], ['class' => 'btn btn-success']) ?></p>
</div>
</div>
<div class="
col
-
md
-
3
">
<div class="
col
-
md
-
3
">
<p style="
color
:
red
;
"><b>Nomor yang dapat dihubungi: Ibu Cori : 0822 7335 4777 (WA) atau 0812 6219 9995 (HP)</b></p>
<p style="
color
:
red
;
"><b>Nomor yang dapat dihubungi: Ibu Cori : 0822 7335 4777 (WA) atau 0812 6219 9995 (HP)</b></p>
...
@@ -37,8 +37,8 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -37,8 +37,8 @@ $this->params['breadcrumbs'][] = $this->title;
'rencana_waktu_keberangkatan',
'rencana_waktu_keberangkatan',
'rencana_waktu_kembali',
'rencana_waktu_kembali',
[
[
'attribute' => 'status_req
uest_seker
taris_rektorat',
'attribute' => 'status_req
_sekre
taris_rektorat',
'value' => 'statusRequestSek
er
tarisRektorat.status'
'value' => 'statusRequestSek
re
tarisRektorat.status'
],
],
[
[
'attribute' => 'status_request_kemahasiswaan',
'attribute' => 'status_request_kemahasiswaan',
...
@@ -72,10 +72,10 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -72,10 +72,10 @@ $this->params['breadcrumbs'][] = $this->title;
return Url::toRoute(['view', 'id' =>
$key
]);
return Url::toRoute(['view', 'id' =>
$key
]);
}
}
if(
$action
== 'edit'){
if(
$action
== 'edit'){
return Url::toRoute(['
update
', 'id' =>
$key
]);
return Url::toRoute(['
edit
', 'id' =>
$key
]);
}
}
if(
$action
== 'del'){
if(
$action
== 'del'){
return Url::toRoute(['del
ete
', 'id' =>
$key
]);
return Url::toRoute(['del', 'id' =>
$key
]);
}
}
else{
else{
return Url::toRoute(['pop-up', 'id' =>
$key
]);
return Url::toRoute(['pop-up', 'id' =>
$key
]);
...
...
backend/modules/ubux/views/pemakaian-kendaraan-mahasiswa/indexByKemahasiswaan.php
View file @
0a7c2d1d
...
@@ -42,8 +42,8 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -42,8 +42,8 @@ $this->params['breadcrumbs'][] = $this->title;
// 'rencana_waktu_keberangkatan',
// 'rencana_waktu_keberangkatan',
// 'rencana_waktu_kembali',
// 'rencana_waktu_kembali',
[
[
'attribute'
=>
'status_req
uest_seker
taris_rektorat'
,
'attribute'
=>
'status_req
_sekre
taris_rektorat'
,
'value'
=>
'statusRequestSek
er
tarisRektorat.status'
'value'
=>
'statusRequestSek
re
tarisRektorat.status'
],
],
[
[
'attribute'
=>
'status_request_kemahasiswaan'
,
'attribute'
=>
'status_request_kemahasiswaan'
,
...
...
backend/modules/ubux/views/pemakaian-kendaraan-mahasiswa/view.php
View file @
0a7c2d1d
...
@@ -17,16 +17,16 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -17,16 +17,16 @@ $this->params['breadcrumbs'][] = $this->title;
<p>
<p>
<?php
<?php
if
(
$model
->
status_request_kemahasiswaan
==
1
){
if
(
$model
->
status_request_kemahasiswaan
==
1
){
echo
Html
::
a
(
'Ubah'
,
[
'
update
'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-primary'
]);
echo
Html
::
a
(
'Ubah'
,
[
'
edit
'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-primary'
]);
echo
' '
;
echo
' '
;
echo
Html
::
a
(
'Hapus'
,
[
'del
ete
'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
echo
Html
::
a
(
'Hapus'
,
[
'del'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-danger'
,
'class'
=>
'btn btn-danger'
,
'data'
=>
[
'data'
=>
[
'confirm'
=>
'Apakah anda yakin ingin menhapus ?'
,
'confirm'
=>
'Apakah anda yakin ingin menhapus ?'
,
'method'
=>
'post'
,
'method'
=>
'post'
,
],
],
]);
]);
}
else
if
(
$model
->
status_req
uest_seker
taris_rektorat
==
2
){
}
else
if
(
$model
->
status_req
_sekre
taris_rektorat
==
2
){
echo
Html
::
a
(
'Cetak'
,
[
'cetak'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-warning'
]);
echo
Html
::
a
(
'Cetak'
,
[
'cetak'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-warning'
]);
}
}
?>
?>
...
@@ -52,8 +52,8 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -52,8 +52,8 @@ $this->params['breadcrumbs'][] = $this->title;
'rencana_waktu_keberangkatan'
,
'rencana_waktu_keberangkatan'
,
'rencana_waktu_kembali'
,
'rencana_waktu_kembali'
,
[
[
'attribute'
=>
'status_req
uest_seker
taris_rektorat'
,
'attribute'
=>
'status_req
_sekre
taris_rektorat'
,
'value'
=>
$model
->
statusRequestSek
er
tarisRektorat
->
status
,
'value'
=>
$model
->
statusRequestSek
re
tarisRektorat
->
status
,
],
],
[
[
'attribute'
=>
'status_request_kemahasiswaan'
,
'attribute'
=>
'status_request_kemahasiswaan'
,
...
...
backend/modules/ubux/views/pemakaian-kendaraan-mahasiswa/viewByKemahasiswaan.php
View file @
0a7c2d1d
...
@@ -16,13 +16,13 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -16,13 +16,13 @@ $this->params['breadcrumbs'][] = $this->title;
<p>
<p>
<?php
<?php
if
(
$model
->
status_req
uest_seker
taris_rektorat
==
2
){
if
(
$model
->
status_req
_sekre
taris_rektorat
==
2
){
echo
Html
::
a
(
'Cetak'
,
[
'cetak'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-warning'
]);
echo
Html
::
a
(
'Cetak'
,
[
'cetak'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-warning'
]);
}
if
(
$model
->
status_request_kemahasiswaan
==
1
){
}
if
(
$model
->
status_request_kemahasiswaan
==
1
){
echo
Html
::
a
(
'Terima'
,
[
'accept'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-success'
]);
echo
Html
::
a
(
'Terima'
,
[
'accept'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-success'
]);
echo
' '
;
echo
' '
;
echo
Html
::
a
(
'Tolak'
,
[
'reject'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-danger'
]);
echo
Html
::
a
(
'Tolak'
,
[
'reject'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-danger'
]);
}
if
(
$model
->
status_request_kemahasiswaan
==
2
&&
$model
->
status_req
uest_seker
taris_rektorat
==
1
){
}
if
(
$model
->
status_request_kemahasiswaan
==
2
&&
$model
->
status_req
_sekre
taris_rektorat
==
1
){
echo
'<p style="color:red;">Permintaan Telah disetuju. Menunggu persetujuan Sekretaris Rektorat</p>'
;
echo
'<p style="color:red;">Permintaan Telah disetuju. Menunggu persetujuan Sekretaris Rektorat</p>'
;
}
}
?>
?>
...
@@ -48,8 +48,8 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -48,8 +48,8 @@ $this->params['breadcrumbs'][] = $this->title;
'rencana_waktu_keberangkatan'
,
'rencana_waktu_keberangkatan'
,
'rencana_waktu_kembali'
,
'rencana_waktu_kembali'
,
[
[
'attribute'
=>
'status_req
uest_seker
taris_rektorat'
,
'attribute'
=>
'status_req
_sekre
taris_rektorat'
,
'value'
=>
$model
->
statusRequestSek
er
tarisRektorat
->
status
,
'value'
=>
$model
->
statusRequestSek
re
tarisRektorat
->
status
,
],
],
[
[
'attribute'
=>
'status_request_kemahasiswaan'
,
'attribute'
=>
'status_request_kemahasiswaan'
,
...
...
backend/modules/ubux/views/pemakaian-kendaraan-mahasiswa/viewPdf.php
View file @
0a7c2d1d
...
@@ -79,7 +79,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -79,7 +79,7 @@ $this->params['breadcrumbs'][] = $this->title;
<tr>
<tr>
<td
class=
"kolom"
>
Status
</td>
<td
class=
"kolom"
>
Status
</td>
<td>
:
</td>
<td>
:
</td>
<td>
<?=
$model
->
status_req
uest_seker
taris_rektorat
?>
</td>
<td>
<?=
$model
->
status_req
_sekre
taris_rektorat
?>
</td>
</tr>
</tr>
<tr>
<tr>
<td
class=
"kolom"
>
No Telepon
</td>
<td
class=
"kolom"
>
No Telepon
</td>
...
@@ -114,7 +114,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -114,7 +114,7 @@ $this->params['breadcrumbs'][] = $this->title;
// 'jumlah_penumpang_kendaraan',
// 'jumlah_penumpang_kendaraan',
// 'rencana_waktu_keberangkatan',
// 'rencana_waktu_keberangkatan',
// 'rencana_waktu_kembali',
// 'rencana_waktu_kembali',
// 'status_req
uest_seker
taris_rektorat',
// 'status_req
_sekre
taris_rektorat',
// 'status_request_kemahasiswaan',
// 'status_request_kemahasiswaan',
// 'role',
// 'role',
// 'no_telepon',
// 'no_telepon',
...
...
backend/modules/ubux/views/pemakaian-kendaraan/_formByPegawai.php
View file @
0a7c2d1d
<?php
<?php
use
yii\helpers\Html
;
use
yii\helpers\Html
;
use
yii\
widgets
\ActiveForm
;
use
yii\
bootstrap
\ActiveForm
;
use
dosamigos\datetimepicker\DateTimePicker
;
use
dosamigos\datetimepicker\DateTimePicker
;
use
common\helpers\ArrayHelper
;
use
common\helpers\ArrayHelper
;
use
backend\modules\ubux\models\Kendaraan
;
use
backend\modules\ubux\models\Kendaraan
;
...
@@ -15,10 +15,22 @@ use backend\modules\ubux\models\Kendaraan;
...
@@ -15,10 +15,22 @@ use backend\modules\ubux\models\Kendaraan;
<h1>
Request Kendaraan by Pegawai
</h1>
<h1>
Request Kendaraan by Pegawai
</h1>
<?php
$form
=
ActiveForm
::
begin
([
'options'
=>
[
'enctype'
=>
'multipart/form-data'
]]);
?>
<?php
$form
=
ActiveForm
::
begin
([
'options'
=>
[
'enctype'
=>
'multipart/form-data'
],
'layout'
=>
'horizontal'
,
'fieldConfig'
=>
[
'template'
=>
"
{
label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint
}
"
,
'horizontalCssClasses'
=>
[
'label'
=>
'col-sm-2'
,
'wrapper'
=>
'col-sm-8'
,
'error'
=>
''
,
'hint'
=>
''
,
],
],
]);
?>
<!--
<?=
$form
->
field
(
$model
,
'nama_perequest_kendaraan'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?=
$form
->
field
(
$model
,
'nama_perequest_kendaraan'
)
->
textInput
([
'maxlength'
=>
true
])
?>
-->
<?=
$form
->
field
(
$model
,
'desc_penggunaan_kendaraan'
)
->
textarea
()
?>
<?=
$form
->
field
(
$model
,
'desc_penggunaan_kendaraan'
)
->
textarea
()
?>
<?=
$form
->
field
(
$model
,
'tujuan'
)
->
textarea
()
?>
<?=
$form
->
field
(
$model
,
'tujuan'
)
->
textarea
()
?>
...
@@ -48,7 +60,7 @@ use backend\modules\ubux\models\Kendaraan;
...
@@ -48,7 +60,7 @@ use backend\modules\ubux\models\Kendaraan;
]);
?>
]);
?>
<!--
<!--
<?=
$form
->
field
(
$model
,
'status_req
uest_seker
taris_rektorat'
)
->
dropDownList
([
'Menunggu'
=>
'Menunggu'
,
'Diterima'
=>
'Diterima'
,
'Ditolak'
=>
'Ditolak'
,
],
[
'prompt'
=>
''
])
?>
<?=
$form
->
field
(
$model
,
'status_req
_sekre
taris_rektorat'
)
->
dropDownList
([
'Menunggu'
=>
'Menunggu'
,
'Diterima'
=>
'Diterima'
,
'Ditolak'
=>
'Ditolak'
,
],
[
'prompt'
=>
''
])
?>
<?=
$form
->
field
(
$model
,
'status_request_kemahasiswaan'
)
->
dropDownList
([
'Menunggu'
=>
'Menunggu'
,
'Diterima'
=>
'Diterima'
,
'Ditolak'
=>
'Ditolak'
,
],
[
'prompt'
=>
''
])
?>
<?=
$form
->
field
(
$model
,
'status_request_kemahasiswaan'
)
->
dropDownList
([
'Menunggu'
=>
'Menunggu'
,
'Diterima'
=>
'Diterima'
,
'Ditolak'
=>
'Ditolak'
,
],
[
'prompt'
=>
''
])
?>
...
@@ -82,8 +94,10 @@ use backend\modules\ubux\models\Kendaraan;
...
@@ -82,8 +94,10 @@ use backend\modules\ubux\models\Kendaraan;
)
?>
)
?>
-->
-->
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"col-md-1 col-md-offset-2"
>
<?=
Html
::
submitButton
(
$model
->
isNewRecord
?
'Buat'
:
'Ubah'
,
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
<?=
Html
::
submitButton
(
$model
->
isNewRecord
?
'Buat'
:
'Ubah'
,
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
</div>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/modules/ubux/views/pemakaian-kendaraan/_formByPribadi.php
View file @
0a7c2d1d
<?php
<?php
use
yii\helpers\Html
;
use
yii\helpers\Html
;
use
yii\
widgets
\ActiveForm
;
use
yii\
bootstrap
\ActiveForm
;
use
dosamigos\datetimepicker\DateTimePicker
;
use
dosamigos\datetimepicker\DateTimePicker
;
use
common\helpers\ArrayHelper
;
use
common\helpers\ArrayHelper
;
use
backend\modules\ubux\models\Kendaraan
;
use
backend\modules\ubux\models\Kendaraan
;
...
@@ -15,9 +15,21 @@ use backend\modules\ubux\models\Kendaraan;
...
@@ -15,9 +15,21 @@ use backend\modules\ubux\models\Kendaraan;
<h1>
Request Kendaraan by Pribadi
</h1>
<h1>
Request Kendaraan by Pribadi
</h1>
<?php
$form
=
ActiveForm
::
begin
([
'options'
=>
[
'enctype'
=>
'multipart/form-data'
]]);
?>
<?php
$form
=
ActiveForm
::
begin
([
'options'
=>
[
'enctype'
=>
'multipart/form-data'
],
'layout'
=>
'horizontal'
,
'fieldConfig'
=>
[
'template'
=>
"
{
label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint
}
"
,
'horizontalCssClasses'
=>
[
'label'
=>
'col-sm-2'
,
'wrapper'
=>
'col-sm-8'
,
'error'
=>
''
,
'hint'
=>
''
,
],
],
]);
?>
<?=
$form
->
field
(
$model
,
'nama_perequest_kendaraan'
)
->
textInput
(
[
'maxlength'
=>
true
]
)
?>
<?=
$form
->
field
(
$model
,
'nama_perequest_kendaraan'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'desc_penggunaan_kendaraan'
)
->
textarea
()
?>
<?=
$form
->
field
(
$model
,
'desc_penggunaan_kendaraan'
)
->
textarea
()
?>
...
@@ -48,31 +60,31 @@ use backend\modules\ubux\models\Kendaraan;
...
@@ -48,31 +60,31 @@ use backend\modules\ubux\models\Kendaraan;
]);
?>
]);
?>
<!--
<!--
<?=
$form
->
field
(
$model
,
'status_req
uest_seker
taris_rektorat'
)
->
dropDownList
([
'Menunggu'
=>
'Menunggu'
,
'Diterima'
=>
'Diterima'
,
'Ditolak'
=>
'Ditolak'
,
],
[
'prompt'
=>
''
])
?>
<?=
$form
->
field
(
$model
,
'status_req
_sekre
taris_rektorat'
)
->
dropDownList
([
'Menunggu'
=>
'Menunggu'
,
'Diterima'
=>
'Diterima'
,
'Ditolak'
=>
'Ditolak'
,
],
[
'prompt'
=>
''
])
?>
<?=
$form
->
field
(
$model
,
'status_request_kemahasiswaan'
)
->
dropDownList
([
'Menunggu'
=>
'Menunggu'
,
'Diterima'
=>
'Diterima'
,
'Ditolak'
=>
'Ditolak'
,
],
[
'prompt'
=>
''
])
?>
<?=
$form
->
field
(
$model
,
'status_request_kemahasiswaan'
)
->
dropDownList
([
'Menunggu'
=>
'Menunggu'
,
'Diterima'
=>
'Diterima'
,
'Ditolak'
=>
'Ditolak'
,
],
[
'prompt'
=>
''
])
?>
<?=
$form
->
field
(
$model
,
'role'
)
->
dropDownList
([
'Mahasiswa'
=>
'Mahasiswa'
,
'Pegawai'
=>
'Pegawai'
,
],
[
'prompt'
=>
''
])
?>
<?=
$form
->
field
(
$model
,
'role'
)
->
dropDownList
([
'Mahasiswa'
=>
'Mahasiswa'
,
'Pegawai'
=>
'Pegawai'
,
],
[
'prompt'
=>
''
])
?>
<?=
$form
->
field
(
$model
,
'proposal'
)
->
textInput
(
[
'maxlength'
=>
true
]
)
?>
<?=
$form
->
field
(
$model
,
'proposal'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'file'
)
->
fileInput
();
?>
<?=
$form
->
field
(
$model
,
'file'
)
->
fileInput
();
?>
-->
-->
<?=
$form
->
field
(
$model
,
'no_telepon'
)
->
textInput
(
[
'maxlength'
=>
true
]
)
?>
<?=
$form
->
field
(
$model
,
'no_telepon'
)
->
textInput
()
?>
<!--
<!--
<?=
$form
->
field
(
$model
,
'deleted'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'deleted'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'deleted_at'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'deleted_at'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'deleted_by'
)
->
textInput
(
[
'maxlength'
=>
true
]
)
?>
<?=
$form
->
field
(
$model
,
'deleted_by'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'created_at'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'created_at'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'created_by'
)
->
textInput
(
[
'maxlength'
=>
true
]
)
?>
<?=
$form
->
field
(
$model
,
'created_by'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'updated_at'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'updated_at'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'updated_by'
)
->
textInput
(
[
'maxlength'
=>
true
]
)
?>
<?=
$form
->
field
(
$model
,
'updated_by'
)
->
textInput
()
?>
<?=
$form
->
field
(
$model
,
'kendaraan_id'
)
->
dropDownList
(
<?=
$form
->
field
(
$model
,
'kendaraan_id'
)
->
dropDownList
(
ArrayHelper
::
map
(
Kendaraan
::
find
()
->
select
([
ArrayHelper
::
map
(
Kendaraan
::
find
()
->
select
([
...
@@ -82,8 +94,10 @@ use backend\modules\ubux\models\Kendaraan;
...
@@ -82,8 +94,10 @@ use backend\modules\ubux\models\Kendaraan;
)
?>
)
?>
-->
-->
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"col-md-1 col-md-offset-2"
>
<?=
Html
::
submitButton
(
$model
->
isNewRecord
?
'Buat'
:
'Ubah'
,
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
<?=
Html
::
submitButton
(
$model
->
isNewRecord
?
'Buat'
:
'Ubah'
,
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
</div>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/modules/ubux/views/pemakaian-kendaraan/_formBySek
er
tarisRektorat.php
→
backend/modules/ubux/views/pemakaian-kendaraan/_formBySek
re
tarisRektorat.php
View file @
0a7c2d1d
<?php
<?php
use
yii\helpers\Html
;
use
yii\helpers\Html
;
use
yii\
widgets
\ActiveForm
;
use
yii\
bootstrap
\ActiveForm
;
use
common\helpers\ArrayHelper
;
use
common\helpers\ArrayHelper
;
use
backend\modules\ubux\models\Kendaraan
;
use
backend\modules\ubux\models\Kendaraan
;
use
backend\modules\ubux\models\Supir
;
use
backend\modules\ubux\models\Supir
;
...
@@ -15,7 +15,18 @@ use backend\modules\ubux\models\Supir;
...
@@ -15,7 +15,18 @@ use backend\modules\ubux\models\Supir;
<h1>
Catatan :
</h1>
<h1>
Catatan :
</h1>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
([
'layout'
=>
'horizontal'
,
'fieldConfig'
=>
[
'template'
=>
"
{
label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint
}
"
,
'horizontalCssClasses'
=>
[
'label'
=>
'col-sm-2'
,
'wrapper'
=>
'col-sm-8'
,
'error'
=>
''
,
'hint'
=>
''
,
],
],
]);
?>
<?=
$form
->
field
(
$model
,
'kendaraan_id'
)
->
dropDownList
(
<?=
$form
->
field
(
$model
,
'kendaraan_id'
)
->
dropDownList
(
ArrayHelper
::
map
(
Kendaraan
::
find
()
->
select
([
ArrayHelper
::
map
(
Kendaraan
::
find
()
->
select
([
...
@@ -31,11 +42,13 @@ use backend\modules\ubux\models\Supir;
...
@@ -31,11 +42,13 @@ use backend\modules\ubux\models\Supir;
[
'prompt'
=>
'Pilih Supir'
]
[
'prompt'
=>
'Pilih Supir'
]
)
?>
)
?>
<!--
<!--
<?=
$form
->
field
(
$model
,
'no_hp_supir'
)
->
textInput
(
[
'maxlength'
=>
true
]
)
?>
<?=
$form
->
field
(
$model
,
'no_hp_supir'
)
->
textInput
()
?>
-->
-->
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"col-md-1 col-md-offset-2"
>
<?=
Html
::
submitButton
(
$model
->
isNewRecord
?
'Buat'
:
'Tambah'
,
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-success'
])
?>
<?=
Html
::
submitButton
(
$model
->
isNewRecord
?
'Buat'
:
'Tambah'
,
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-success'
])
?>
</div>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/modules/ubux/views/pemakaian-kendaraan/
update
.php
→
backend/modules/ubux/views/pemakaian-kendaraan/
edit
.php
View file @
0a7c2d1d
File moved
backend/modules/ubux/views/pemakaian-kendaraan/indexByHrd.php
View file @
0a7c2d1d
...
@@ -47,7 +47,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -47,7 +47,7 @@ $this->params['breadcrumbs'][] = $this->title;
// ],
// ],
[
[
'attribute'
=>
'Status Request Sekretaris Rektorat'
,
'attribute'
=>
'Status Request Sekretaris Rektorat'
,
'value'
=>
'statusRequestSek
er
tarisRektorat.status'
,
'value'
=>
'statusRequestSek
re
tarisRektorat.status'
,
],
],
[
[
'attribute'
=>
'status_request_kabiro_KSD'
,
'attribute'
=>
'status_request_kabiro_KSD'
,
...
...
backend/modules/ubux/views/pemakaian-kendaraan/indexByKabiroKsd.php
View file @
0a7c2d1d
...
@@ -47,7 +47,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -47,7 +47,7 @@ $this->params['breadcrumbs'][] = $this->title;
// ],
// ],
[
[
'attribute'
=>
'Status Request Sekretaris Rektorat'
,
'attribute'
=>
'Status Request Sekretaris Rektorat'
,
'value'
=>
'statusRequestSek
er
tarisRektorat.status'
,
'value'
=>
'statusRequestSek
re
tarisRektorat.status'
,
],
],
[
[
'attribute'
=>
'status_request_kabiro_KSD'
,
'attribute'
=>
'status_request_kabiro_KSD'
,
...
...
backend/modules/ubux/views/pemakaian-kendaraan/indexByKeuangan.php
View file @
0a7c2d1d
...
@@ -47,7 +47,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -47,7 +47,7 @@ $this->params['breadcrumbs'][] = $this->title;
// ],
// ],
[
[
'attribute'
=>
'Status Request Sekretaris Rektorat'
,
'attribute'
=>
'Status Request Sekretaris Rektorat'
,
'value'
=>
'statusRequestSek
er
tarisRektorat.status'
,
'value'
=>
'statusRequestSek
re
tarisRektorat.status'
,
],
],
[
[
'attribute'
=>
'status_request_kabiro_KSD'
,
'attribute'
=>
'status_request_kabiro_KSD'
,
...
...
backend/modules/ubux/views/pemakaian-kendaraan/indexByPegawai.php
View file @
0a7c2d1d
...
@@ -17,7 +17,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -17,7 +17,7 @@ $this->params['breadcrumbs'][] = $this->title;
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<
p
>
<
p
>
<?=
Html
::
a
(
'Permintaan Kendaraan Pegawai'
,
[
'
create
-by-pegawai'
],
[
'class'
=>
'btn btn-success'
])
?>
<?=
Html
::
a
(
'Permintaan Kendaraan Pegawai'
,
[
'
add
-by-pegawai'
],
[
'class'
=>
'btn btn-success'
])
?>
</p>
</p>
<?=
GridView
::
widget
([
<?=
GridView
::
widget
([
...
@@ -33,7 +33,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -33,7 +33,7 @@ $this->params['breadcrumbs'][] = $this->title;
'jumlah_penumpang_kendaraan'
,
'jumlah_penumpang_kendaraan'
,
'rencana_waktu_keberangkatan'
,
'rencana_waktu_keberangkatan'
,
'rencana_waktu_kembali'
,
'rencana_waktu_kembali'
,
'role'
,
//
'role',
// 'proposal',
// 'proposal',
// 'deleted',
// 'deleted',
// 'deleted_at',
// 'deleted_at',
...
@@ -47,10 +47,10 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -47,10 +47,10 @@ $this->params['breadcrumbs'][] = $this->title;
'attribute'
=>
'Kendaraan'
,
'attribute'
=>
'Kendaraan'
,
'value'
=>
'kendaraan.kendaraan'
,
'value'
=>
'kendaraan.kendaraan'
,
],
],
// 'status_req
uest_seker
taris_rektorat',
// 'status_req
_sekre
taris_rektorat',
[
[
'attribute'
=>
'Status Request Sekretaris Rektorat'
,
'attribute'
=>
'Status Request Sekretaris Rektorat'
,
'value'
=>
'statusRequestSek
er
tarisRektorat.status'
,
'value'
=>
'statusRequestSek
re
tarisRektorat.status'
,
],
],
[
[
'class'
=>
'common\components\ToolsColumn'
,
'class'
=>
'common\components\ToolsColumn'
,
...
@@ -59,12 +59,12 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -59,12 +59,12 @@ $this->params['breadcrumbs'][] = $this->title;
if
(
$action
===
'view'
){
if
(
$action
===
'view'
){
return
Url
::
toRoute
([
'view-by-pegawai'
,
'id'
=>
$key
]);
return
Url
::
toRoute
([
'view-by-pegawai'
,
'id'
=>
$key
]);
}
}
if
(
$model
->
status_req
uest_seker
taris_rektorat
==
1
){
if
(
$model
->
status_req
_sekre
taris_rektorat
==
1
){
if
(
$action
==
'edit'
){
if
(
$action
==
'edit'
){
return
Url
::
toRoute
([
'
update
-by-pegawai'
,
'id'
=>
$key
]);
return
Url
::
toRoute
([
'
edit
-by-pegawai'
,
'id'
=>
$key
]);
}
}
if
(
$action
==
'del'
){
if
(
$action
==
'del'
){
return
Url
::
toRoute
([
'del
ete
'
,
'id'
=>
$key
]);
return
Url
::
toRoute
([
'del'
,
'id'
=>
$key
]);
}
}
}
else
{
}
else
{
return
Url
::
toRoute
([
'pop-up-pegawai'
,
'id'
=>
$key
]);
return
Url
::
toRoute
([
'pop-up-pegawai'
,
'id'
=>
$key
]);
...
...
backend/modules/ubux/views/pemakaian-kendaraan/indexByPribadi.php
View file @
0a7c2d1d
...
@@ -18,7 +18,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -18,7 +18,7 @@ $this->params['breadcrumbs'][] = $this->title;
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<
div
class
="
col
-
md
-
9
">
<
div
class
="
col
-
md
-
9
">
<?= Html::a('Permintaan Kendaraan Pribadi', ['
create
-by-pribadi'], ['class' => 'btn btn-success']) ?>
<?= Html::a('Permintaan Kendaraan Pribadi', ['
add
-by-pribadi'], ['class' => 'btn btn-success']) ?>
</div>
</div>
<div class="
col
-
md
-
3
">
<div class="
col
-
md
-
3
">
<p style="
color
:
red
;
"><b>Nomor yang dapat dihubungi: Ibu Cori : 0822 7335 4777 (WA) atau 0812 6219 9995 (HP)</b></p>
<p style="
color
:
red
;
"><b>Nomor yang dapat dihubungi: Ibu Cori : 0822 7335 4777 (WA) atau 0812 6219 9995 (HP)</b></p>
...
@@ -54,7 +54,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -54,7 +54,7 @@ $this->params['breadcrumbs'][] = $this->title;
// ],
// ],
[
[
'attribute' => 'Status Request Sekretaris Rektorat',
'attribute' => 'Status Request Sekretaris Rektorat',
'value' => 'statusRequestSek
er
tarisRektorat.status',
'value' => 'statusRequestSek
re
tarisRektorat.status',
],
],
[
[
'attribute' => 'status_request_kabiro_KSD',
'attribute' => 'status_request_kabiro_KSD',
...
@@ -83,12 +83,12 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -83,12 +83,12 @@ $this->params['breadcrumbs'][] = $this->title;
if(
$action
=== 'view'){
if(
$action
=== 'view'){
return Url::toRoute(['view-by-pribadi', 'id' =>
$key
]);
return Url::toRoute(['view-by-pribadi', 'id' =>
$key
]);
}
}
if(
$model->status_req
uest_seker
taris_rektorat
== 1 &&
$model->status_request_kemahasiswaan
== 1 &&
$model->status_request_hrd
== 1 &&
$model->status_request_kabiro_KSD
== 1 &&
$model->status_request_keuangan
== 1 &&
$model->status_request_wr2
== 1){
if(
$model->status_req
_sekre
taris_rektorat
== 1 &&
$model->status_request_kemahasiswaan
== 1 &&
$model->status_request_hrd
== 1 &&
$model->status_request_kabiro_KSD
== 1 &&
$model->status_request_keuangan
== 1 &&
$model->status_request_wr2
== 1){
if(
$action
== 'edit'){
if(
$action
== 'edit'){
return Url::toRoute(['
update
-by-pribadi', 'id' =>
$key
]);
return Url::toRoute(['
edit
-by-pribadi', 'id' =>
$key
]);
}
}
if(
$action
== 'del'){
if(
$action
== 'del'){
return Url::toRoute(['del
ete
', 'id' =>
$key
]);
return Url::toRoute(['del', 'id' =>
$key
]);
}
}
}else{
}else{
return Url::toRoute(['pop-up-pribadi', 'id' =>
$key
]);
return Url::toRoute(['pop-up-pribadi', 'id' =>
$key
]);
...
...
backend/modules/ubux/views/pemakaian-kendaraan/indexBySek
er
tarisRektorat.php
→
backend/modules/ubux/views/pemakaian-kendaraan/indexBySek
re
tarisRektorat.php
View file @
0a7c2d1d
...
@@ -52,21 +52,21 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -52,21 +52,21 @@ $this->params['breadcrumbs'][] = $this->title;
'value'
=>
'kendaraan.kendaraan'
,
'value'
=>
'kendaraan.kendaraan'
,
],
],
[
[
'attribute'
=>
'status_req
uest_seker
taris_rektorat'
,
'attribute'
=>
'status_req
_sekre
taris_rektorat'
,
'value'
=>
'statusRequestSek
er
tarisRektorat.status'
,
'value'
=>
'statusRequestSek
re
tarisRektorat.status'
,
],
],
[
[
'class'
=>
'common\components\ToolsColumn'
,
'class'
=>
'common\components\ToolsColumn'
,
'template'
=>
'{view}{acc}{rej}'
,
'template'
=>
'{view}{acc}{rej}'
,
'urlCreator'
=>
function
(
$action
,
$model
,
$key
,
$index
){
'urlCreator'
=>
function
(
$action
,
$model
,
$key
,
$index
){
if
(
$action
===
'view'
){
if
(
$action
===
'view'
){
return
Url
::
toRoute
([
'view-by-sek
er
taris-rektorat'
,
'id'
=>
$key
]);
return
Url
::
toRoute
([
'view-by-sek
re
taris-rektorat'
,
'id'
=>
$key
]);
}
}
if
(
$action
===
'acc'
){
if
(
$action
===
'acc'
){
return
Url
::
toRoute
([
'accept-by-sek
er
taris-rektorat'
,
'id'
=>
$key
]);
return
Url
::
toRoute
([
'accept-by-sek
re
taris-rektorat'
,
'id'
=>
$key
]);
}
}
if
(
$action
===
'rej'
){
if
(
$action
===
'rej'
){
return
Url
::
toRoute
([
'reject-by-sek
er
taris-rektorat'
,
'id'
=>
$key
]);
return
Url
::
toRoute
([
'reject-by-sek
re
taris-rektorat'
,
'id'
=>
$key
]);
}
}
}
}
],
],
...
...
backend/modules/ubux/views/pemakaian-kendaraan/indexByWr2.php
View file @
0a7c2d1d
...
@@ -47,7 +47,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -47,7 +47,7 @@ $this->params['breadcrumbs'][] = $this->title;
// ],
// ],
[
[
'attribute'
=>
'Status Request Sekretaris Rektorat'
,
'attribute'
=>
'Status Request Sekretaris Rektorat'
,
'value'
=>
'statusRequestSek
er
tarisRektorat.status'
,
'value'
=>
'statusRequestSek
re
tarisRektorat.status'
,
],
],
[
[
'attribute'
=>
'status_request_kabiro_KSD'
,
'attribute'
=>
'status_request_kabiro_KSD'
,
...
...
backend/modules/ubux/views/pemakaian-kendaraan/viewByHrd.php
View file @
0a7c2d1d
...
@@ -54,8 +54,8 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -54,8 +54,8 @@ $this->params['breadcrumbs'][] = $this->title;
// 'status_request_keuangan',
// 'status_request_keuangan',
// 'status_request_wr2',
// 'status_request_wr2',
[
[
'attribute'
=>
'Status Request Sek
er
taris Rektorat'
,
'attribute'
=>
'Status Request Sek
re
taris Rektorat'
,
'value'
=>
$model
->
statusRequestSek
er
tarisRektorat
->
status
,
'value'
=>
$model
->
statusRequestSek
re
tarisRektorat
->
status
,
],
],
[
[
'attribute'
=>
'status_request_kabiro_KSD'
,
'attribute'
=>
'status_request_kabiro_KSD'
,
...
...
backend/modules/ubux/views/pemakaian-kendaraan/viewByKabiroKsd.php
View file @
0a7c2d1d
...
@@ -50,8 +50,8 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -50,8 +50,8 @@ $this->params['breadcrumbs'][] = $this->title;
],
],
'no_hp_supir'
,
'no_hp_supir'
,
[
[
'attribute'
=>
'Status Request Sek
er
taris Rektorat'
,
'attribute'
=>
'Status Request Sek
re
taris Rektorat'
,
'value'
=>
$model
->
statusRequestSek
er
tarisRektorat
->
status
,
'value'
=>
$model
->
statusRequestSek
re
tarisRektorat
->
status
,
],
],
[
[
'attribute'
=>
'status_request_kabiro_KSD'
,
'attribute'
=>
'status_request_kabiro_KSD'
,
...
...
backend/modules/ubux/views/pemakaian-kendaraan/viewByKeuangan.php
View file @
0a7c2d1d
...
@@ -50,8 +50,8 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -50,8 +50,8 @@ $this->params['breadcrumbs'][] = $this->title;
],
],
'no_hp_supir'
,
'no_hp_supir'
,
[
[
'attribute'
=>
'Status Request Sek
er
taris Rektorat'
,
'attribute'
=>
'Status Request Sek
re
taris Rektorat'
,
'value'
=>
$model
->
statusRequestSek
er
tarisRektorat
->
status
,
'value'
=>
$model
->
statusRequestSek
re
tarisRektorat
->
status
,
],
],
[
[
'attribute'
=>
'status_request_kabiro_KSD'
,
'attribute'
=>
'status_request_kabiro_KSD'
,
...
...
backend/modules/ubux/views/pemakaian-kendaraan/viewByPegawai.php
View file @
0a7c2d1d
...
@@ -15,16 +15,16 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -15,16 +15,16 @@ $this->params['breadcrumbs'][] = $this->title;
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<?php
<?php
if
(
$model
->
status_req
uest_seker
taris_rektorat
==
1
)
{
if
(
$model
->
status_req
_sekre
taris_rektorat
==
1
)
{
echo
Html
::
a
(
'Ubah'
,
[
'
update
-by-pegawai'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-primary'
]);
echo
Html
::
a
(
'Ubah'
,
[
'
edit
-by-pegawai'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-primary'
]);
echo
Html
::
a
(
'Hapus'
,
[
'del
ete
'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
echo
Html
::
a
(
'Hapus'
,
[
'del'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-danger'
,
'class'
=>
'btn btn-danger'
,
'data'
=>
[
'data'
=>
[
'confirm'
=>
'Are you sure you want to delete this item?'
,
'confirm'
=>
'Are you sure you want to delete this item?'
,
'method'
=>
'post'
,
'method'
=>
'post'
,
],
],
]);
]);
}
else
if
(
$model
->
status_req
uest_seker
taris_rektorat
==
2
){
}
else
if
(
$model
->
status_req
_sekre
taris_rektorat
==
2
){
echo
Html
::
a
(
'Cetak'
,
[
'pegawai-pdf'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-warning'
]);
echo
Html
::
a
(
'Cetak'
,
[
'pegawai-pdf'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-warning'
]);
}
}
?>
?>
...
@@ -39,10 +39,10 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -39,10 +39,10 @@ $this->params['breadcrumbs'][] = $this->title;
'jumlah_penumpang_kendaraan'
,
'jumlah_penumpang_kendaraan'
,
'rencana_waktu_keberangkatan'
,
'rencana_waktu_keberangkatan'
,
'rencana_waktu_kembali'
,
'rencana_waktu_kembali'
,
// 'status_req
uest_seker
taris_rektorat',
// 'status_req
_sekre
taris_rektorat',
[
[
'attribute'
=>
'Status Request Sekretaris Rektorat'
,
'attribute'
=>
'Status Request Sekretaris Rektorat'
,
'value'
=>
$model
->
statusRequestSek
er
tarisRektorat
->
status
,
'value'
=>
$model
->
statusRequestSek
re
tarisRektorat
->
status
,
],
],
// 'status_request_kemahasiswaan',
// 'status_request_kemahasiswaan',
'no_telepon'
,
'no_telepon'
,
...
...
backend/modules/ubux/views/pemakaian-kendaraan/viewByPegawaiPdf.php
View file @
0a7c2d1d
...
@@ -74,7 +74,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -74,7 +74,7 @@ $this->params['breadcrumbs'][] = $this->title;
<tr>
<tr>
<td
class=
"kolom"
>
Status Request
</td>
<td
class=
"kolom"
>
Status Request
</td>
<td
class=
"kolom"
>
:
</td>
<td
class=
"kolom"
>
:
</td>
<td
class=
"kolom"
>
<?=
$model
->
statusRequestSek
er
tarisRektorat
->
status
?>
</td>
<td
class=
"kolom"
>
<?=
$model
->
statusRequestSek
re
tarisRektorat
->
status
?>
</td>
</tr>
</tr>
<tr>
<tr>
<td
class=
"kolom"
>
Jenis Permintaan
</td>
<td
class=
"kolom"
>
Jenis Permintaan
</td>
...
@@ -98,7 +98,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -98,7 +98,7 @@ $this->params['breadcrumbs'][] = $this->title;
</tr>
</tr>
</table>
</table>
<br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br>
<br><br>
<hr>
<hr>
<table>
<table>
<tr>
<tr>
...
...
backend/modules/ubux/views/pemakaian-kendaraan/viewByPribadi.php
View file @
0a7c2d1d
...
@@ -15,16 +15,16 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -15,16 +15,16 @@ $this->params['breadcrumbs'][] = $this->title;
<p>
<p>
<?php
<?php
if
(
$model
->
status_req
uest_seker
taris_rektorat
==
1
&&
$model
->
status_request_kemahasiswaan
==
1
&&
$model
->
status_request_hrd
==
1
&&
$model
->
status_request_kabiro_KSD
==
1
&&
$model
->
status_request_keuangan
==
1
&&
$model
->
status_request_wr2
==
1
)
{
if
(
$model
->
status_req
_sekre
taris_rektorat
==
1
&&
$model
->
status_request_kemahasiswaan
==
1
&&
$model
->
status_request_hrd
==
1
&&
$model
->
status_request_kabiro_KSD
==
1
&&
$model
->
status_request_keuangan
==
1
&&
$model
->
status_request_wr2
==
1
)
{
echo
Html
::
a
(
'Ubah'
,
[
'
update
-by-pribadi'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-primary'
]);
echo
Html
::
a
(
'Ubah'
,
[
'
edit
-by-pribadi'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-primary'
]);
echo
Html
::
a
(
'Hapus'
,
[
'del
ete
'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
echo
Html
::
a
(
'Hapus'
,
[
'del'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-danger'
,
'class'
=>
'btn btn-danger'
,
'data'
=>
[
'data'
=>
[
'confirm'
=>
'Are you sure you want to delete this item?'
,
'confirm'
=>
'Are you sure you want to delete this item?'
,
'method'
=>
'post'
,
'method'
=>
'post'
,
],
],
]);
]);
}
else
if
(
$model
->
status_req
uest_seker
taris_rektorat
==
2
&&
$model
->
status_request_kemahasiswaan
==
2
&&
$model
->
status_request_hrd
==
2
&&
$model
->
status_request_kabiro_KSD
==
2
&&
$model
->
status_request_keuangan
==
2
&&
$model
->
status_request_wr2
==
2
)
{
}
else
if
(
$model
->
status_req
_sekre
taris_rektorat
==
2
&&
$model
->
status_request_kemahasiswaan
==
2
&&
$model
->
status_request_hrd
==
2
&&
$model
->
status_request_kabiro_KSD
==
2
&&
$model
->
status_request_keuangan
==
2
&&
$model
->
status_request_wr2
==
2
)
{
echo
Html
::
a
(
'Cetak'
,
[
'pribadi-pdf'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-warning'
]);
echo
Html
::
a
(
'Cetak'
,
[
'pribadi-pdf'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-warning'
]);
}
}
?>
?>
...
@@ -62,8 +62,8 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -62,8 +62,8 @@ $this->params['breadcrumbs'][] = $this->title;
],
],
'no_hp_supir'
,
'no_hp_supir'
,
[
[
'attribute'
=>
'Status Request Sek
er
taris Rektorat'
,
'attribute'
=>
'Status Request Sek
re
taris Rektorat'
,
'value'
=>
$model
->
statusRequestSek
er
tarisRektorat
->
status
,
'value'
=>
$model
->
statusRequestSek
re
tarisRektorat
->
status
,
],
],
[
[
'attribute'
=>
'status_request_kabiro_KSD'
,
'attribute'
=>
'status_request_kabiro_KSD'
,
...
...
backend/modules/ubux/views/pemakaian-kendaraan/viewByPribadiPdf.php
View file @
0a7c2d1d
...
@@ -83,7 +83,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -83,7 +83,7 @@ $this->params['breadcrumbs'][] = $this->title;
<tr>
<tr>
<td
class=
"kolom"
>
Status Request Seketaris Rektorat
</td>
<td
class=
"kolom"
>
Status Request Seketaris Rektorat
</td>
<td
class=
"kolom"
>
:
</td>
<td
class=
"kolom"
>
:
</td>
<td
class=
"kolom"
>
<?=
$model
->
statusRequestSek
er
tarisRektorat
->
status
?>
</td>
<td
class=
"kolom"
>
<?=
$model
->
statusRequestSek
re
tarisRektorat
->
status
?>
</td>
</tr>
</tr>
<tr>
<tr>
<td
class=
"kolom"
>
Status Request Kabiro KSD
</td>
<td
class=
"kolom"
>
Status Request Kabiro KSD
</td>
...
...
backend/modules/ubux/views/pemakaian-kendaraan/viewBySek
er
tarisRektorat.php
→
backend/modules/ubux/views/pemakaian-kendaraan/viewBySek
re
tarisRektorat.php
View file @
0a7c2d1d
...
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title;
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<?php
<?php
echo
Html
::
a
(
'Terima'
,
[
'accept-by-sek
er
taris-rektorat'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-success'
]);
echo
Html
::
a
(
'Terima'
,
[
'accept-by-sek
re
taris-rektorat'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-success'
]);
echo
Html
::
a
(
'Tolak'
,
[
'reject-by-sek
er
taris-rektorat'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-danger'
]);
echo
Html
::
a
(
'Tolak'
,
[
'reject-by-sek
re
taris-rektorat'
,
'id'
=>
$model
->
transaksi_kendaraan_id
],
[
'class'
=>
'btn btn-danger'
]);
?>
?>
<?=
DetailView
::
widget
([
<?=
DetailView
::
widget
([
...
@@ -29,10 +29,10 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -29,10 +29,10 @@ $this->params['breadcrumbs'][] = $this->title;
'jumlah_penumpang_kendaraan'
,
'jumlah_penumpang_kendaraan'
,
'rencana_waktu_keberangkatan'
,
'rencana_waktu_keberangkatan'
,
'rencana_waktu_kembali'
,
'rencana_waktu_kembali'
,
// 'status_req
uest_seker
taris_rektorat',
// 'status_req
_sekre
taris_rektorat',
[
[
'attribute'
=>
'status_req
uest_seker
taris_rektorat'
,
'attribute'
=>
'status_req
_sekre
taris_rektorat'
,
'value'
=>
$model
->
statusRequestSek
er
tarisRektorat
->
status
,
'value'
=>
$model
->
statusRequestSek
re
tarisRektorat
->
status
,
],
],
// 'status_request_kemahasiswaan',
// 'status_request_kemahasiswaan',
'no_telepon'
,
'no_telepon'
,
...
...
backend/modules/ubux/views/pemakaian-kendaraan/viewByWr2.php
View file @
0a7c2d1d
...
@@ -50,8 +50,8 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -50,8 +50,8 @@ $this->params['breadcrumbs'][] = $this->title;
],
],
'no_hp_supir'
,
'no_hp_supir'
,
[
[
'attribute'
=>
'Status Request Sek
er
taris Rektorat'
,
'attribute'
=>
'Status Request Sek
re
taris Rektorat'
,
'value'
=>
$model
->
statusRequestSek
er
tarisRektorat
->
status
,
'value'
=>
$model
->
statusRequestSek
re
tarisRektorat
->
status
,
],
],
[
[
'attribute'
=>
'status_request_kabiro_KSD'
,
'attribute'
=>
'status_request_kabiro_KSD'
,
...
...
backend/modules/ubux/views/supir/_form.php
View file @
0a7c2d1d
<?php
<?php
use
yii\helpers\Html
;
use
yii\helpers\Html
;
use
yii\
widgets
\ActiveForm
;
use
yii\
bootstrap
\ActiveForm
;
use
yii\helpers\ArrayHelper
;
use
yii\helpers\ArrayHelper
;
use
backend\modules\ubux\models\Pegawai
;
use
backend\modules\ubux\models\Pegawai
;
use
common\widgets\Redactor
;
use
common\widgets\Redactor
;
...
@@ -13,7 +13,18 @@ use common\widgets\Redactor;
...
@@ -13,7 +13,18 @@ use common\widgets\Redactor;
<div
class=
"ubux-supir-form"
>
<div
class=
"ubux-supir-form"
>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
([
'layout'
=>
'horizontal'
,
'fieldConfig'
=>
[
'template'
=>
"
{
label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint
}
"
,
'horizontalCssClasses'
=>
[
'label'
=>
'col-sm-2'
,
'wrapper'
=>
'col-sm-8'
,
'error'
=>
''
,
'hint'
=>
''
,
],
],
]);
?>
<?=
$form
->
field
(
$model
,
'pegawai_id'
)
->
dropDownList
(
<?=
$form
->
field
(
$model
,
'pegawai_id'
)
->
dropDownList
(
ArrayHelper
::
map
(
Pegawai
::
find
()
->
select
([
ArrayHelper
::
map
(
Pegawai
::
find
()
->
select
([
...
@@ -41,10 +52,11 @@ use common\widgets\Redactor;
...
@@ -41,10 +52,11 @@ use common\widgets\Redactor;
<?=
$form
->
field
(
$model
,
'updated_by'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?=
$form
->
field
(
$model
,
'updated_by'
)
->
textInput
([
'maxlength'
=>
true
])
?>
-->
-->
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"col-md-1 col-md-offset-2"
>
<?=
Html
::
submitButton
(
$model
->
isNewRecord
?
'Buat'
:
'Ubah'
,
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
<?=
Html
::
submitButton
(
$model
->
isNewRecord
?
'Buat'
:
'Ubah'
,
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
</div>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/modules/ubux/views/supir/
create
.php
→
backend/modules/ubux/views/supir/
add
.php
View file @
0a7c2d1d
File moved
backend/modules/ubux/views/supir/
update
.php
→
backend/modules/ubux/views/supir/
edit
.php
View file @
0a7c2d1d
File moved
backend/modules/ubux/views/supir/index.php
View file @
0a7c2d1d
...
@@ -19,7 +19,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -19,7 +19,7 @@ $this->params['breadcrumbs'][] = $this->title;
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<
p
>
<
p
>
<?=
Html
::
a
(
'Tambah Supir'
,
[
'
create
'
],
[
'class'
=>
'btn btn-success'
])
?>
<?=
Html
::
a
(
'Tambah Supir'
,
[
'
add
'
],
[
'class'
=>
'btn btn-success'
])
?>
</p>
</p>
<?=
GridView
::
widget
([
<?=
GridView
::
widget
([
...
@@ -62,9 +62,9 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -62,9 +62,9 @@ $this->params['breadcrumbs'][] = $this->title;
'urlCreator'
=>
function
(
$action
,
$model
,
$key
,
$index
){
'urlCreator'
=>
function
(
$action
,
$model
,
$key
,
$index
){
if
(
$action
===
'view'
)
{
if
(
$action
===
'view'
)
{
return
Url
::
toRoute
([
'view'
,
'id'
=>
$key
]);
return
Url
::
toRoute
([
'view'
,
'id'
=>
$key
]);
}
else
if
(
$action
===
'
update
'
)
{
}
else
if
(
$action
===
'
edit
'
)
{
return
Url
::
toRoute
([
'update'
,
'id'
=>
$key
]);
return
Url
::
toRoute
([
'update'
,
'id'
=>
$key
]);
}
else
if
(
$action
===
'del
ete
'
)
{
}
else
if
(
$action
===
'del'
)
{
return
Url
::
toRoute
([
'delete'
,
'id'
=>
$key
]);
return
Url
::
toRoute
([
'delete'
,
'id'
=>
$key
]);
}
}
}
}
...
...
backend/modules/ubux/views/supir/view.php
View file @
0a7c2d1d
...
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -15,8 +15,8 @@ $this->params['breadcrumbs'][] = $this->title;
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<p>
<p>
<?=
Html
::
a
(
'Ubah'
,
[
'
update
'
,
'id'
=>
$model
->
supir_id
],
[
'class'
=>
'btn btn-primary'
])
?>
<?=
Html
::
a
(
'Ubah'
,
[
'
edit
'
,
'id'
=>
$model
->
supir_id
],
[
'class'
=>
'btn btn-primary'
])
?>
<?=
Html
::
a
(
'Hapus'
,
[
'del
ete
'
,
'id'
=>
$model
->
supir_id
],
[
<?=
Html
::
a
(
'Hapus'
,
[
'del'
,
'id'
=>
$model
->
supir_id
],
[
'class'
=>
'btn btn-danger'
,
'class'
=>
'btn btn-danger'
,
'data'
=>
[
'data'
=>
[
'confirm'
=>
'Apakah anda yakin ?'
,
'confirm'
=>
'Apakah anda yakin ?'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment