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 ...@@ -63,15 +63,18 @@ class RbacController extends Controller
$update_user = $auth->createPermission('users/update'); $update_user = $auth->createPermission('users/update');
$delete_user = $auth->createPermission('users/delete'); $delete_user = $auth->createPermission('users/delete');
$indexsekolah = $auth->createPermission('sekolah/indexsekolah');
// add "admin" role give this role the index create view update delete // add "admin" role give this role the index create view update delete
$admin = $auth->createRole('admin'); $admin = $auth->createRole('admin');
$auth->add($admin);
$auth->addChild($admin, $index_user); $auth->addChild($admin, $index_user);
$auth->addChild($admin, $create_user); $auth->addChild($admin, $create_user);
$auth->addChild($admin, $view_user); $auth->addChild($admin, $view_user);
$auth->addChild($admin, $update_user); $auth->addChild($admin, $update_user);
$auth->addChild($admin, $delete_user); $auth->addChild($admin, $delete_user);
$auth->addChild($admin, $indexsekolah);
$sekpentk = $auth->createRole('sekpenTK'); $sekpentk = $auth->createRole('sekpenTK');
$auth->add($sekpentk); $auth->add($sekpentk);
...@@ -80,6 +83,7 @@ class RbacController extends Controller ...@@ -80,6 +83,7 @@ class RbacController extends Controller
$auth->addChild($sekpentk, $view); $auth->addChild($sekpentk, $view);
$auth->addChild($sekpentk, $update); $auth->addChild($sekpentk, $update);
$auth->addChild($sekpentk, $delete); $auth->addChild($sekpentk, $delete);
$auth->addChild($sekpentk, $indexsekolah);
$sekpensd = $auth->createRole('sekpenSD'); $sekpensd = $auth->createRole('sekpenSD');
$auth->add($sekpensd); $auth->add($sekpensd);
...@@ -88,6 +92,7 @@ class RbacController extends Controller ...@@ -88,6 +92,7 @@ class RbacController extends Controller
$auth->addChild($sekpensd, $view); $auth->addChild($sekpensd, $view);
$auth->addChild($sekpensd, $update); $auth->addChild($sekpensd, $update);
$auth->addChild($sekpensd, $delete); $auth->addChild($sekpensd, $delete);
$auth->addChild($sekpensd, $indexsekolah);
$sekpensmp = $auth->createRole('sekpenSMP'); $sekpensmp = $auth->createRole('sekpenSMP');
$auth->add($sekpensmp); $auth->add($sekpensmp);
...@@ -96,6 +101,7 @@ class RbacController extends Controller ...@@ -96,6 +101,7 @@ class RbacController extends Controller
$auth->addChild($sekpensmp, $view); $auth->addChild($sekpensmp, $view);
$auth->addChild($sekpensmp, $update); $auth->addChild($sekpensmp, $update);
$auth->addChild($sekpensmp, $delete); $auth->addChild($sekpensmp, $delete);
$auth->addChild($sekpensmp, $indexsekolah);
} }
...@@ -124,6 +130,10 @@ class RbacController extends Controller ...@@ -124,6 +130,10 @@ class RbacController extends Controller
$delete->description = ' Delete a sekolah'; $delete->description = ' Delete a sekolah';
$auth->add($delete); $auth->add($delete);
$indexSekolah = $auth->createPermission('sekolah/indexsekolah');
$indexsekolah->description = 'view homepage a school';
$auth->add($indexsekolah);
/** /**
* Users * Users
*/ */
......
...@@ -9,6 +9,7 @@ use yii\web\Controller; ...@@ -9,6 +9,7 @@ use yii\web\Controller;
use yii\web\NotFoundHttpException; use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter; use yii\filters\VerbFilter;
use yii\filters\AccessControl; use yii\filters\AccessControl;
use yii\web\UploadedFile;
/** /**
* SekolahController implements the CRUD actions for Sekolah model. * SekolahController implements the CRUD actions for Sekolah model.
...@@ -52,9 +53,12 @@ class SekolahController extends Controller ...@@ -52,9 +53,12 @@ class SekolahController extends Controller
$searchModel = new SekolahSearch(); $searchModel = new SekolahSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams); $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
$model = new Sekolah();
return $this->render('index', [ return $this->render('index', [
'searchModel' => $searchModel, 'searchModel' => $searchModel,
'dataProvider' => $dataProvider, 'dataProvider' => $dataProvider,
'model' => $model,
]); ]);
} }
...@@ -79,8 +83,17 @@ class SekolahController extends Controller ...@@ -79,8 +83,17 @@ class SekolahController extends Controller
{ {
$model = new Sekolah(); $model = new Sekolah();
if ($model->load(Yii::$app->request->post()) && $model->save()) { if ($model->load(Yii::$app->request->post())) {
return $this->redirect(['view', 'id' => $model->id]); $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 { } else {
return $this->render('create', [ return $this->render('create', [
'model' => $model, 'model' => $model,
...@@ -88,6 +101,7 @@ class SekolahController extends Controller ...@@ -88,6 +101,7 @@ class SekolahController extends Controller
} }
} }
/** /**
* Updates an existing Sekolah model. * Updates an existing Sekolah model.
* If update is successful, the browser will be redirected to the 'view' page. * If update is successful, the browser will be redirected to the 'view' page.
...@@ -135,4 +149,21 @@ class SekolahController extends Controller ...@@ -135,4 +149,21 @@ class SekolahController extends Controller
throw new NotFoundHttpException('The requested page does not exist.'); 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; ...@@ -6,6 +6,9 @@ use yii\web\Controller;
use yii\filters\VerbFilter; use yii\filters\VerbFilter;
use yii\filters\AccessControl; use yii\filters\AccessControl;
use common\models\LoginForm; use common\models\LoginForm;
use app\models\Sekolah;
use app\models\SekolahSearch;
use app\controller\SiswaController;
/** /**
* Site controller * Site controller
...@@ -22,10 +25,19 @@ class SiteController extends Controller ...@@ -22,10 +25,19 @@ class SiteController extends Controller
'class' => AccessControl::className(), 'class' => AccessControl::className(),
'rules' => [ 'rules' => [
[ [
'actions' => ['index', 'index'],
'allow' => true,
],
[
'actions' => ['login', 'error'], 'actions' => ['login', 'error'],
'allow' => true, 'allow' => true,
], ],
[ [
'actions' => ['about', 'index'],
'allow' => true,
'roles' => ['@'],
],
[
'actions' => ['logout', 'index'], 'actions' => ['logout', 'index'],
'allow' => true, 'allow' => true,
'roles' => ['@'], 'roles' => ['@'],
...@@ -50,6 +62,10 @@ class SiteController extends Controller ...@@ -50,6 +62,10 @@ class SiteController extends Controller
'error' => [ 'error' => [
'class' => 'yii\web\ErrorAction', 'class' => 'yii\web\ErrorAction',
], ],
'captcha' => [
'class' => 'yii\captcha\CaptchaAction',
'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null,
],
]; ];
} }
...@@ -60,7 +76,11 @@ class SiteController extends Controller ...@@ -60,7 +76,11 @@ class SiteController extends Controller
*/ */
public function actionIndex() public function actionIndex()
{ {
return $this->render('index'); return $this->render('index',
[
]
);
} }
/** /**
...@@ -77,11 +97,11 @@ class SiteController extends Controller ...@@ -77,11 +97,11 @@ class SiteController extends Controller
$model = new LoginForm(); $model = new LoginForm();
if ($model->load(Yii::$app->request->post()) && $model->login()) { if ($model->load(Yii::$app->request->post()) && $model->login()) {
return $this->goBack(); return $this->goBack();
} else {
return $this->render('login', [
'model' => $model,
]);
} }
return $this->render('login', [
'model' => $model,
]);
} }
/** /**
...@@ -96,6 +116,32 @@ class SiteController extends Controller ...@@ -96,6 +116,32 @@ class SiteController extends Controller
return $this->goHome(); 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() public function actionTest()
{ {
return $this->render('test'); 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 ...@@ -37,11 +37,13 @@ class Sekolah extends \yii\db\ActiveRecord
public function rules() public function rules()
{ {
return [ 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'], [['created_at', 'updated_at', 'deleted_at'], 'safe'],
[['deleted'], 'integer'], [['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], [['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;
}
}
...@@ -32,9 +32,10 @@ ...@@ -32,9 +32,10 @@
'items' => [ 'items' => [
['label' => 'Menu Yii2', 'options' => ['class' => 'header']], ['label' => 'Menu Yii2', 'options' => ['class' => 'header']],
['label' => 'Gii', 'icon' => 'file-code-o', 'url' => ['/gii']], ['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' => 'User', 'icon' => 'fa fa-user', 'url' => ['/users/index']],
['label' => 'Sekolah', 'icon' => 'fa fa-book', 'url' => ['/sekolah/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' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest],
// [ // [
// 'label' => 'Same tsools', // 'label' => 'Same tsools',
......
<?php <?php
use yii\helpers\Html; use yii\helpers\Html;
use yii\helpers\Url;
/* @var $this \yii\web\View */ /* @var $this \yii\web\View */
/* @var $content string */ /* @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. * Instead, use the code $this->layout = '//main-login'; in your controller.
*/ */
echo $this->render( echo $this->render(
'main-login', 'main-login',
['content' => $content] ['content' => $content]
); );
} else { }else{
if (class_exists('backend\assets\AppAsset')) { if (class_exists('backend\assets\AppAsset')) {
backend\assets\AppAsset::register($this); backend\assets\AppAsset::register($this);
} else { } else {
app\assets\AppAsset::register($this); app\assets\AppAsset::register($this);
} }
dmstr\web\AdminLteAsset::register($this); dmstr\web\AdminLteAsset::register($this);
$directoryAsset = Yii::$app->assetManager->getPublishedUrl('@vendor/almasaeed2010/adminlte/dist'); $directoryAsset = Yii::$app->assetManager->getPublishedUrl('@vendor/almasaeed2010/adminlte/dist');
?> ?>
<?php $this->beginPage() ?> <?php $this->beginPage() ?>
...@@ -33,9 +29,37 @@ if (Yii::$app->controller->action->id === 'login') { ...@@ -33,9 +29,37 @@ if (Yii::$app->controller->action->id === 'login') {
<meta charset="<?= Yii::$app->charset ?>"/> <meta charset="<?= Yii::$app->charset ?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<?= Html::csrfMetaTags() ?> <?= Html::csrfMetaTags() ?>
<title><?= Html::encode($this->title) ?></title> <title>SI Pendidikan</title>
<?php $this->head() ?> <?php $this->head() ?>
</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"> <body class="hold-transition skin-blue sidebar-mini">
<?php $this->beginBody() ?> <?php $this->beginBody() ?>
<div class="wrapper"> <div class="wrapper">
...@@ -60,6 +84,9 @@ if (Yii::$app->controller->action->id === 'login') { ...@@ -60,6 +84,9 @@ if (Yii::$app->controller->action->id === 'login') {
<?php $this->endBody() ?> <?php $this->endBody() ?>
</body> </body>
<?php
}
?>
</html> </html>
<?php $this->endPage() ?> <?php $this->endPage() ?>
<?php } ?> <?php } ?>
...@@ -2,10 +2,12 @@ ...@@ -2,10 +2,12 @@
use yii\helpers\Html; use yii\helpers\Html;
use yii\widgets\ActiveForm; use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
use app\models\Jenjang;
/* @var $this yii\web\View */ /* @var $this yii\web\View */
/* @var $model app\models\Sekolah */ /* @var $model app\models\Sekolah */
/* @var $form yii\widgets\ActiveForm */ /* @var $form yii\widgets\ActiveForm
<!-- -->*/
?> ?>
<div class="sekolah-form"> <div class="sekolah-form">
...@@ -15,12 +17,13 @@ use yii\widgets\ActiveForm; ...@@ -15,12 +17,13 @@ use yii\widgets\ActiveForm;
<?= $form->field($model, 'nama_sekolah')->textInput(['maxlength' => true]) ?> <?= $form->field($model, 'nama_sekolah')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'alamat_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, 'foto_sekolah')->fileInput() ?>
<?= $form->field($model, 'visi')->textInput(['maxlength' => true]) ?> <?= $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() ?> <!-- <?= $form->field($model, 'created_at')->textInput() ?>
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
use yii\helpers\Html; use yii\helpers\Html;
use yii\grid\GridView; use yii\grid\GridView;
use yii\helpers\Url;
use app\models\Sekolah;
use app\controllers\SekolahController;
/* @var $this yii\web\View */ /* @var $this yii\web\View */
/* @var $searchModel app\models\SekolahSearch */ /* @var $searchModel app\models\SekolahSearch */
...@@ -24,11 +27,19 @@ $this->params['breadcrumbs'][] = $this->title; ...@@ -24,11 +27,19 @@ $this->params['breadcrumbs'][] = $this->title;
'columns' => [ 'columns' => [
['class' => 'yii\grid\SerialColumn'], ['class' => 'yii\grid\SerialColumn'],
'id',
'nama_sekolah', 'nama_sekolah',
'alamat_sekolah', 'alamat_sekolah',
'foto_sekolah', 'jenjang',
'visi', // [
// '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', // 'misi',
// 'created_at', // 'created_at',
// 'updated_at', // 'updated_at',
...@@ -37,8 +48,8 @@ $this->params['breadcrumbs'][] = $this->title; ...@@ -37,8 +48,8 @@ $this->params['breadcrumbs'][] = $this->title;
// 'created_by', // 'created_by',
// 'updated_by', // 'updated_by',
// 'deleted_by', // 'deleted_by',
['class' => 'yii\grid\ActionColumn'],
['class' => 'yii\grid\ActionColumn'],
], ],
]); ?> ]);
?>
</div> </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; ...@@ -31,16 +31,23 @@ $this->params['breadcrumbs'][] = $this->title;
'id', 'id',
'nama_sekolah', 'nama_sekolah',
'alamat_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', 'visi',
'misi', 'misi',
'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
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
/* @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 <?php
/* @var $this yii\web\View */ /* @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="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 <div class="col-lg-8">
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 <?php
fugiat nulla pariatur.</p> $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>
<div class="col-lg-4"> </div>
<h2>Heading</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et <div class="col-lg-4 col-xs-6">
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip <!-- small box -->
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu <div class="small-box bg-green">
fugiat nulla pariatur.</p> <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>
<div class="col-lg-4"> </div>
<h2>Heading</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et <div class="col-lg-4 col-xs-6">
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip <!-- small box -->
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu <div class="small-box bg-yellow">
fugiat nulla pariatur.</p> <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>
</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> </div>
...@@ -21,11 +21,11 @@ $fieldOptions2 = [ ...@@ -21,11 +21,11 @@ $fieldOptions2 = [
<div class="login-box"> <div class="login-box">
<div class="login-logo"> <div class="login-logo">
<a href="#"><b>SI</b>Pendidikan</a> <a href="#"><b>Aplikasi E-Pendidikan</b></a>
</div> </div>
<!-- /.login-logo --> <!-- /.login-logo -->
<div class="login-box-body"> <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]); ?> <?php $form = ActiveForm::begin(['id' => 'login-form', 'enableClientValidation' => false]); ?>
...@@ -40,11 +40,11 @@ $fieldOptions2 = [ ...@@ -40,11 +40,11 @@ $fieldOptions2 = [
->passwordInput(['placeholder' => $model->getAttributeLabel('password')]) ?> ->passwordInput(['placeholder' => $model->getAttributeLabel('password')]) ?>
<div class="row"> <div class="row">
<div class="col-xs-8"> <div class="col-xs-3">
<?= $form->field($model, 'rememberMe')->checkbox() ?>
</div> </div>
<!-- /.col --> <!-- /.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']) ?> <?= Html::submitButton('Sign in', ['class' => 'btn btn-primary btn-block btn-flat', 'name' => 'login-button']) ?>
</div> </div>
<!-- /.col --> <!-- /.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