Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sadispen
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Edward Simarmata
sadispen
Commits
d7c88d5c
Commit
d7c88d5c
authored
Apr 30, 2018
by
Edward Simarmata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
terbaru lagi ini looo. tadi ada salah
parent
6a0c5fee
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
89 deletions
+28
-89
SiteController.php
backend/controllers/SiteController.php
+4
-15
header.php
backend/views/layouts/header.php
+7
-7
main.php
backend/views/layouts/main.php
+4
-4
about.php
backend/views/site/about.php
+1
-1
daftar_TK.php
backend/views/site/daftar_TK.php
+12
-62
No files found.
backend/controllers/SiteController.php
View file @
d7c88d5c
...
...
@@ -6,9 +6,6 @@ use yii\web\Controller;
use
yii\filters\VerbFilter
;
use
yii\filters\AccessControl
;
use
common\models\LoginForm
;
use
app\models\Sekolah
;
use
app\models\SekolahSearch
;
use
app\controller\SiswaController
;
/**
* Site controller
...
...
@@ -117,31 +114,23 @@ class SiteController extends Controller
}
public
function
actionAbout
()
{
$searchModel
=
new
SekolahSearch
();
$dataProviderTK
=
$searchModel
->
search
(
'TK'
);
$dataProviderSD
=
$searchModel
->
search
(
'SD'
);
$dataProviderSMP
=
$searchModel
->
search
(
'SMP'
);
return
$this
->
render
(
'about'
,
[
'searchModel'
=>
$searchModel
,
'dataProviderTK'
=>
$dataProviderTK
,
'dataProviderSD'
=>
$dataProviderSD
,
'dataProviderSMP'
=>
$dataProviderSMP
,
]
);
}
public
function
actionDaftar
Tk
()
{
public
function
actionDaftar
_SMP
()
{
return
$this
->
render
(
'daftar_
TK
'
,
return
$this
->
render
(
'daftar_
SMP
'
,
[
]
);
}
public
function
actionTest
()
{
return
$this
->
render
(
'test'
);
...
...
backend/views/layouts/header.php
View file @
d7c88d5c
...
...
@@ -18,9 +18,9 @@ $this->registerJs($script, \yii\web\View::POS_END);
<?php
if
(
Yii
::
$app
->
controller
->
id
===
'site'
&&
Yii
::
$app
->
controller
->
action
->
id
===
'index'
||
Yii
::
$app
->
controller
->
id
===
'site'
&&
Yii
::
$app
->
controller
->
action
->
id
===
'daftar
-tk
'
||
Yii
::
$app
->
controller
->
id
===
'site'
&&
Yii
::
$app
->
controller
->
action
->
id
===
'daftar
-sd
'
||
Yii
::
$app
->
controller
->
id
===
'site'
&&
Yii
::
$app
->
controller
->
action
->
id
===
'daftar
-smp
'
Yii
::
$app
->
controller
->
id
===
'site'
&&
Yii
::
$app
->
controller
->
action
->
id
===
'daftar
_TK
'
||
Yii
::
$app
->
controller
->
id
===
'site'
&&
Yii
::
$app
->
controller
->
action
->
id
===
'daftar
_SD
'
||
Yii
::
$app
->
controller
->
id
===
'site'
&&
Yii
::
$app
->
controller
->
action
->
id
===
'daftar
_SMP
'
){
?>
<header
class=
"main-header"
>
...
...
@@ -50,10 +50,10 @@ if(
],
],
[
'label'
=>
'Daftar TK/PAUD'
,
'url'
=>
[
'/site/daftar
-tk
'
]],
[
'label'
=>
'Daftar SD'
,
'url'
=>
[
'/site/daftar
-sd
'
]],
[
'label'
=>
'Daftar SMP'
,
'url'
=>
[
'/site/daftar
-smp
'
]],
[
'label'
=>
'LOGIN'
,
'url'
=>
[
'/site/
login
'
]],
[
'label'
=>
'Daftar TK/PAUD'
,
'url'
=>
[
'/site/daftar
_TK
'
]],
[
'label'
=>
'Daftar SD'
,
'url'
=>
[
'/site/daftar
_SD
'
]],
[
'label'
=>
'Daftar SMP'
,
'url'
=>
[
'/site/daftar
_SMP
'
]],
[
'label'
=>
'LOGIN'
,
'url'
=>
[
'/site/
about
'
]],
];
echo
Nav
::
widget
([
...
...
backend/views/layouts/main.php
View file @
d7c88d5c
<?php
use
yii\helpers\Html
;
use
yii\helpers\Url
;
/* @var $this \yii\web\View */
/* @var $content string */
if
(
Yii
::
$app
->
controller
->
action
->
id
===
'login'
)
{
/**
* Do not use this code in your template. Remove it.
...
...
@@ -35,9 +35,9 @@ if (Yii::$app->controller->action->id === 'login') {
<?php
if
(
Yii
::
$app
->
controller
->
id
===
'site'
&&
Yii
::
$app
->
controller
->
action
->
id
===
'index'
||
Yii
::
$app
->
controller
->
id
===
'site'
&&
Yii
::
$app
->
controller
->
action
->
id
===
'daftar
-tk
'
||
Yii
::
$app
->
controller
->
id
===
'site'
&&
Yii
::
$app
->
controller
->
action
->
id
===
'daftar
-sd
'
||
Yii
::
$app
->
controller
->
id
===
'site'
&&
Yii
::
$app
->
controller
->
action
->
id
===
'daftar_
smp
'
)
Yii
::
$app
->
controller
->
id
===
'site'
&&
Yii
::
$app
->
controller
->
action
->
id
===
'daftar
_TK
'
||
Yii
::
$app
->
controller
->
id
===
'site'
&&
Yii
::
$app
->
controller
->
action
->
id
===
'daftar
_SD
'
||
Yii
::
$app
->
controller
->
id
===
'site'
&&
Yii
::
$app
->
controller
->
action
->
id
===
'daftar_
SMP
'
)
{
?>
<body
class=
"hold-transition skin-blue layout-top-nav"
>
...
...
backend/views/site/about.php
View file @
d7c88d5c
...
...
@@ -126,7 +126,7 @@ $this->registerJs($script, \yii\web\View::POS_END);
<div
class=
"panel-body"
>
<?php
echo
GridView
::
widget
([
'dataProvider'
=>
$dataProvider
TK
,
'dataProvider'
=>
$dataProvider
,
'filterModel'
=>
$searchModel
,
'columns'
=>
[
[
'class'
=>
'yii\grid\SerialColumn'
],
...
...
backend/views/site/daftar_TK.php
View file @
d7c88d5c
...
...
@@ -45,7 +45,7 @@ $this->title = '';
return
""
;
}}
],
],
[
...
...
@@ -55,71 +55,21 @@ $this->title = '';
'view'
=>
function
(
$url
,
$model
){
return
Html
::
a
(
'<span class="btn btn-success btn-xs"><i class="fa fa-eye"></i></span>'
,
$url
,
[
return
Html
::
a
(
'<span class="btn btn-success btn-xs"><i class="fa fa-eye"></i></span>'
,
$url
,
[
'title'
=>
Yii
::
t
(
'app'
,
'Lihat'
),
]);
},
],
'urlCreator'
=>
function
(
$action
,
$model
,
$key
,
$index
){
if
(
$action
===
'view'
){
return
Url
::
toRoute
([
'sekolah/indexsekolah'
,
'id'
=>
$model
->
id
]);
}
}
],
//'icon',
//'deskripsi:ntext',
//'id_master_kategori_izin',
//'id_masa_berlaku',
/* [
'format'=>'raw',
'attribute'=>'Syarat - Syarat',
'value'=> function($model){
$modelsyarat = IboMasterSyarat::find()->where('id_master_izin = :izin',[':izin' => $model->id])->all();
return '<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#viewfile">
Lihat Syarat
</button>
]);
},
],
'urlCreator'
=>
function
(
$action
,
$model
,
$key
,
$index
){
if
(
$action
===
'view'
){
<div class="modal fade" id="viewfile" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<center>
<h4 class="modal-title" id="myModalLabel"><b>Syarat - Syarat Izin & Form Isian</b></h4>
</center>
</div>
<div class="modal-body">
<php
?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Tutup</button>
</div>
</div>
</div>
</div>
';
}
],*/
return
Url
::
toRoute
([
'sekolah/indexsekolah'
,
'id'
=>
$model
->
id
]);
}
}
],
// 'created_at',
// 'updated_at',
// 'created_by',
// 'updated_by',
// 'active',
//['class' => 'yii\grid\ActionColumn'],
],
]);
?>
...
...
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