Commit 6a0c5fee by Edward Simarmata

Perubahan terbaru guys. silahkan di pull terlebih dahulu. baru push jika ada…

Perubahan terbaru guys. silahkan di pull terlebih dahulu. baru push jika ada perubahan terbaru. Thanks
parent 075a70bd
......@@ -63,15 +63,18 @@ class RbacController extends Controller
$update_user = $auth->createPermission('users/update');
$delete_user = $auth->createPermission('users/delete');
$indexsekolah = $auth->createPermission('sekolah/indexsekolah');
// add "admin" role give this role the index create view update delete
$admin = $auth->createRole('admin');
$auth->add($admin);
$auth->addChild($admin, $index_user);
$auth->addChild($admin, $create_user);
$auth->addChild($admin, $view_user);
$auth->addChild($admin, $update_user);
$auth->addChild($admin, $delete_user);
$auth->addChild($admin, $indexsekolah);
$sekpentk = $auth->createRole('sekpenTK');
$auth->add($sekpentk);
......@@ -80,6 +83,7 @@ class RbacController extends Controller
$auth->addChild($sekpentk, $view);
$auth->addChild($sekpentk, $update);
$auth->addChild($sekpentk, $delete);
$auth->addChild($sekpentk, $indexsekolah);
$sekpensd = $auth->createRole('sekpenSD');
$auth->add($sekpensd);
......@@ -88,6 +92,7 @@ class RbacController extends Controller
$auth->addChild($sekpensd, $view);
$auth->addChild($sekpensd, $update);
$auth->addChild($sekpensd, $delete);
$auth->addChild($sekpensd, $indexsekolah);
$sekpensmp = $auth->createRole('sekpenSMP');
$auth->add($sekpensmp);
......@@ -96,6 +101,7 @@ class RbacController extends Controller
$auth->addChild($sekpensmp, $view);
$auth->addChild($sekpensmp, $update);
$auth->addChild($sekpensmp, $delete);
$auth->addChild($sekpensmp, $indexsekolah);
}
......@@ -124,6 +130,10 @@ class RbacController extends Controller
$delete->description = ' Delete a sekolah';
$auth->add($delete);
$indexSekolah = $auth->createPermission('sekolah/indexsekolah');
$indexsekolah->description = 'view homepage a school';
$auth->add($indexsekolah);
/**
* Users
*/
......
......@@ -9,6 +9,7 @@ use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use yii\web\UploadedFile;
/**
* SekolahController implements the CRUD actions for Sekolah model.
......@@ -52,9 +53,12 @@ class SekolahController extends Controller
$searchModel = new SekolahSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
$model = new Sekolah();
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
'model' => $model,
]);
}
......@@ -79,8 +83,17 @@ class SekolahController extends Controller
{
$model = new Sekolah();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->id]);
if ($model->load(Yii::$app->request->post())) {
$sekolah = $model->nama_sekolah;
$foto_sekolah = UploadedFile::getInstance($model, 'foto_sekolah');
$model->foto_sekolah = $foto_sekolah->baseName. '.'.$foto_sekolah->extension;
if($model->save()){
$foto_sekolah->saveAs('gambarsekolah/'.$model->foto_sekolah);
return $this->redirect(['view','id' =>$model->id]);
}
} else {
return $this->render('create', [
'model' => $model,
......@@ -88,6 +101,7 @@ class SekolahController extends Controller
}
}
/**
* Updates an existing Sekolah model.
* If update is successful, the browser will be redirected to the 'view' page.
......@@ -135,4 +149,21 @@ class SekolahController extends Controller
throw new NotFoundHttpException('The requested page does not exist.');
}
}
public function actionIndexsekolah($id)
{
return $this->render('indexsekolah',[
'model' => $this->findModelSekolah($id),
]);
}
protected function findModelSekolah($id)
{
if(($model = Sekolah::find()->where('id = :id',[':id' => $id])->one()) !== null){
return $model;
}
else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}
}
<?php
namespace app\controllers;
use Yii;
use app\models\Siswa;
use app\models\SiswaSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* SiswaController implements the CRUD actions for Siswa model.
*/
class SiswaController extends Controller
{
/**
* @inheritdoc
*/
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
],
],
];
}
/**
* Lists all Siswa models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new SiswaSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single Siswa model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new Siswa model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new Siswa();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->id]);
} else {
return $this->render('create', [
'model' => $model,
]);
}
}
/**
* Updates an existing Siswa model.
* If update is successful, the browser will be redirected to the 'view' page.
* @param integer $id
* @return mixed
*/
public function actionUpdate($id)
{
$model = $this->findModel($id);
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
/**
* Deletes an existing Siswa model.
* If deletion is successful, the browser will be redirected to the 'index' page.
* @param integer $id
* @return mixed
*/
public function actionDelete($id)
{
$this->findModel($id)->delete();
return $this->redirect(['index']);
}
/**
* Finds the Siswa model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return Siswa the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = Siswa::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}
}
......@@ -6,6 +6,9 @@ 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
......@@ -22,10 +25,19 @@ class SiteController extends Controller
'class' => AccessControl::className(),
'rules' => [
[
'actions' => ['index', 'index'],
'allow' => true,
],
[
'actions' => ['login', 'error'],
'allow' => true,
],
[
'actions' => ['about', 'index'],
'allow' => true,
'roles' => ['@'],
],
[
'actions' => ['logout', 'index'],
'allow' => true,
'roles' => ['@'],
......@@ -50,6 +62,10 @@ class SiteController extends Controller
'error' => [
'class' => 'yii\web\ErrorAction',
],
'captcha' => [
'class' => 'yii\captcha\CaptchaAction',
'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null,
],
];
}
......@@ -60,7 +76,11 @@ class SiteController extends Controller
*/
public function actionIndex()
{
return $this->render('index');
return $this->render('index',
[
]
);
}
/**
......@@ -77,11 +97,11 @@ class SiteController extends Controller
$model = new LoginForm();
if ($model->load(Yii::$app->request->post()) && $model->login()) {
return $this->goBack();
} else {
return $this->render('login', [
'model' => $model,
]);
}
return $this->render('login', [
'model' => $model,
]);
}
/**
......@@ -96,6 +116,32 @@ class SiteController extends Controller
return $this->goHome();
}
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 actionDaftarTk() {
return $this->render('daftar_TK',
[
]
);
}
public function actionTest()
{
return $this->render('test');
......
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "jenjang".
*
* @property integer $id
* @property string $jenjang
* @property string $created_at
* @property string $updated_at
* @property string $deleted_at
* @property integer $deleted
* @property string $created_by
* @property string $updated_by
* @property string $deleted_by
*/
class Jenjang extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'jenjang';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['id', 'jenjang', 'created_at', 'updated_at', 'deleted_at', 'deleted', 'created_by', 'updated_by', 'deleted_by'], 'required'],
[['id', 'deleted'], 'integer'],
[['created_at', 'updated_at', 'deleted_at'], 'safe'],
[['jenjang'], 'string', 'max' => 100],
[['created_by', 'updated_by', 'deleted_by'], 'string', 'max' => 32],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'jenjang' => 'Jenjang',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
'deleted_at' => 'Deleted At',
'deleted' => 'Deleted',
'created_by' => 'Created By',
'updated_by' => 'Updated By',
'deleted_by' => 'Deleted By',
];
}
}
......@@ -37,11 +37,13 @@ class Sekolah extends \yii\db\ActiveRecord
public function rules()
{
return [
[['nama_sekolah', 'alamat_sekolah','jenjang' ,'foto_sekolah', 'visi', 'misi', 'created_at', 'updated_at', 'deleted_at', 'deleted', 'created_by', 'updated_by', 'deleted_by'], 'required'],
[['nama_sekolah', 'alamat_sekolah','jenjang' ,'foto_sekolah', 'visi', 'misi'], 'required'],
[['created_at', 'updated_at', 'deleted_at'], 'safe'],
[['deleted'], 'integer'],
[['nama_sekolah', 'alamat_sekolah', 'foto_sekolah', 'visi', 'misi'], 'string', 'max' => 100],
[['nama_sekolah', 'alamat_sekolah'], 'string'],
[[ 'visi', 'misi'], 'string', 'max' => 100],
[['created_by', 'updated_by', 'deleted_by'], 'string', 'max' => 32],
[['foto_sekolah'], 'file', 'extensions' => 'png, jpg, gif'],
];
}
......
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "siswa".
*
* @property integer $id
* @property string $nama
* @property string $nis
* @property string $nisn
* @property string $alamat
* @property string $foto
* @property string $nama_ayah
* @property string $nama_ibu
* @property string $pekerjaan_ayah
* @property string $pekerjaan_ibu
* @property string $penghasilan_ortu
* @property string $nama_wali
* @property string $pekerjaan_wali
* @property string $penghasilan_wali
* @property string $created_at
* @property string $updated_at
* @property string $deleted_at
* @property integer $deleted
* @property string $created_by
* @property string $updated_by
* @property string $deleted_by
*/
class Siswa extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'siswa';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['nama', 'nis', 'nisn', 'alamat', 'foto', 'nama_ayah', 'nama_ibu', 'pekerjaan_ayah', 'pekerjaan_ibu', 'penghasilan_ortu', 'nama_wali', 'pekerjaan_wali', 'penghasilan_wali'], 'required'],
[['created_at', 'updated_at', 'deleted_at'], 'safe'],
[['deleted'], 'integer'],
[['nama', 'nis', 'nisn', 'alamat', 'foto', 'nama_ayah', 'nama_ibu', 'pekerjaan_ayah', 'pekerjaan_ibu', 'penghasilan_ortu', 'nama_wali', 'pekerjaan_wali', 'penghasilan_wali'], 'string', 'max' => 100],
[['created_by', 'updated_by', 'deleted_by'], 'string', 'max' => 32],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'nama' => 'Nama',
'nis' => 'Nis',
'nisn' => 'Nisn',
'alamat' => 'Alamat',
'foto' => 'Foto',
'nama_ayah' => 'Nama Ayah',
'nama_ibu' => 'Nama Ibu',
'pekerjaan_ayah' => 'Pekerjaan Ayah',
'pekerjaan_ibu' => 'Pekerjaan Ibu',
'penghasilan_ortu' => 'Penghasilan Ortu',
'nama_wali' => 'Nama Wali',
'pekerjaan_wali' => 'Pekerjaan Wali',
'penghasilan_wali' => 'Penghasilan Wali',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
'deleted_at' => 'Deleted At',
'deleted' => 'Deleted',
'created_by' => 'Created By',
'updated_by' => 'Updated By',
'deleted_by' => 'Deleted By',
];
}
}
<?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\Siswa;
/**
* SiswaSearch represents the model behind the search form about `app\models\Siswa`.
*/
class SiswaSearch extends Siswa
{
/**
* @inheritdoc
*/
public function rules()
{
return [
[['id', 'deleted'], 'integer'],
[['nama', 'nis', 'nisn', 'alamat', 'foto', 'nama_ayah', 'nama_ibu', 'pekerjaan_ayah', 'pekerjaan_ibu', 'penghasilan_ortu', 'nama_wali', 'pekerjaan_wali', 'penghasilan_wali', 'created_at', 'updated_at', 'deleted_at', 'created_by', 'updated_by', 'deleted_by'], 'safe'],
];
}
/**
* @inheritdoc
*/
public function scenarios()
{
// bypass scenarios() implementation in the parent class
return Model::scenarios();
}
/**
* Creates data provider instance with search query applied
*
* @param array $params
*
* @return ActiveDataProvider
*/
public function search($params)
{
$query = Siswa::find();
// add conditions that should always apply here
$dataProvider = new ActiveDataProvider([
'query' => $query,
]);
$this->load($params);
if (!$this->validate()) {
// uncomment the following line if you do not want to return any records when validation fails
// $query->where('0=1');
return $dataProvider;
}
// grid filtering conditions
$query->andFilterWhere([
'id' => $this->id,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
'deleted_at' => $this->deleted_at,
'deleted' => $this->deleted,
]);
$query->andFilterWhere(['like', 'nama', $this->nama])
->andFilterWhere(['like', 'nis', $this->nis])
->andFilterWhere(['like', 'nisn', $this->nisn])
->andFilterWhere(['like', 'alamat', $this->alamat])
->andFilterWhere(['like', 'foto', $this->foto])
->andFilterWhere(['like', 'nama_ayah', $this->nama_ayah])
->andFilterWhere(['like', 'nama_ibu', $this->nama_ibu])
->andFilterWhere(['like', 'pekerjaan_ayah', $this->pekerjaan_ayah])
->andFilterWhere(['like', 'pekerjaan_ibu', $this->pekerjaan_ibu])
->andFilterWhere(['like', 'penghasilan_ortu', $this->penghasilan_ortu])
->andFilterWhere(['like', 'nama_wali', $this->nama_wali])
->andFilterWhere(['like', 'pekerjaan_wali', $this->pekerjaan_wali])
->andFilterWhere(['like', 'penghasilan_wali', $this->penghasilan_wali])
->andFilterWhere(['like', 'created_by', $this->created_by])
->andFilterWhere(['like', 'updated_by', $this->updated_by])
->andFilterWhere(['like', 'deleted_by', $this->deleted_by]);
return $dataProvider;
}
}
<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
/* @var $this \yii\web\View */
/* @var $content string */
?>
<?php
$script = <<< JS
$(document).ready(function(){
var pathArray = window.location.pathname.split( '/' );
});
JS;
$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'
){
?>
<header class="main-header">
<?php NavBar::begin([
'brandLabel' => '<table><tr><td><img src="'.Yii::getAlias('@web').'/images/logo_emarsada.png'.'"
height="30" width="50"></td><td></td><td><b>SI-Pendidikan</b></tr></table>',
//'brandLabel' =>'Dinas Perizinan',
'brandUrl' => Yii::$app->homeUrl,
'options' => [
'class' => 'navbar navbar-static-top',
'style'=> 'height: 60px',
],
]);
<header class="main-header">
<?= Html::a('<span class="logo-mini">SADisPen</span><span class="logo-lg">SI Pendidikan</span>', Yii::$app->homeUrl, ['class' => 'logo']) ?>
$menuItems = [
['label' => 'HOME', 'url' => ['/site/index']],
<nav class="navbar navbar-static-top" role="navigation">
[
'label' => 'PROFIL SI-Pendidikan ',
'items' => [
['label' => 'Data 1', 'url' => ['#']],
'<li class="divider"></li>',
['label' => 'Data 2', 'url' => ['#']],
'<li class="divider"></li>',
['label' => 'Data 3', 'url' => ['#']],
],
],
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
['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']],
];
<div class="navbar-custom-menu">
echo Nav::widget([
'options' => ['class' => 'navbar-nav navbar-right'],
<ul class="nav navbar-nav">
'items' => $menuItems,
]);
<!-- Messages: style can be found in dropdown.less-->
<li class="dropdown messages-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-envelope-o"></i>
<span class="label label-success">4</span>
</a>
<ul class="dropdown-menu">
<li class="header">You have 4 messages</li>
<li>
<!-- inner menu: contains the actual data -->
<ul class="menu">
<li><!-- start message -->
<a href="#">
<div class="pull-left">
<img src="<?= $directoryAsset ?>/img/user2-160x160.jpg" class="img-circle"
alt="User Image"/>
</div>
<h4>
Support Team
<small><i class="fa fa-clock-o"></i> 5 mins</small>
</h4>
<p>Why not buy a new awesome theme?</p>
</a>
</li>
<!-- end message -->
<li>
<a href="#">
<div class="pull-left">
<img src="<?= $directoryAsset ?>/img/user3-128x128.jpg" class="img-circle"
alt="user image"/>
</div>
<h4>
AdminLTE Design Team
<small><i class="fa fa-clock-o"></i> 2 hours</small>
</h4>
<p>Why not buy a new awesome theme?</p>
</a>
</li>
<li>
<a href="#">
<div class="pull-left">
<img src="<?= $directoryAsset ?>/img/user4-128x128.jpg" class="img-circle"
alt="user image"/>
</div>
<h4>
Developers
<small><i class="fa fa-clock-o"></i> Today</small>
</h4>
<p>Why not buy a new awesome theme?</p>
</a>
</li>
<li>
<a href="#">
<div class="pull-left">
<img src="<?= $directoryAsset ?>/img/user3-128x128.jpg" class="img-circle"
alt="user image"/>
</div>
<h4>
Sales Department
<small><i class="fa fa-clock-o"></i> Yesterday</small>
</h4>
<p>Why not buy a new awesome theme?</p>
</a>
</li>
<li>
<a href="#">
<div class="pull-left">
<img src="<?= $directoryAsset ?>/img/user4-128x128.jpg" class="img-circle"
alt="user image"/>
</div>
<h4>
Reviewers
<small><i class="fa fa-clock-o"></i> 2 days</small>
</h4>
<p>Why not buy a new awesome theme?</p>
</a>
</li>
</ul>
</li>
<li class="footer"><a href="#">See All Messages</a></li>
</ul>
</li>
<li class="dropdown notifications-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-bell-o"></i>
<span class="label label-warning">10</span>
</a>
<ul class="dropdown-menu">
<li class="header">You have 10 notifications</li>
<li>
<!-- inner menu: contains the actual data -->
<ul class="menu">
<li>
<a href="#">
<i class="fa fa-users text-aqua"></i> 5 new members joined today
</a>
</li>
<li>
<a href="#">
<i class="fa fa-warning text-yellow"></i> Very long description here that may
not fit into the page and may cause design problems
</a>
</li>
<li>
<a href="#">
<i class="fa fa-users text-red"></i> 5 new members joined
</a>
</li>
NavBar::end();
?>
</header>
<?php } else { ?>
<header class="main-header">
<li>
<a href="#">
<i class="fa fa-shopping-cart text-green"></i> 25 sales made
</a>
</li>
<li>
<a href="#">
<i class="fa fa-user text-red"></i> You changed your username
</a>
</li>
</ul>
</li>
<li class="footer"><a href="#">View all</a></li>
</ul>
</li>
<!-- Tasks: style can be found in dropdown.less -->
<li class="dropdown tasks-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-flag-o"></i>
<span class="label label-danger">9</span>
</a>
<ul class="dropdown-menu">
<li class="header">You have 9 tasks</li>
<li>
<!-- inner menu: contains the actual data -->
<ul class="menu">
<li><!-- Task item -->
<a href="#">
<h3>
Design some buttons
<small class="pull-right">20%</small>
</h3>
<div class="progress xs">
<div class="progress-bar progress-bar-aqua" style="width: 20%"
role="progressbar" aria-valuenow="20" aria-valuemin="0"
aria-valuemax="100">
<span class="sr-only">20% Complete</span>
</div>
</div>
</a>
</li>
<!-- end task item -->
<li><!-- Task item -->
<a href="#">
<h3>
Create a nice theme
<small class="pull-right">40%</small>
</h3>
<div class="progress xs">
<div class="progress-bar progress-bar-green" style="width: 40%"
role="progressbar" aria-valuenow="20" aria-valuemin="0"
aria-valuemax="100">
<span class="sr-only">40% Complete</span>
</div>
</div>
</a>
</li>
<!-- end task item -->
<li><!-- Task item -->
<a href="#">
<h3>
Some task I need to do
<small class="pull-right">60%</small>
</h3>
<div class="progress xs">
<div class="progress-bar progress-bar-red" style="width: 60%"
role="progressbar" aria-valuenow="20" aria-valuemin="0"
aria-valuemax="100">
<span class="sr-only">60% Complete</span>
</div>
</div>
</a>
<?= Html::a('<span class="logo-mini">SADisPen</span><span class="logo-lg">SI Pendidikan</span>', Yii::$app->homeUrl, ['class' => 'logo']) ?>
<nav class="navbar navbar-static-top" role="navigation">
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<?php
if(\Yii::$app->user->isGuest){
}
else{
?>
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img src="<?= $directoryAsset ?>/img/user2-160x160.jpg" class="user-image" alt="User Image"/>
<span class="hidden-xs"><?= Yii::$app->user->identity->username ?></span>
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header">
<img src="<?= $directoryAsset ?>/img/user2-160x160.jpg" class="img-circle"
alt="User Image"/>
<p>
<?= Yii::$app->user->identity->username ?><br>
<?= Yii::$app->user->identity->email ?>
</p>
</li>
<!-- end task item -->
<li><!-- Task item -->
<a href="#">
<h3>
Make beautiful transitions
<small class="pull-right">80%</small>
</h3>
<div class="progress xs">
<div class="progress-bar progress-bar-yellow" style="width: 80%"
role="progressbar" aria-valuenow="20" aria-valuemin="0"
aria-valuemax="100">
<span class="sr-only">80% Complete</span>
</div>
</div>
</a>
<!-- Menu Footer-->
<li class="user-footer">
<div class="pull-left">
<a href="#" class="btn btn-default btn-flat">Profile</a>
</div>
<div class="pull-right">
<?= Html::a(
'Sign out',
['/site/logout'],
['data-method' => 'post', 'class' => 'btn btn-default btn-flat']
) ?>
</div>
</li>
<!-- end task item -->
</ul>
</li>
<li class="footer">
<a href="#">View all tasks</a>
</li>
</ul>
</li>
<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img src="<?= $directoryAsset ?>/img/user2-160x160.jpg" class="user-image" alt="User Image"/>
<span class="hidden-xs">Alexander Pierce</span>
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header">
<img src="<?= $directoryAsset ?>/img/user2-160x160.jpg" class="img-circle"
alt="User Image"/>
<p>
Alexander Pierce - Web Developer
<small>Member since Nov. 2012</small>
</p>
</li>
<!-- Menu Body -->
<li class="user-body">
<div class="col-xs-4 text-center">
<a href="#">Followers</a>
</div>
<div class="col-xs-4 text-center">
<a href="#">Sales</a>
</div>
<div class="col-xs-4 text-center">
<a href="#">Friends</a>
</div>
</li>
<!-- Menu Footer-->
<li class="user-footer">
<div class="pull-left">
<a href="#" class="btn btn-default btn-flat">Profile</a>
</div>
<div class="pull-right">
<?= Html::a(
'Sign out',
['/site/logout'],
['data-method' => 'post', 'class' => 'btn btn-default btn-flat']
) ?>
</div>
</li>
</ul>
</li>
<!-- User Account: style can be found in dropdown.less -->
<li>
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
</li>
</ul>
</div>
</nav>
</header>
<?php
}
?>
</ul>
</div>
</nav>
</header>
<?php } ?>
......@@ -32,9 +32,10 @@
'items' => [
['label' => 'Menu Yii2', 'options' => ['class' => 'header']],
['label' => 'Gii', 'icon' => 'file-code-o', 'url' => ['/gii']],
['label' => 'Home', 'icon' => 'dashboard', 'url' =>['/'] ],
['label' => 'Home', 'icon' => 'dashboard', 'url' =>['/site/about'] ],
['label' => 'User', 'icon' => 'fa fa-user', 'url' => ['/users/index']],
['label' => 'Sekolah', 'icon' => 'fa fa-book', 'url' => ['/sekolah/index']],
// ['label' => 'Siswa', 'icon' => 'fa fa-user' , 'url' => ['/siswa/index']],
['label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest],
// [
// 'label' => 'Same tsools',
......
<?php
use yii\helpers\Html;
use yii\helpers\Url;
/* @var $this \yii\web\View */
/* @var $content string */
if (Yii::$app->controller->action->id === 'login') {
if (Yii::$app->controller->action->id === 'login') {
/**
* Do not use this code in your template. Remove it.
* Do not use this code in your template. Remove it.
* Instead, use the code $this->layout = '//main-login'; in your controller.
*/
echo $this->render(
'main-login',
['content' => $content]
);
} else {
}else{
if (class_exists('backend\assets\AppAsset')) {
backend\assets\AppAsset::register($this);
} else {
app\assets\AppAsset::register($this);
}
dmstr\web\AdminLteAsset::register($this);
$directoryAsset = Yii::$app->assetManager->getPublishedUrl('@vendor/almasaeed2010/adminlte/dist');
?>
<?php $this->beginPage() ?>
......@@ -33,9 +29,37 @@ if (Yii::$app->controller->action->id === 'login') {
<meta charset="<?= Yii::$app->charset ?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<?= Html::csrfMetaTags() ?>
<title><?= Html::encode($this->title) ?></title>
<title>SI Pendidikan</title>
<?php $this->head() ?>
</head>
<?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')
{
?>
<body class="hold-transition skin-blue layout-top-nav">
<?php $this->beginBody() ?>
<div class="wrapper">
<?= $this->render(
'header.php',
['directoryAsset' => $directoryAsset]
) ?>
<?= $this->render(
'content.php',
['content' => $content, 'directoryAsset' => $directoryAsset]
) ?>
</div>
<?php $this->endBody() ?>
</body>
<?php
}else {
?>
<body class="hold-transition skin-blue sidebar-mini">
<?php $this->beginBody() ?>
<div class="wrapper">
......@@ -60,6 +84,9 @@ if (Yii::$app->controller->action->id === 'login') {
<?php $this->endBody() ?>
</body>
<?php
}
?>
</html>
<?php $this->endPage() ?>
<?php } ?>
......@@ -2,10 +2,12 @@
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
use app\models\Jenjang;
/* @var $this yii\web\View */
/* @var $model app\models\Sekolah */
/* @var $form yii\widgets\ActiveForm */
/* @var $form yii\widgets\ActiveForm
<!-- -->*/
?>
<div class="sekolah-form">
......@@ -15,12 +17,13 @@ use yii\widgets\ActiveForm;
<?= $form->field($model, 'nama_sekolah')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'alamat_sekolah')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'jenjang')->dropDownList(ArrayHelper::map(Jenjang::find()->all(), 'jenjang', 'jenjang'), ['prompt' => 'Pilih Jenjang']) ?>
<?= $form->field($model, 'foto_sekolah')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'visi')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'foto_sekolah')->fileInput() ?>
<?= $form->field($model, 'visi')->textarea(['rows' => 3]) ?>
<?= $form->field($model, 'misi')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'misi')->textarea(['rows' => 3]) ?>
<!-- <?= $form->field($model, 'created_at')->textInput() ?>
......
......@@ -2,6 +2,9 @@
use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\Url;
use app\models\Sekolah;
use app\controllers\SekolahController;
/* @var $this yii\web\View */
/* @var $searchModel app\models\SekolahSearch */
......@@ -24,11 +27,19 @@ $this->params['breadcrumbs'][] = $this->title;
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'id',
'nama_sekolah',
'alamat_sekolah',
'foto_sekolah',
'visi',
'jenjang',
// [
// 'attribute' => 'Foto Sekolah',
// 'format' => 'raw',
// 'value' => function ($model) {
// if ($model->foto_sekolah!='')
// return '<img src="'.Yii::getAlias('@web'). '/gambarsekolah/'.$model->foto_sekolah.'" width="100px" height="auto">'; else return 'no image';
// },
// ],
// 'misi',
// 'created_at',
// 'updated_at',
......@@ -37,8 +48,8 @@ $this->params['breadcrumbs'][] = $this->title;
// 'created_by',
// 'updated_by',
// 'deleted_by',
['class' => 'yii\grid\ActionColumn'],
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
]);
?>
</div>
<?php
/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use app\models\Sekolah;
use app\models\SekolahSearch;
use app\controller\SekolahController;
$this->title = '';
?>
<div class="site-index">
<div class="jumbotron" style="background-image: url('/gambarsekolah/'.<?$model->foto_sekolah?>); background-size: cover;
background-position: center top; padding: 8em 6em 6em 6em; background-repeat: no-repeat;">
<h1>Nama Sekolah</h1>
<h3>Alamat sekolah</h3>
</div>
<div class="body-content">
<div class="row">
<div class="col-lg-6">
<h2>Visi</h2>
<p>
<?
$model->visi;
?></p>
<p><a class="btn btn-default" href="http://www.yiiframework.com/doc/">Yii Documentation &raquo;</a></p>
</div>
<div class="col-lg-6">
<h2>Misi</h2>
<p><?
$model->misi;
?></p>
<p><a class="btn btn-default" href="http://www.yiiframework.com/forum/">Yii Forum &raquo;</a></p>
</div>
</div>
</br>
<div class="row">
<div class="col-lg-3">
<div class="jumbotron" style="background-image: url(images/siswa.png); background-repeat: no-repeat; background-position: center top;">
</br></br></br>
<h2 class="">Siswa</h2>
</div>
</div>
<div class="col-lg-3">
<div class="jumbotron" style="background-image: url(images/guru.png); background-repeat: no-repeat; background-position: center top;">
</br></br></br>
<h2>Guru</h2>
</div>
</div>
<div class="col-lg-3">
<div class="jumbotron" style="background-image: url(images/alumni.png); background-repeat: no-repeat; background-position: center top;">
</br></br></br>
<h2>Alumni</h2>
</div>
</div>
<div class="col-lg-3">
<div class="jumbotron" style="background-image: url(images/ekstrakulikuler.png); background-repeat: no-repeat; background-position: center top;">
</br></br></br>
<h2>Ekstrakulikuler</h2>
</div>
</div>
</div>
</div>
</div>
......@@ -31,16 +31,23 @@ $this->params['breadcrumbs'][] = $this->title;
'id',
'nama_sekolah',
'alamat_sekolah',
'foto_sekolah',
[
'attribute' => 'Foto',
'format' => 'raw',
'value' => function ($model) {
if ($model->foto_sekolah!='')
return '<img src="'.Yii::getAlias('@web'). '/gambarsekolah/'.$model->foto_sekolah.'" width="100px" height="auto">'; else return 'no image';
},
],
'visi',
'misi',
'created_at',
'updated_at',
'deleted_at',
'deleted',
'created_by',
'updated_by',
'deleted_by',
// 'created_at',
// 'updated_at',
// 'deleted_at',
// 'deleted',
// 'created_by',
// 'updated_by',
// 'deleted_by',
],
]) ?>
......
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\Siswa */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="siswa-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'nama')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'nis')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'nisn')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'alamat')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'foto')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'nama_ayah')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'nama_ibu')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'pekerjaan_ayah')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'pekerjaan_ibu')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'penghasilan_ortu')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'nama_wali')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'pekerjaan_wali')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'penghasilan_wali')->textInput(['maxlength' => true]) ?>
<!-- <?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
<?= $form->field($model, 'deleted_at')->textInput() ?>
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'deleted_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>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\SiswaSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="siswa-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'id') ?>
<?= $form->field($model, 'nama') ?>
<?= $form->field($model, 'nis') ?>
<?= $form->field($model, 'nisn') ?>
<?= $form->field($model, 'alamat') ?>
<?php // echo $form->field($model, 'foto') ?>
<?php // echo $form->field($model, 'nama_ayah') ?>
<?php // echo $form->field($model, 'nama_ibu') ?>
<?php // echo $form->field($model, 'pekerjaan_ayah') ?>
<?php // echo $form->field($model, 'pekerjaan_ibu') ?>
<?php // echo $form->field($model, 'penghasilan_ortu') ?>
<?php // echo $form->field($model, 'nama_wali') ?>
<?php // echo $form->field($model, 'pekerjaan_wali') ?>
<?php // echo $form->field($model, 'penghasilan_wali') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<?php // echo $form->field($model, 'deleted_at') ?>
<?php // echo $form->field($model, 'deleted') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<?php // echo $form->field($model, 'deleted_by') ?>
<div class="form-group">
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\Siswa */
$this->title = 'Create Siswa';
$this->params['breadcrumbs'][] = ['label' => 'Siswas', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="siswa-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel app\models\SiswaSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Siswas';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="siswa-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Create Siswa', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'id',
'nama',
'nis',
'nisn',
'alamat',
// 'foto',
// 'nama_ayah',
// 'nama_ibu',
// 'pekerjaan_ayah',
// 'pekerjaan_ibu',
// 'penghasilan_ortu',
// 'nama_wali',
// 'pekerjaan_wali',
// 'penghasilan_wali',
// 'created_at',
// 'updated_at',
// 'deleted_at',
// 'deleted',
// 'created_by',
// 'updated_by',
// 'deleted_by',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\Siswa */
$this->title = 'Update Siswa: ' . $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Siswas', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="siswa-update">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model app\models\Siswa */
$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Siswas', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="siswa-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Delete', ['delete', 'id' => $model->id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'id',
'nama',
'nis',
'nisn',
'alamat',
'foto',
'nama_ayah',
'nama_ibu',
'pekerjaan_ayah',
'pekerjaan_ibu',
'penghasilan_ortu',
'nama_wali',
'pekerjaan_wali',
'penghasilan_wali',
// 'created_at',
// 'updated_at',
// 'deleted_at',
// 'deleted',
// 'created_by',
// 'updated_by',
// 'deleted_by',
],
]) ?>
</div>
<?php
use yii\widgets\DetailView;
use app\models\Sekolah;
use app\models\SekolahSearch;
use yii\grid\GridView;
use yii\data\ActiveDataProvider;
use yii\helpers\Html;
use yii\bootstrap\Carousel;
use app\models\DefaultBlog;
use yii\helpers\Url;
//use kartik\widgets\StarRating;
use yii\web\JsExpression;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
$this->title = 'E - Pendidikan';
?>
<?php
$script = <<< JS
$(document).ready(function(){
setTimeout(function() {
$('#w0-warning').fadeOut('fast');
}, 3000); // <-- time in milliseconds
});
JS;
$this->registerJs($script, \yii\web\View::POS_END);
?>
<div class="site-index">
<div class="container">
<div class="row">
<div class="col-lg-8">
<?php
$items = [
[
'title' => 'Sintel',
'href' => 'images/slider02.jpg',
'type' => 'image/jpg',
'poster' => 'images/slider02.jpg'
],
[
'url' => 'images/slider02.jpg',
'src' => 'images/slider02.jpg',
'options' => array('title' => 'Camposanto monumentale (inside)')
],
[
'url' => 'images/slider03.jpg',
'src' => 'images/slider03.jpg',
'options' => array('title' => 'Hafsten - Sunset')
],
[
'url' => 'images/slider04.jpg',
'src' => 'images/slider04.jpg',
'options' => array('title' => 'Hafsten - Sunset')
],
]
?>
</div>
</div>
<hr>
<hr>
<div class="col-lg-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-red">
<div class="inner">
<h3>&nbsp;</h3>
<p><b><h4>Data</h4></b></p>
</div>
<div class="icon">
<i class="fa fa-tasks"></i>
</div>
<!-- <a href="#" class="small-box-footer">View Detail <i class="fa fa-arrow-circle-right"></i></a> -->
<?= Html::a('<p style="font-size:15px;color:white"><b>'.'Data'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['site/list-izin'], ['class' => 'small-box-footer']) ?>
</div>
</div>
<div class="col-lg-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-green">
<div class="inner">
<h3>&nbsp;</h3>
<p><b><h4></h4>Data</h4></b></p>
</div>
<div class="icon">
<i class="fa fa-credit-card"></i>
</div>
<!-- <a href="#" class="small-box-footer">View Detail <i class="fa fa-arrow-circle-right"></i></a> -->
<?= Html::a('<p style="font-size:15px;color:white"><b>'.'Data'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['site/monitoring'], ['class' => 'small-box-footer']) ?>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="col-lg-12 text-center">
<h2></h2>
<hr class="star-primary">
</div>
</div>
<div class="col-md-4">
<div class="panel panel-info">
<div class="panel-heading">
<h4><i class="fa fa-fw fa-compass"></i>TK</h4>
</div>
<div class="panel-body">
<?php
echo GridView::widget([
'dataProvider' => $dataProviderTK,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
[
'attribute' => 'Nama Sekolah',
'format'=>'raw',
'value' => function ($data) {
if($data->jenjang=='TK'){
return $data->nama_sekolah;
}else{
return "";
}}
],
[
'class' => 'yii\grid\ActionColumn',
'template' =>'{view}',
'buttons' =>[
'view' => function ($url, $model){
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]);
}
}
],
],
]);
?>
</div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-success">
<div class="panel-heading">
<h4><i class="fa fa-fw fa-compass"></i>SD</h4>
</div>
<div class="panel-body">
<?php
echo GridView::widget([
'dataProvider' => $dataProviderTK,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
[
'attribute' => 'Nama Sekolah',
'format'=>'raw',
'value' => function ($data) {
if($data->jenjang=='SD'){
return $data->nama_sekolah;
}else{
return "";
}}
],
[
'class' => 'yii\grid\ActionColumn',
'template' =>'{view}',
'buttons' =>[
'view' => function ($url, $model){
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]);
}
}
],
],
]);
?>
</div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-success">
<div class="panel-heading">
<h4><i class="fa fa-fw fa-compass"></i>SMP</h4>
</div>
<div class="panel-body">
<?php
echo GridView::widget([
'dataProvider' => $dataProviderSMP,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
[
'attribute' => 'Nama Sekolah',
'format'=>'raw',
'value' => function ($data) {
if($data->jenjang=='SMP'){
return $data->nama_sekolah;
}else{
return "";
}}
],
[
'class' => 'yii\grid\ActionColumn',
'template' =>'{view}',
'buttons' =>[
'view' => function ($url, $model){
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]);
}
}
],
],
]);
?>
</div>
</div>
</div>
</div>
</div>
<hr>
</div>
</div>
<?php
/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\bootstrap\Carousel;
use app\models\DefaultBlog;
//use miloschuman\highcharts\Highcharts;
//use pollext\poll\Poll;
//use kartik\widgets\StarRating;
use yii\web\JsExpression;
use yii\widgets\ActiveForm;
$this->title = '';
?>
<?php
$script = <<< JS
$(document).ready(function(){
setTimeout(function() {
$('#w0-warning').fadeOut('fast');
}, 3000); // <-- time in milliseconds
});
JS;
$this->registerJs($script, \yii\web\View::POS_END);
?>
<div class="site-index">
<div class="container">
<div class="row">
<div class="col-lg-8">
<?php
$items = [
[
'title' => 'Sintel',
'href' => 'images/slider02.jpg',
'type' => 'image/jpg',
'poster' => 'images/slider02.jpg'
],
[
'url' => 'images/slider02.jpg',
'src' => 'images/slider02.jpg',
'options' => array('title' => 'Camposanto monumentale (inside)')
],
[
'url' => 'images/slider03.jpg',
'src' => 'images/slider03.jpg',
'options' => array('title' => 'Hafsten - Sunset')
],
[
'url' => 'images/slider04.jpg',
'src' => 'images/slider04.jpg',
'options' => array('title' => 'Hafsten - Sunset')
],
]
?>
</div>
</div>
<hr>
<hr>
<div class="col-lg-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-red">
<div class="inner">
<h3>&nbsp;</h3>
<p><b><h4>Persyaratan Umum</h4></b></p>
</div>
<div class="icon">
<i class="fa fa-tasks"></i>
</div>
<!-- <a href="#" class="small-box-footer">View Detail <i class="fa fa-arrow-circle-right"></i></a> -->
<?= Html::a('<p style="font-size:15px;color:white"><b>'.'Lihat Syarat Izin'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['site/list-izin'], ['class' => 'small-box-footer']) ?>
</div>
</div>
<div class="col-lg-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-green">
<div class="inner">
<h3>&nbsp;</h3>
<p><b><h4>Tracking Berkas</h4></b></p>
</div>
<div class="icon">
<i class="fa fa-credit-card"></i>
</div>
<!-- <a href="#" class="small-box-footer">View Detail <i class="fa fa-arrow-circle-right"></i></a> -->
<?= Html::a('<p style="font-size:15px;color:white"><b>'.'Cek Berkas Anda'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['site/monitoring'], ['class' => 'small-box-footer']) ?>
</div>
</div>
<div class="col-lg-4 col-xs-6">
<div class="small-box bg-yellow">
<div class="inner">
<h3>&nbsp;</h3>
<p><b><h4>Pengaduan Online</h4></b></p>
</div>
<div class="icon">
<i class="fa fa-wpforms"></i>
</div>
<!-- <a href="#" class="small-box-footer">View Detail <i class="fa fa-arrow-circle-right"></i></a> -->
<?= Html::a('<p style="font-size:15px;color:white"><b>'.'Isi Form Pengaduan'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['site/pengaduan'], ['class' => 'small-box-footer']) ?>
</div>
</div>
<div class="col-lg-4 col-xs-6">
<div class="small-box bg-aqua">
<div class="inner">
<h3>&nbsp;</h3>
<p><b><h4>Pengecekan Izin</h4></b></p>
</div>
<div class="icon">
<i class="fa fa-check-square-o"></i>
</div>
<!-- <a href="#" class="small-box-footer">View Detail <i class="fa fa-arrow-circle-right"></i></a> -->
<?= Html::a('<p style="font-size:15px;color:white"><b>'.'Cek Izin Anda'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['site/pengecekan'], ['class' => 'small-box-footer']) ?>
</div>
</div>
<div class="col-lg-4 col-xs-6">
<div class="small-box bg-yellow">
<div class="inner">
<h3>&nbsp;</h3>
<p><b><h4>Simulasi Retribusi</h4></b></p>
</div>
<div class="icon">
<i class="fa fa-money"></i>
</div>
<!-- <a href="#" class="small-box-footer">View Detail <i class="fa fa-arrow-circle-right"></i></a> -->
<?= Html::a('<p style="font-size:15px;color:white"><b>'.'Simulasi Retribusi Izin'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['site/simulasiretribusi'], ['class' => 'small-box-footer']) ?>
</div>
</div>
<div class="col-lg-4 col-xs-6">
<div class="small-box bg-red">
<div class="inner">
<h3>&nbsp;</h3>
<p><b><h4>Cara Mendaftar Online</h4></b></p>
</div>
<div class="icon">
<i class="fa fa-list"></i>
</div>
<!-- <a href="#" class="small-box-footer">View Detail <i class="fa fa-arrow-circle-right"></i></a> -->
<?= Html::a('<p style="font-size:15px;color:white"><b>'.'Lihat Cara Daftar Online'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['tbpelanggan/create'], ['class' => 'small-box-footer']) ?>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="col-md-12"></div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="col-lg-12 text-center">
<h2></h2>
<hr class="star-primary">
</div>
</div>
<div class="col-md-4">
<div class="panel panel-info">
<div class="panel-heading">
<h4><i class="fa fa-fw fa-check"></i>Kemudahan</h4>
</div>
<div class="panel-body"></div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-success">
<div class="panel-heading">
<h4><i class="fa fa-fw fa-gift"></i>Akses Menyeluruh</h4>
</div>
<div class="panel-body"></div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-danger">
<div class="panel-heading">
<h4><i class="fa fa-fw fa-compass"></i>Cepat dan Tepat</h4>
</div>
<div class="panel-body"></div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-8"></div>
<!-- Blog Sidebar Widgets Column -->
<hr><hr><hr>
<div class="col-md-4">
<!-- Lihat Permohonan -->
<div class="box box-danger box-solid">
<div class="box-header with-border">
<h2 class="box-title"><b>LIHAT PERMOHONAN</b></h2>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
</button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="small-box bg-aqua">
<?= Html::a('<p style="font-size:20px;color:white"><b>'.'Daftar Permohonan'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['site/daftarpermohonan'], ['class' => 'small-box-footer']) ?>
</div>
<div class="small-box bg-green">
<?= Html::a('<p style="font-size:20px;color:white"><b>'.'Permohonan Diterbitkan'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['site/permohonanterbit'], ['class' => 'small-box-footer']) ?>
</div>
<div class="small-box bg-blue">
<?= Html::a('<p style="font-size:20px;color:white"><b>'.'Permohonan Belum Ambil'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['site/permohonanbelumambil'], ['class' => 'small-box-footer']) ?>
</div>
<div class="small-box bg-yellow">
<?= Html::a('<p style="font-size:20px;color:white"><b>'.'Permohonan Ditolak'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['site/permohonangagal'], ['class' => 'small-box-footer']) ?>
</div>
</div>
<!-- /.box-body -->
</div>
<!-- Daftar Download -->
<div class="box box-danger box-solid">
<div class="box-header with-border">
<h2 class="box-title"><b>DAFTAR DOWNLOAD</b></h2>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
</button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="row">
<div class="col-lg-12">
<ul class="list-unstyled">
<li><a href="<?php echo Yii::getAlias('@web'). '/upload/files/PERMENDAGRI_22_2016.pdf' ?>">PERMENDAGRI Nomor 22 Tahun 2016</a>
</li>
<li><a href="<?php echo Yii::getAlias('@web'). '/upload/files/PERMENDAGRI_PedomanPerizinan.pdf' ?>">PERMENDAGRI Tentang Pedoman Perizinan</a>
</li>
<li><a href="<?php echo Yii::getAlias('@web'). '/upload/files/PERMENDAGRI-37-2007-PenerbitanSIUP.pdf' ?>">PERMENDAGRI Nomor 22 Tahun 2007 Penertiban SIUP</a>
</li>
<li><a href="<?php echo Yii::getAlias('@web'). '/upload/files/PERMENKES_31_2016-Farmasi.pdf' ?>">PERMENKES Nomor 31 Tahun2016 - Farmasi</a>
</li>
<li><a href="<?php echo Yii::getAlias('@web'). '/upload/files/SAB_PERMENDAG_7_2017-SIUP.pdf' ?>">PERMENDAGRI Nomor 7 Tahun 2017 - SIUP</a>
</li>
<li><a href="<?php echo Yii::getAlias('@web'). '/upload/files/SAB_PERMENDAG_8_2017-RegisterPerusahaan.pdf' ?>">PERMENDAGRI Nomor 8 Tahun 2017 - Register Perusahaan</a>
</li>
<li><a href="<?php echo Yii::getAlias('@web'). '/upload/files/SIUP_TidakPerluPerpanjang.pdf' ?>">SIUP Tidak Perlu Perpanjang</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<!-- KEPUASAN PERIZINAN -->
<div class="box box-danger box-solid">
<div class="box-header with-border">
<h2 class="box-title"><b>KEPUASAN SECARA KESELURUHAN</b></h2>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
</button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body"></div>
</div>
<div class="box box-danger box-solid">
<div class="box-header with-border">
<h2 class="box-title"><b>PARTISIPASI SURVEY</b></h2>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
</button>
</div>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="small-box bg-blue">
<div class="inner">
<b><p style="font-size:20px"></p></b>
<?= Html::a('<p style="font-size:20px;color:white"><b>'.'Partisipasi Survey Perizinan & Lihat Hasil'.'</b></p>', ['site/surveymasyarakat'], ['class' => '']) ?>
</div>
</div>
</div>
</div>
</div>
<!-- Side Widget Well -->
</div>
<!-- /.row -->
</div>
<hr>
</div>
</div>
<?php
/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\bootstrap\Carousel;
use app\models\DefaultBlog;
//use miloschuman\highcharts\Highcharts;
//use pollext\poll\Poll;
//use kartik\widgets\StarRating;
use yii\web\JsExpression;
use yii\widgets\ActiveForm;
use app\models\IboMasterSurveyKepuasan;
use app\models\IboMasterBerita;
use app\models\IboMasterSlider;
use app\models\IboMasterKategoriBerita;
$this->title = '';
?>
<?php
$script = <<< JS
$(document).ready(function(){
setTimeout(function() {
$('#w0-warning').fadeOut('fast');
}, 3000); // <-- time in milliseconds
});
JS;
$this->registerJs($script, \yii\web\View::POS_END);
?>
<div class="site-index">
<div class="container">
<div class="row">
<div class="col-lg-8">
<?php
$items = [
[
'title' => 'Sintel',
'href' => 'images/slider02.jpg',
'type' => 'image/jpg',
'poster' => 'images/slider02.jpg'
],
[
'url' => 'images/slider02.jpg',
'src' => 'images/slider02.jpg',
'options' => array('title' => 'Camposanto monumentale (inside)')
],
[
'url' => 'images/slider03.jpg',
'src' => 'images/slider03.jpg',
'options' => array('title' => 'Hafsten - Sunset')
],
[
'url' => 'images/slider04.jpg',
'src' => 'images/slider04.jpg',
'options' => array('title' => 'Hafsten - Sunset')
],
]
?>
</div>
</div>
<hr>
<hr>
<div class="col-lg-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-red">
<div class="inner">
<h3>&nbsp;</h3>
<p><b><h4>Data SMP</h4></b></p>
</div>
<div class="icon">
<i class="fa fa-tasks"></i>
</div>
<!-- <a href="#" class="small-box-footer">View Detail <i class="fa fa-arrow-circle-right"></i></a> -->
<?= Html::a('<p style="font-size:15px;color:white"><b>'.'Data SMP'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['site/list-izin'], ['class' => 'small-box-footer']) ?>
</div>
</div>
<div class="col-lg-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-green">
<div class="inner">
<h3>&nbsp;</h3>
<p><b><h4></h4>Data SMP</h4></b></p>
</div>
<div class="icon">
<i class="fa fa-credit-card"></i>
</div>
<!-- <a href="#" class="small-box-footer">View Detail <i class="fa fa-arrow-circle-right"></i></a> -->
<?= Html::a('<p style="font-size:15px;color:white"><b>'.'DataSMP'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['site/monitoring'], ['class' => 'small-box-footer']) ?>
</div>
</div>
<div class="col-lg-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-yellow">
<div class="inner">
<h3>&nbsp;</h3>
<p><b><h4></h4>Data SMP</h4></b></p>
</div>
<div class="icon">
<i class="fa fa-credit-card"></i>
</div>
<!-- <a href="#" class="small-box-footer">View Detail <i class="fa fa-arrow-circle-right"></i></a> -->
<?= Html::a('<p style="font-size:15px;color:white"><b>'.'Data SMP'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['site/monitoring'], ['class' => 'small-box-footer']) ?>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="col-lg-12 text-center">
<h2></h2>
<hr class="star-primary">
</div>
</div>
<div class="col-md-4">
<div class="panel panel-info">
<div class="panel-heading">
<h4><i class="fa fa-fw fa-check"></i>Data 1</h4>
</div>
<div class="panel-body"></div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-success">
<div class="panel-heading">
<h4><i class="fa fa-fw fa-gift"></i>Data 2</h4>
</div>
<div class="panel-body"></div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-danger">
<div class="panel-heading">
<h4><i class="fa fa-fw fa-compass"></i>Data 3</h4>
</div>
<div class="panel-body"></div>
</div>
</div>
</div>
</div>
<hr>
</div>
</div>
<?php
/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\bootstrap\Carousel;
use app\models\DefaultBlog;
//use miloschuman\highcharts\Highcharts;
//use pollext\poll\Poll;
//use kartik\widgets\StarRating;
use yii\web\JsExpression;
use yii\widgets\ActiveForm;
$this->title = '';
?>
<div class="tbho-create" style="margin-top: 20px">
<div class="container">
<div class="col-sm-16">
<div class="box box-danger">
<div class="box-header with-border">
<center><h2>DAFTAR TK</h2></center>
</div>
<div class="box-body with-border">
<?php
$searchModel = new SekolahSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
?>
<?php
echo GridView::widget([
'dataProvider' => $dataProviderTK,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
[
'attribute' => 'Nama Sekolah',
'format'=>'raw',
'value' => function ($data) {
if($data->jenjang=='TK'){
return $data->nama_sekolah;
}else{
return "";
}}
],
[
'class' => 'yii\grid\ActionColumn',
'template' =>'{view}',
'buttons' =>[
'view' => function ($url, $model){
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>
<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">&times;</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>
';
}
],*/
// 'created_at',
// 'updated_at',
// 'created_by',
// 'updated_by',
// 'active',
//['class' => 'yii\grid\ActionColumn'],
],
]);
?>
</div>
</div>
</div>
</div>
</div>
<?php
/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\bootstrap\Carousel;
use app\models\DefaultBlog;
//use miloschuman\highcharts\Highcharts;
//use pollext\poll\Poll;
//use kartik\widgets\StarRating;
use yii\web\JsExpression;
use yii\widgets\ActiveForm;
use app\models\IboMasterSurveyKepuasan;
use app\models\IboMasterBerita;
use app\models\IboMasterSlider;
use app\models\IboMasterKategoriBerita;
$this->title = '';
$this->title = 'My Yii Application';
?>
<div class="site-index">
<?php
$script = <<< JS
$(document).ready(function(){
setTimeout(function() {
$('#w0-warning').fadeOut('fast');
}, 3000); // <-- time in milliseconds
});
JS;
$this->registerJs($script, \yii\web\View::POS_END);
<div class="jumbotron">
<h1>Congratulations!</h1>
?>
<p class="lead">You have successfully created your Yii-powered application.</p>
<p><a class="btn btn-lg btn-success" href="http://www.yiiframework.com">Get started with Yii</a></p>
</div>
<div class="body-content">
<div class="site-index">
<div class="container">
<div class="row">
<div class="col-lg-4">
<h2>Heading</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.</p>
<div class="col-lg-8">
<?php
$items = [
[
'title' => 'Sintel',
'href' => 'images/slider02.jpg',
'type' => 'image/jpg',
'poster' => 'images/slider02.jpg'
],
[
'url' => 'images/slider02.jpg',
'src' => 'images/slider02.jpg',
'options' => array('title' => 'Camposanto monumentale (inside)')
],
[
'url' => 'images/slider03.jpg',
'src' => 'images/slider03.jpg',
'options' => array('title' => 'Hafsten - Sunset')
],
[
'url' => 'images/slider04.jpg',
'src' => 'images/slider04.jpg',
'options' => array('title' => 'Hafsten - Sunset')
],
]
?>
</div>
</div>
<hr>
<hr>
<div class="col-lg-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-red">
<div class="inner">
<h3>&nbsp;</h3>
<p><a class="btn btn-default" href="http://www.yiiframework.com/doc/">Yii Documentation &raquo;</a></p>
<p><b><h4>Data</h4></b></p>
</div>
<div class="icon">
<i class="fa fa-tasks"></i>
</div>
<!-- <a href="#" class="small-box-footer">View Detail <i class="fa fa-arrow-circle-right"></i></a> -->
<?= Html::a('<p style="font-size:15px;color:white"><b>'.'Data'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['#'], ['class' => 'small-box-footer']) ?>
</div>
<div class="col-lg-4">
<h2>Heading</h2>
</div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.</p>
<div class="col-lg-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-green">
<div class="inner">
<h3>&nbsp;</h3>
<p><a class="btn btn-default" href="http://www.yiiframework.com/forum/">Yii Forum &raquo;</a></p>
<p><b><h4></h4>Data</h4></b></p>
</div>
<div class="icon">
<i class="fa fa-credit-card"></i>
</div>
<!-- <a href="#" class="small-box-footer">View Detail <i class="fa fa-arrow-circle-right"></i></a> -->
<?= Html::a('<p style="font-size:15px;color:white"><b>'.'Data'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['#'], ['class' => 'small-box-footer']) ?>
</div>
<div class="col-lg-4">
<h2>Heading</h2>
</div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.</p>
<div class="col-lg-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-yellow">
<div class="inner">
<h3>&nbsp;</h3>
<p><a class="btn btn-default" href="http://www.yiiframework.com/extensions/">Yii Extensions &raquo;</a></p>
<p><b><h4></h4>Data</h4></b></p>
</div>
<div class="icon">
<i class="fa fa-credit-card"></i>
</div>
<!-- <a href="#" class="small-box-footer">View Detail <i class="fa fa-arrow-circle-right"></i></a> -->
<?= Html::a('<p style="font-size:15px;color:white"><b>'.'Data'.'</b></p>'.'<i class="fa fa-arrow-circle-right"></i>', ['#'], ['class' => 'small-box-footer']) ?>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="col-lg-12 text-center">
<h2></h2>
<hr class="star-primary">
</div>
</div>
<div class="col-md-4">
<div class="panel panel-info">
<div class="panel-heading">
<h4><i class="fa fa-fw fa-check"></i>Data 1</h4>
</div>
<div class="panel-body"></div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-success">
<div class="panel-heading">
<h4><i class="fa fa-fw fa-gift"></i>Data 2</h4>
</div>
<div class="panel-body"></div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-danger">
<div class="panel-heading">
<h4><i class="fa fa-fw fa-compass"></i>Data 3</h4>
</div>
<div class="panel-body"></div>
</div>
</div>
</div>
</div>
<hr>
</div>
</div>
......@@ -21,11 +21,11 @@ $fieldOptions2 = [
<div class="login-box">
<div class="login-logo">
<a href="#"><b>SI</b>Pendidikan</a>
<a href="#"><b>Aplikasi E-Pendidikan</b></a>
</div>
<!-- /.login-logo -->
<div class="login-box-body">
<p class="login-box-msg">Sign in to start your session</p>
<p class="login-box-msg">Login</p>
<?php $form = ActiveForm::begin(['id' => 'login-form', 'enableClientValidation' => false]); ?>
......@@ -40,11 +40,11 @@ $fieldOptions2 = [
->passwordInput(['placeholder' => $model->getAttributeLabel('password')]) ?>
<div class="row">
<div class="col-xs-8">
<?= $form->field($model, 'rememberMe')->checkbox() ?>
<div class="col-xs-3">
</div>
<!-- /.col -->
<div class="col-xs-4">
<div class="col-xs-6">
<?= Html::submitButton('Sign in', ['class' => 'btn btn-primary btn-block btn-flat', 'name' => 'login-button']) ?>
</div>
<!-- /.col -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment