Commit cec2ee01 by NAGAITAN\Adi

-- Complete Project Ready For Testing

parents
{
"directory" : "vendor/bower"
}
# yii console command
/yii
# phpstorm project files
.idea
# netbeans project files
nbproject
# zend studio for eclipse project files
.buildpath
.project
.settings
# windows thumbnail cache
Thumbs.db
# composer vendor dir
/vendor
# composer itself is not needed
composer.phar
# Mac DS_Store Files
.DS_Store
# phpunit itself is not needed
phpunit.phar
# local phpunit config
/phpunit.xml
The Yii framework is free software. It is released under the terms of
the following BSD License.
Copyright © 2008 by Yii Software LLC (http://www.yiisoft.com)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
* Neither the name of Yii Software LLC nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
Yii 2 Advanced Project Template
===============================
Yii 2 Advanced Project Template is a skeleton [Yii 2](http://www.yiiframework.com/) application best for
developing complex Web applications with multiple tiers.
The template includes three tiers: front end, back end, and console, each of which
is a separate Yii application.
The template is designed to work in a team development environment. It supports
deploying the application in different environments.
Documentation is at [docs/guide/README.md](docs/guide/README.md).
[![Latest Stable Version](https://poser.pugx.org/yiisoft/yii2-app-advanced/v/stable.png)](https://packagist.org/packages/yiisoft/yii2-app-advanced)
[![Total Downloads](https://poser.pugx.org/yiisoft/yii2-app-advanced/downloads.png)](https://packagist.org/packages/yiisoft/yii2-app-advanced)
[![Build Status](https://travis-ci.org/yiisoft/yii2-app-advanced.svg?branch=master)](https://travis-ci.org/yiisoft/yii2-app-advanced)
DIRECTORY STRUCTURE
-------------------
```
common
config/ contains shared configurations
mail/ contains view files for e-mails
models/ contains model classes used in both backend and frontend
console
config/ contains console configurations
controllers/ contains console controllers (commands)
migrations/ contains database migrations
models/ contains console-specific model classes
runtime/ contains files generated during runtime
backend
assets/ contains application assets such as JavaScript and CSS
config/ contains backend configurations
controllers/ contains Web controller classes
models/ contains backend-specific model classes
runtime/ contains files generated during runtime
views/ contains view files for the Web application
web/ contains the entry script and Web resources
frontend
assets/ contains application assets such as JavaScript and CSS
config/ contains frontend configurations
controllers/ contains Web controller classes
models/ contains frontend-specific model classes
runtime/ contains files generated during runtime
views/ contains view files for the Web application
web/ contains the entry script and Web resources
widgets/ contains frontend widgets
vendor/ contains dependent 3rd-party packages
environments/ contains environment-based overrides
tests contains various tests for the advanced application
codeception/ contains tests developed with Codeception PHP Testing Framework
```
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace backend\assets;
use yii\web\AssetBundle;
/**
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class AppAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
public $css = [
// 'css/bootstrap.min.css',
'css/site.css',
];
public $js = [
];
public $depends = [
'yii\web\YiiAsset',
'yii\bootstrap\BootstrapAsset',
];
}
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace backend\assets;
use yii\web\AssetBundle;
/**
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class DashboardAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
public $css = [
'css/bootstrap.min.css',
'//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css',
'//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css',
'css/AdminLTE.min.css',
'css/skins/_all-skins.min.css',
'plugins/iCheck/flat/blue.css',
'css/site.css',
];
public $js = [
'//code.jquery.com/ui/1.11.4/jquery-ui.min.js',
'js/bootstrap.min.js',
'cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js',
'plugins/sparkline/jquery.sparkline.min.js',
'plugins/slimScroll/jquery.slimscroll.min.js',
'plugins/fastclick/fastclick.min.js',
'js/app.min.js',
'js/dashboard.js',
'',
];
public $depends = [
'yii\web\YiiAsset',
//'yii\bootstrap\BootstrapAsset',
];
}
namespace: backend\tests
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
helpers: tests/_support
settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 1024M
modules:
config:
Yii2:
configFile: 'config/test-local.php'
main-local.php
params-local.php
test-local.php
<?php
$params = array_merge(
require(__DIR__ . '/../../common/config/params.php'), require(__DIR__ . '/../../common/config/params-local.php'), require(__DIR__ . '/params.php'), require(__DIR__ . '/params-local.php')
);
return [
'id' => 'app-backend',
'basePath' => dirname(__DIR__),
'controllerNamespace' => 'backend\controllers',
'bootstrap' => ['log'],
'modules' => [
'sikk' => [
'class' => 'backend\modules\sikk\Module',
],
],
'components' => [
'request' => [
'csrfParam' => '_csrf-backend',
],
'user' => [
'identityClass' => 'common\models\SikkAkun',
'enableAutoLogin' => true,
'identityCookie' => ['name' => '_identity-backend', 'httpOnly' => true],
],
'urlManager' => [
'enablePrettyUrl' => true,
'rules' => [
// your rules go here
]
],
'session' => [
// this is the name of the session cookie used for login on the backend
'name' => 'advanced-backend',
],
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
],
'errorHandler' => [
'errorAction' => 'site/error',
],
/*
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
],
],
*/
],
'params' => $params,
];
<?php
return [
'adminEmail' => 'admin@example.com',
];
<?php
return [
'id' => 'app-backend-tests',
'components' => [
'assetManager' => [
'basePath' => __DIR__ . '/../web/assets',
],
],
];
<?php
namespace backend\controllers;
use Yii;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use common\models\LoginForm;
/**
* Site controller
*/
class SiteController extends Controller
{
/**
* @inheritdoc
*/
public function behaviors()
{
return [
'access' => [
'class' => AccessControl::className(),
'rules' => [
[
'actions' => ['login', 'error'],
'allow' => true,
],
[
'actions' => ['logout', 'index'],
'allow' => true,
'roles' => ['@'],
],
],
],
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'logout' => ['post'],
],
],
];
}
/**
* @inheritdoc
*/
public function actions()
{
return [
'error' => [
'class' => 'yii\web\ErrorAction',
],
];
}
/**
* Displays homepage.
*
* @return string
*/
public function actionIndex()
{
return $this->render('index');
}
/**
* Login action.
*
* @return string
*/
public function actionLogin()
{
if (!Yii::$app->user->isGuest) {
return $this->goHome();
}
$model = new LoginForm();
if ($model->load(Yii::$app->request->post()) && $model->login()) {
return $this->goBack();
} else {
return $this->render('login', [
'model' => $model,
]);
}
}
/**
* Logout action.
*
* @return string
*/
public function actionLogout()
{
Yii::$app->user->logout();
return $this->goHome();
}
}
<?php
namespace backend\modules\sikk;
/**
* sikk module definition class
*/
class Module extends \yii\base\Module
{
/**
* @inheritdoc
*/
public $controllerNamespace = 'backend\modules\sikk\controllers';
/**
* @inheritdoc
*/
public function init()
{
parent::init();
// custom initialization code goes here
}
}
<?php
namespace backend\modules\sikk\controllers;
use Yii;
use common\models\AdakKelas;
use common\models\search\AdakKelas as AdakKelasSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* AdakKelasController implements the CRUD actions for AdakKelas model.
*/
class AdakKelasController extends Controller
{
/**
* @inheritdoc
*/
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
],
],
];
}
/**
* Lists all AdakKelas models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new AdakKelasSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single AdakKelas model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new AdakKelas model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new AdakKelas();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->kelas_id]);
} else {
return $this->render('create', [
'model' => $model,
]);
}
}
/**
* Updates an existing AdakKelas 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->kelas_id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
/**
* Deletes an existing AdakKelas 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 AdakKelas model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return AdakKelas the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = AdakKelas::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}
}
<?php
namespace backend\modules\sikk\controllers;
use Yii;
use common\models\AdakRegistrasi;
use common\models\search\AdakRegistrasi as AdakRegistrasiSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* AdakRegistrasiController implements the CRUD actions for AdakRegistrasi model.
*/
class AdakRegistrasiController extends Controller
{
/**
* @inheritdoc
*/
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
],
],
];
}
/**
* Lists all AdakRegistrasi models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new AdakRegistrasiSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single AdakRegistrasi model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new AdakRegistrasi model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new AdakRegistrasi();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->registrasi_id]);
} else {
return $this->render('create', [
'model' => $model,
]);
}
}
/**
* Updates an existing AdakRegistrasi 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->registrasi_id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
/**
* Deletes an existing AdakRegistrasi 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 AdakRegistrasi model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return AdakRegistrasi the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = AdakRegistrasi::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}
}
<?php
namespace backend\modules\sikk\controllers;
use yii\web\Controller;
/**
* Default controller for the `sikk` module
*/
class DefaultController extends Controller
{
/**
* Renders the index view for the module
* @return string
*/
public function actionIndex()
{
return $this->render('index');
}
}
<?php
namespace backend\modules\sikk\controllers;
use Yii;
use common\models\DimxDim;
use common\models\search\DimxDim as DimxDimSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* DimxDimController implements the CRUD actions for DimxDim model.
*/
class DimxDimController extends Controller
{
/**
* @inheritdoc
*/
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
],
],
];
}
/**
* Lists all DimxDim models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new DimxDimSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single DimxDim model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
$model = new \common\models\DimxDim();
$modelsikkLog = new \common\models\SikkLog();
if ($model->load(Yii::$app->request->post())) {
$cari = \common\models\DimxDim::findOne(['nim'=>$model->nim]);
$modelsikkLog->mhs_id=$cari->dim_id;
$sql='SELECT log_id FROM sikk_log WHERE mhs_id='.$cari->dim_id.' AND time_out IS NULL';
$hasilQuery = Yii::$app->db->createCommand($sql)->queryAll();
if($hasilQuery==NULL){
Yii::$app->session->setFlash('success', '<b>Anda diizinkan untuk masuk!<b>');
date_default_timezone_set('Asia/Jakarta');
$date = date_create(date('Y-m-d H:i:s'));
$modelsikkLog->time_in=date('Y-m-d H:i:s');
$modelsikkLog->created_at=date('Y-m-d H:i:s');
if($modelsikkLog->save()){
return $this->redirect(['dimx-dim/view', 'id' => $cari->dim_id]);
}
}
if($hasilQuery!=NULL){
date_default_timezone_set('Asia/Jakarta');
$date = date_create(date('Y-m-d H:i:s'));
$date1=date('Y-m-d H:i:s');
$tanggal="'".$date1."'";
Yii::$app->session->setFlash('success', '<b>Anda diizinkan untuk keluar!<b>');
$sql1='UPDATE sikk_log SET time_out='.$tanggal.' WHERE mhs_id='.$cari->dim_id.'';
Yii::$app->db->createCommand($sql1)->execute();
return $this->redirect(['dimx-dim/view', 'id' => $cari->dim_id]);
}else{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
}
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new DimxDim model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new DimxDim();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->dim_id]);
} else {
return $this->render('create', [
'model' => $model,
]);
}
}
/**
* Updates an existing DimxDim 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->dim_id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
/**
* Deletes an existing DimxDim 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 DimxDim model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return DimxDim the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = DimxDim::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}
}
<?php
namespace backend\modules\sikk\controllers;
use Yii;
use common\models\HrdxDosen;
use common\models\search\HrdxDosen as HrdxDosenSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* HrdxDosenController implements the CRUD actions for HrdxDosen model.
*/
class HrdxDosenController extends Controller
{
/**
* @inheritdoc
*/
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
],
],
];
}
/**
* Lists all HrdxDosen models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new HrdxDosenSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single HrdxDosen model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new HrdxDosen model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new HrdxDosen();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->dosen_id]);
} else {
return $this->render('create', [
'model' => $model,
]);
}
}
/**
* Updates an existing HrdxDosen 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->dosen_id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
/**
* Deletes an existing HrdxDosen 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 HrdxDosen model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return HrdxDosen the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = HrdxDosen::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}
}
<?php
namespace backend\modules\sikk\controllers;
use Yii;
use common\models\HrdxPegawai;
use common\models\search\HrdxPegawai as HrdxPegawaiSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* HrdxPegawaiController implements the CRUD actions for HrdxPegawai model.
*/
class HrdxPegawaiController extends Controller
{
/**
* @inheritdoc
*/
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
],
],
];
}
/**
* Lists all HrdxPegawai models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new HrdxPegawaiSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single HrdxPegawai model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new HrdxPegawai model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new HrdxPegawai();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->pegawai_id]);
} else {
return $this->render('create', [
'model' => $model,
]);
}
}
/**
* Updates an existing HrdxPegawai 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->pegawai_id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
/**
* Deletes an existing HrdxPegawai 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 HrdxPegawai model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return HrdxPegawai the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = HrdxPegawai::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}
}
<?php
namespace backend\modules\sikk\controllers;
use Yii;
use common\models\SikkAkun;
use common\models\search\SikkAkun as SikkAkunSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* SikkAkunController implements the CRUD actions for SikkAkun model.
*/
class SikkAkunController extends Controller
{
/**
* @inheritdoc
*/
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
],
],
];
}
/**
* Lists all SikkAkun models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new SikkAkunSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single SikkAkun model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new SikkAkun model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new SikkAkun();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->akun_id]);
} else {
return $this->render('create', [
'model' => $model,
]);
}
}
/**
* Updates an existing SikkAkun 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->akun_id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
/**
* Deletes an existing SikkAkun 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 SikkAkun model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return SikkAkun the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = SikkAkun::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}
}
<?php
namespace backend\modules\sikk\controllers;
use Yii;
use common\models\SikkApproval;
use common\models\search\SikkApprovalSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* SikkApprovalController implements the CRUD actions for SikkApproval model.
*/
class SikkApprovalController extends Controller
{
/**
* @inheritdoc
*/
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
],
],
];
}
/**
* Lists all SikkApproval models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new SikkApprovalSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single SikkApproval model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new SikkApproval model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new SikkApproval();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->approval_id]);
} else {
return $this->render('create', [
'model' => $model,
]);
}
}
/**
* Updates an existing SikkApproval 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->approval_id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
/**
* Deletes an existing SikkApproval 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 SikkApproval model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return SikkApproval the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = SikkApproval::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}
}
<?php
namespace backend\modules\sikk\controllers;
use Yii;
use common\models\DimxDim;
use common\models\SikkLog;
use common\models\search\SikkLogSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* SikkLogController implements the CRUD actions for SikkLog model.
*/
class SikkLogController extends Controller
{
/**
* @inheritdoc
*/
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
],
],
];
}
/**
* Lists all SikkLog models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new SikkLogSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single SikkLog model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new SikkLog model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new \common\models\DimxDim();
$modelsikkLog = new \common\models\SikkLog();
if ($model->load(Yii::$app->request->post())) {
$cari = \common\models\DimxDim::findOne(['nim'=>$model->nim]);
$modelsikkLog->mhs_id=$cari->dim_id;
$sql='SELECT log_id FROM sikk_log WHERE mhs_id='.$cari->dim_id.' AND time_out IS NULL';
$hasilQuery = Yii::$app->db->createCommand($sql)->queryAll();
if($hasilQuery==NULL){
Yii::$app->session->setFlash('success', '<b>Anda diizinkan untuk masuk!<b>');
date_default_timezone_set('Asia/Jakarta');
$date = date_create(date('Y-m-d H:i:s'));
$modelsikkLog->time_in=date('Y-m-d H:i:s');
$modelsikkLog->created_at=date('Y-m-d H:i:s');
if($modelsikkLog->save()){
return $this->redirect(['dimx-dim/view', 'id' => $cari->dim_id]);
}
}
if($hasilQuery!=NULL){
date_default_timezone_set('Asia/Jakarta');
$date = date_create(date('Y-m-d H:i:s'));
$date1=date('Y-m-d H:i:s');
$tanggal="'".$date1."'";
Yii::$app->session->setFlash('success', '<b>Anda diizinkan untuk keluar!<b>');
$sql1='UPDATE sikk_log SET time_out='.$tanggal.' WHERE mhs_id='.$cari->dim_id.'';
Yii::$app->db->createCommand($sql1)->execute();
return $this->redirect(['dimx-dim/view', 'id' => $cari->dim_id]);
}
// return $this->redirect(['view', 'id' => $model->log_id]);
} else {
return $this->render('create', [
'model' => $model,
]);
}
}
/**
* Updates an existing SikkLog 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->log_id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
/**
* Deletes an existing SikkLog 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 SikkLog model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return SikkLog the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = SikkLog::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}
}
<?php
namespace backend\modules\sikk\controllers;
use Yii;
use common\models\SikkRRole;
use common\models\search\SikkRRoleSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* SikkRRoleController implements the CRUD actions for SikkRRole model.
*/
class SikkRRoleController extends Controller
{
/**
* @inheritdoc
*/
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
],
],
];
}
/**
* Lists all SikkRRole models.
* @return mixed
*/
public function actionIndex()
{
$searchModel = new SikkRRoleSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
/**
* Displays a single SikkRRole model.
* @param integer $id
* @return mixed
*/
public function actionView($id)
{
return $this->render('view', [
'model' => $this->findModel($id),
]);
}
/**
* Creates a new SikkRRole model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
*/
public function actionCreate()
{
$model = new SikkRRole();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->role_id]);
} else {
return $this->render('create', [
'model' => $model,
]);
}
}
/**
* Updates an existing SikkRRole 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->role_id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
/**
* Deletes an existing SikkRRole 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 SikkRRole model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* @param integer $id
* @return SikkRRole the loaded model
* @throws NotFoundHttpException if the model cannot be found
*/
protected function findModel($id)
{
if (($model = SikkRRole::findOne($id)) !== null) {
return $model;
} else {
throw new NotFoundHttpException('The requested page does not exist.');
}
}
}
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\AdakKelas */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="adak-kelas-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'ta')->textInput() ?>
<?= $form->field($model, 'nama')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'ket')->textarea(['rows' => 6]) ?>
<?= $form->field($model, 'dosen_wali_id')->textInput() ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'deleted_at')->textInput() ?>
<?= $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 common\models\search\AdakKelas */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="adak-kelas-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'kelas_id') ?>
<?= $form->field($model, 'ta') ?>
<?= $form->field($model, 'nama') ?>
<?= $form->field($model, 'ket') ?>
<?= $form->field($model, 'dosen_wali_id') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<?php // echo $form->field($model, 'deleted') ?>
<?php // echo $form->field($model, 'deleted_at') ?>
<?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 common\models\AdakKelas */
$this->title = 'Create Adak Kelas';
$this->params['breadcrumbs'][] = ['label' => 'Adak Kelas', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="adak-kelas-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 common\models\search\AdakKelas */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Adak Kelas';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="adak-kelas-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Create Adak Kelas', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'kelas_id',
'ta',
'nama',
'ket:ntext',
'dosen_wali_id',
// 'created_at',
// 'updated_at',
// 'created_by',
// 'updated_by',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\AdakKelas */
$this->title = 'Update Adak Kelas: ' . $model->kelas_id;
$this->params['breadcrumbs'][] = ['label' => 'Adak Kelas', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->kelas_id, 'url' => ['view', 'id' => $model->kelas_id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="adak-kelas-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 common\models\AdakKelas */
$this->title = $model->kelas_id;
$this->params['breadcrumbs'][] = ['label' => 'Adak Kelas', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="adak-kelas-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Update', ['update', 'id' => $model->kelas_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Delete', ['delete', 'id' => $model->kelas_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'kelas_id',
'ta',
'nama',
'ket:ntext',
'dosen_wali_id',
'created_at',
'updated_at',
'created_by',
'updated_by',
'deleted',
'deleted_at',
'deleted_by',
],
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\AdakRegistrasi */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="adak-registrasi-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'nim')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'status_akhir_registrasi')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'ta')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'sem_ta')->textInput() ?>
<?= $form->field($model, 'sem')->textInput() ?>
<?= $form->field($model, 'tgl_daftar')->textInput() ?>
<?= $form->field($model, 'keuangan')->textInput() ?>
<?= $form->field($model, 'kelas')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'id')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'nr')->textInput() ?>
<?= $form->field($model, 'koa_approval')->textInput() ?>
<?= $form->field($model, 'koa_approval_bp')->textInput() ?>
<?= $form->field($model, 'kelas_id')->textInput() ?>
<?= $form->field($model, 'dosen_wali_id')->textInput() ?>
<?= $form->field($model, 'keasramaan_id')->textInput() ?>
<?= $form->field($model, 'dim_id')->textInput() ?>
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'deleted_at')->textInput() ?>
<?= $form->field($model, 'deleted_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\search\AdakRegistrasi */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="adak-registrasi-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'registrasi_id') ?>
<?= $form->field($model, 'nim') ?>
<?= $form->field($model, 'status_akhir_registrasi') ?>
<?= $form->field($model, 'ta') ?>
<?= $form->field($model, 'sem_ta') ?>
<?php // echo $form->field($model, 'sem') ?>
<?php // echo $form->field($model, 'tgl_daftar') ?>
<?php // echo $form->field($model, 'keuangan') ?>
<?php // echo $form->field($model, 'kelas') ?>
<?php // echo $form->field($model, 'id') ?>
<?php // echo $form->field($model, 'nr') ?>
<?php // echo $form->field($model, 'koa_approval') ?>
<?php // echo $form->field($model, 'koa_approval_bp') ?>
<?php // echo $form->field($model, 'kelas_id') ?>
<?php // echo $form->field($model, 'dosen_wali_id') ?>
<?php // echo $form->field($model, 'keasramaan_id') ?>
<?php // echo $form->field($model, 'dim_id') ?>
<?php // echo $form->field($model, 'deleted') ?>
<?php // echo $form->field($model, 'deleted_at') ?>
<?php // echo $form->field($model, 'deleted_by') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<div class="form-group">
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\AdakRegistrasi */
$this->title = 'Create Adak Registrasi';
$this->params['breadcrumbs'][] = ['label' => 'Adak Registrasis', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="adak-registrasi-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 common\models\search\AdakRegistrasi */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Adak Registrasis';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="adak-registrasi-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Create Adak Registrasi', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'registrasi_id',
'nim',
'status_akhir_registrasi',
'ta',
'sem_ta',
// 'sem',
// 'tgl_daftar',
// 'keuangan',
// 'kelas',
// 'id',
// 'nr',
// 'koa_approval',
// 'koa_approval_bp',
// 'kelas_id',
// 'dosen_wali_id',
// 'keasramaan_id',
// 'dim_id',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'updated_at',
// 'created_by',
// 'updated_by',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\AdakRegistrasi */
$this->title = 'Update Adak Registrasi: ' . $model->registrasi_id;
$this->params['breadcrumbs'][] = ['label' => 'Adak Registrasis', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->registrasi_id, 'url' => ['view', 'id' => $model->registrasi_id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="adak-registrasi-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 common\models\AdakRegistrasi */
$this->title = $model->registrasi_id;
$this->params['breadcrumbs'][] = ['label' => 'Adak Registrasis', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="adak-registrasi-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Update', ['update', 'id' => $model->registrasi_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Delete', ['delete', 'id' => $model->registrasi_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'registrasi_id',
'nim',
'status_akhir_registrasi',
'ta',
'sem_ta',
'sem',
'tgl_daftar',
'keuangan',
'kelas',
'id',
'nr',
'koa_approval',
'koa_approval_bp',
'kelas_id',
'dosen_wali_id',
'keasramaan_id',
'dim_id',
'deleted',
'deleted_at',
'deleted_by',
'created_at',
'updated_at',
'created_by',
'updated_by',
],
]) ?>
</div>
<div class="sikk-default-index">
<h1><?= $this->context->action->uniqueId ?></h1>
<p>
This is the view content for action "<?= $this->context->action->id ?>".
The action belongs to the controller "<?= get_class($this->context) ?>"
in the "<?= $this->context->module->id ?>" module.
</p>
<p>
You may customize this page by editing the following file:<br>
<code><?= __FILE__ ?></code>
</p>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\DimxDim */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="dimx-dim-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'nim')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'no_usm')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'jalur')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'user_name')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'kbk_id')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'ref_kbk_id')->textInput() ?>
<?= $form->field($model, 'kpt_prodi')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'id_kur')->textInput() ?>
<?= $form->field($model, 'tahun_kurikulum_id')->textInput() ?>
<?= $form->field($model, 'nama')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'tgl_lahir')->textInput() ?>
<?= $form->field($model, 'tempat_lahir')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'gol_darah')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'golongan_darah_id')->textInput() ?>
<?= $form->field($model, 'jenis_kelamin')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'jenis_kelamin_id')->textInput() ?>
<?= $form->field($model, 'agama')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'agama_id')->textInput() ?>
<?= $form->field($model, 'alamat')->textarea(['rows' => 6]) ?>
<?= $form->field($model, 'kabupaten')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'kode_pos')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'email')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'telepon')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'hp')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'hp2')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'no_ijazah_sma')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'nama_sma')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'asal_sekolah_id')->textInput() ?>
<?= $form->field($model, 'alamat_sma')->textarea(['rows' => 6]) ?>
<?= $form->field($model, 'kabupaten_sma')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'telepon_sma')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'kodepos_sma')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'thn_masuk')->textInput() ?>
<?= $form->field($model, 'status_akhir')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'nama_ayah')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'nama_ibu')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'no_hp_ayah')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'no_hp_ibu')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'alamat_orangtua')->textarea(['rows' => 6]) ?>
<?= $form->field($model, 'pekerjaan_ayah')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'pekerjaan_ayah_id')->textInput() ?>
<?= $form->field($model, 'keterangan_pekerjaan_ayah')->textarea(['rows' => 6]) ?>
<?= $form->field($model, 'penghasilan_ayah')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'penghasilan_ayah_id')->textInput() ?>
<?= $form->field($model, 'pekerjaan_ibu')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'pekerjaan_ibu_id')->textInput() ?>
<?= $form->field($model, 'keterangan_pekerjaan_ibu')->textarea(['rows' => 6]) ?>
<?= $form->field($model, 'penghasilan_ibu')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'penghasilan_ibu_id')->textInput() ?>
<?= $form->field($model, 'nama_wali')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'pekerjaan_wali')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'pekerjaan_wali_id')->textInput() ?>
<?= $form->field($model, 'keterangan_pekerjaan_wali')->textarea(['rows' => 6]) ?>
<?= $form->field($model, 'penghasilan_wali')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'penghasilan_wali_id')->textInput() ?>
<?= $form->field($model, 'alamat_wali')->textarea(['rows' => 6]) ?>
<?= $form->field($model, 'telepon_wali')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'no_hp_wali')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'pendapatan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'ipk')->textInput() ?>
<?= $form->field($model, 'anak_ke')->textInput() ?>
<?= $form->field($model, 'dari_jlh_anak')->textInput() ?>
<?= $form->field($model, 'jumlah_tanggungan')->textInput() ?>
<?= $form->field($model, 'nilai_usm')->textInput() ?>
<?= $form->field($model, 'score_iq')->textInput() ?>
<?= $form->field($model, 'rekomendasi_psikotest')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'foto')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'kode_foto')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'user_id')->textInput() ?>
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'deleted_at')->textInput() ?>
<?= $form->field($model, 'deleted_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\search\DimxDim */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="dimx-dim-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'dim_id') ?>
<?= $form->field($model, 'nim') ?>
<?= $form->field($model, 'no_usm') ?>
<?= $form->field($model, 'jalur') ?>
<?= $form->field($model, 'user_name') ?>
<?php // echo $form->field($model, 'kbk_id') ?>
<?php // echo $form->field($model, 'ref_kbk_id') ?>
<?php // echo $form->field($model, 'kpt_prodi') ?>
<?php // echo $form->field($model, 'id_kur') ?>
<?php // echo $form->field($model, 'tahun_kurikulum_id') ?>
<?php // echo $form->field($model, 'nama') ?>
<?php // echo $form->field($model, 'tgl_lahir') ?>
<?php // echo $form->field($model, 'tempat_lahir') ?>
<?php // echo $form->field($model, 'gol_darah') ?>
<?php // echo $form->field($model, 'golongan_darah_id') ?>
<?php // echo $form->field($model, 'jenis_kelamin') ?>
<?php // echo $form->field($model, 'jenis_kelamin_id') ?>
<?php // echo $form->field($model, 'agama') ?>
<?php // echo $form->field($model, 'agama_id') ?>
<?php // echo $form->field($model, 'alamat') ?>
<?php // echo $form->field($model, 'kabupaten') ?>
<?php // echo $form->field($model, 'kode_pos') ?>
<?php // echo $form->field($model, 'email') ?>
<?php // echo $form->field($model, 'telepon') ?>
<?php // echo $form->field($model, 'hp') ?>
<?php // echo $form->field($model, 'hp2') ?>
<?php // echo $form->field($model, 'no_ijazah_sma') ?>
<?php // echo $form->field($model, 'nama_sma') ?>
<?php // echo $form->field($model, 'asal_sekolah_id') ?>
<?php // echo $form->field($model, 'alamat_sma') ?>
<?php // echo $form->field($model, 'kabupaten_sma') ?>
<?php // echo $form->field($model, 'telepon_sma') ?>
<?php // echo $form->field($model, 'kodepos_sma') ?>
<?php // echo $form->field($model, 'thn_masuk') ?>
<?php // echo $form->field($model, 'status_akhir') ?>
<?php // echo $form->field($model, 'nama_ayah') ?>
<?php // echo $form->field($model, 'nama_ibu') ?>
<?php // echo $form->field($model, 'no_hp_ayah') ?>
<?php // echo $form->field($model, 'no_hp_ibu') ?>
<?php // echo $form->field($model, 'alamat_orangtua') ?>
<?php // echo $form->field($model, 'pekerjaan_ayah') ?>
<?php // echo $form->field($model, 'pekerjaan_ayah_id') ?>
<?php // echo $form->field($model, 'keterangan_pekerjaan_ayah') ?>
<?php // echo $form->field($model, 'penghasilan_ayah') ?>
<?php // echo $form->field($model, 'penghasilan_ayah_id') ?>
<?php // echo $form->field($model, 'pekerjaan_ibu') ?>
<?php // echo $form->field($model, 'pekerjaan_ibu_id') ?>
<?php // echo $form->field($model, 'keterangan_pekerjaan_ibu') ?>
<?php // echo $form->field($model, 'penghasilan_ibu') ?>
<?php // echo $form->field($model, 'penghasilan_ibu_id') ?>
<?php // echo $form->field($model, 'nama_wali') ?>
<?php // echo $form->field($model, 'pekerjaan_wali') ?>
<?php // echo $form->field($model, 'pekerjaan_wali_id') ?>
<?php // echo $form->field($model, 'keterangan_pekerjaan_wali') ?>
<?php // echo $form->field($model, 'penghasilan_wali') ?>
<?php // echo $form->field($model, 'penghasilan_wali_id') ?>
<?php // echo $form->field($model, 'alamat_wali') ?>
<?php // echo $form->field($model, 'telepon_wali') ?>
<?php // echo $form->field($model, 'no_hp_wali') ?>
<?php // echo $form->field($model, 'pendapatan') ?>
<?php // echo $form->field($model, 'ipk') ?>
<?php // echo $form->field($model, 'anak_ke') ?>
<?php // echo $form->field($model, 'dari_jlh_anak') ?>
<?php // echo $form->field($model, 'jumlah_tanggungan') ?>
<?php // echo $form->field($model, 'nilai_usm') ?>
<?php // echo $form->field($model, 'score_iq') ?>
<?php // echo $form->field($model, 'rekomendasi_psikotest') ?>
<?php // echo $form->field($model, 'foto') ?>
<?php // echo $form->field($model, 'kode_foto') ?>
<?php // echo $form->field($model, 'user_id') ?>
<?php // echo $form->field($model, 'deleted') ?>
<?php // echo $form->field($model, 'deleted_at') ?>
<?php // echo $form->field($model, 'deleted_by') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<div class="form-group">
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\DimxDim */
$this->title = 'Create Dimx Dim';
$this->params['breadcrumbs'][] = ['label' => 'Dimx Dims', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="dimx-dim-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 common\models\search\DimxDim */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Dimx Dims';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="dimx-dim-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Create Dimx Dim', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'dim_id',
'nim',
'no_usm',
'jalur',
'user_name',
// 'kbk_id',
// 'ref_kbk_id',
// 'kpt_prodi',
// 'id_kur',
// 'tahun_kurikulum_id',
// 'nama',
// 'tgl_lahir',
// 'tempat_lahir',
// 'gol_darah',
// 'golongan_darah_id',
// 'jenis_kelamin',
// 'jenis_kelamin_id',
// 'agama',
// 'agama_id',
// 'alamat:ntext',
// 'kabupaten',
// 'kode_pos',
// 'email:email',
// 'telepon',
// 'hp',
// 'hp2',
// 'no_ijazah_sma',
// 'nama_sma',
// 'asal_sekolah_id',
// 'alamat_sma:ntext',
// 'kabupaten_sma',
// 'telepon_sma',
// 'kodepos_sma',
// 'thn_masuk',
// 'status_akhir',
// 'nama_ayah',
// 'nama_ibu',
// 'no_hp_ayah',
// 'no_hp_ibu',
// 'alamat_orangtua:ntext',
// 'pekerjaan_ayah',
// 'pekerjaan_ayah_id',
// 'keterangan_pekerjaan_ayah:ntext',
// 'penghasilan_ayah',
// 'penghasilan_ayah_id',
// 'pekerjaan_ibu',
// 'pekerjaan_ibu_id',
// 'keterangan_pekerjaan_ibu:ntext',
// 'penghasilan_ibu',
// 'penghasilan_ibu_id',
// 'nama_wali',
// 'pekerjaan_wali',
// 'pekerjaan_wali_id',
// 'keterangan_pekerjaan_wali:ntext',
// 'penghasilan_wali',
// 'penghasilan_wali_id',
// 'alamat_wali:ntext',
// 'telepon_wali',
// 'no_hp_wali',
// 'pendapatan',
// 'ipk',
// 'anak_ke',
// 'dari_jlh_anak',
// 'jumlah_tanggungan',
// 'nilai_usm',
// 'score_iq',
// 'rekomendasi_psikotest',
// 'foto',
// 'kode_foto',
// 'user_id',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'updated_at',
// 'created_by',
// 'updated_by',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\DimxDim */
$this->title = 'Update Dimx Dim: ' . $model->dim_id;
$this->params['breadcrumbs'][] = ['label' => 'Dimx Dims', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->dim_id, 'url' => ['view', 'id' => $model->dim_id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="dimx-dim-update">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\DimxDim */
$this->title = $model->nama;
$this->params['breadcrumbs'][] = ['label' => 'Dimx Dims', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="dimx-dim-view">
<!--<h1><?= Html::encode($this->title) ?></h1>-->
<h2>Keluar Masuk Mahasiswa</h2>
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'nim')->textInput() ?>
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Submit', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
<div class="row">
<div class="col-md-12">
<div class=" box-header with-border">
</div><!-- /.box-header -->
<div class="box-body">
<div class="col-md-2">
<?= Html::img('' . \Yii::$app->request->BaseUrl . '/images/' . $model->nama . '.png', ['width' => 130, 'height' => 180]); ?>
<?php //die(Yii::$app->basePath); ?>
</div>
<div class="col-md-10">
<?=
DetailView::widget([
'model' => $model,
'attributes' => [
'nama',
'nim',
//'foto',
// 'makanDiluar',
],
])
?>
</div>
</div></div></div>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\HrdxDosen */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="hrdx-dosen-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'pegawai_id')->textInput() ?>
<?= $form->field($model, 'nidn')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'prodi_id')->textInput() ?>
<?= $form->field($model, 'golongan_kepangkatan_id')->textInput() ?>
<?= $form->field($model, 'jabatan_akademik_id')->textInput() ?>
<?= $form->field($model, 'status_ikatan_kerja_dosen_id')->textInput() ?>
<?= $form->field($model, 'gbk_1')->textInput() ?>
<?= $form->field($model, 'gbk_2')->textInput() ?>
<?= $form->field($model, 'aktif_start')->textInput() ?>
<?= $form->field($model, 'aktif_end')->textInput() ?>
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'deleted_at')->textInput() ?>
<?= $form->field($model, 'deleted_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'temp_id_old')->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 common\models\search\HrdxDosen */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="hrdx-dosen-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'dosen_id') ?>
<?= $form->field($model, 'pegawai_id') ?>
<?= $form->field($model, 'nidn') ?>
<?= $form->field($model, 'prodi_id') ?>
<?= $form->field($model, 'golongan_kepangkatan_id') ?>
<?php // echo $form->field($model, 'jabatan_akademik_id') ?>
<?php // echo $form->field($model, 'status_ikatan_kerja_dosen_id') ?>
<?php // echo $form->field($model, 'gbk_1') ?>
<?php // echo $form->field($model, 'gbk_2') ?>
<?php // echo $form->field($model, 'aktif_start') ?>
<?php // echo $form->field($model, 'aktif_end') ?>
<?php // echo $form->field($model, 'deleted') ?>
<?php // echo $form->field($model, 'deleted_at') ?>
<?php // echo $form->field($model, 'deleted_by') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<?php // echo $form->field($model, 'temp_id_old') ?>
<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 common\models\HrdxDosen */
$this->title = 'Create Hrdx Dosen';
$this->params['breadcrumbs'][] = ['label' => 'Hrdx Dosens', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="hrdx-dosen-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 common\models\search\HrdxDosen */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Hrdx Dosens';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="hrdx-dosen-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Create Hrdx Dosen', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'dosen_id',
'pegawai_id',
'nidn',
'prodi_id',
'golongan_kepangkatan_id',
// 'jabatan_akademik_id',
// 'status_ikatan_kerja_dosen_id',
// 'gbk_1',
// 'gbk_2',
// 'aktif_start',
// 'aktif_end',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
// 'temp_id_old',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\HrdxDosen */
$this->title = 'Update Hrdx Dosen: ' . $model->dosen_id;
$this->params['breadcrumbs'][] = ['label' => 'Hrdx Dosens', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->dosen_id, 'url' => ['view', 'id' => $model->dosen_id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="hrdx-dosen-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 common\models\HrdxDosen */
$this->title = $model->dosen_id;
$this->params['breadcrumbs'][] = ['label' => 'Hrdx Dosens', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="hrdx-dosen-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Update', ['update', 'id' => $model->dosen_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Delete', ['delete', 'id' => $model->dosen_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'dosen_id',
'pegawai_id',
'nidn',
'prodi_id',
'golongan_kepangkatan_id',
'jabatan_akademik_id',
'status_ikatan_kerja_dosen_id',
'gbk_1',
'gbk_2',
'aktif_start',
'aktif_end',
'deleted',
'deleted_at',
'deleted_by',
'created_at',
'created_by',
'updated_at',
'updated_by',
'temp_id_old',
],
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\HrdxPegawai */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="hrdx-pegawai-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'profile_old_id')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'nama')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'user_name')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'nip')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'kpt_no')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'kbk_id')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'ref_kbk_id')->textInput() ?>
<?= $form->field($model, 'alias')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'posisi')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'tempat_lahir')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'tgl_lahir')->textInput() ?>
<?= $form->field($model, 'agama_id')->textInput() ?>
<?= $form->field($model, 'jenis_kelamin_id')->textInput() ?>
<?= $form->field($model, 'golongan_darah_id')->textInput() ?>
<?= $form->field($model, 'hp')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'telepon')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'alamat')->textInput() ?>
<?= $form->field($model, 'alamat_libur')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'kecamatan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'kota')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'kabupaten_id')->textInput() ?>
<?= $form->field($model, 'kode_pos')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'no_ktp')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'email')->textarea(['rows' => 6]) ?>
<?= $form->field($model, 'ext_num')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'study_area_1')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'study_area_2')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'jabatan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'jabatan_akademik_id')->textInput() ?>
<?= $form->field($model, 'gbk_1')->textInput() ?>
<?= $form->field($model, 'gbk_2')->textInput() ?>
<?= $form->field($model, 'status_ikatan_kerja_pegawai_id')->textInput() ?>
<?= $form->field($model, 'status_akhir')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'status_aktif_pegawai_id')->textInput() ?>
<?= $form->field($model, 'tanggal_masuk')->textInput() ?>
<?= $form->field($model, 'tanggal_keluar')->textInput() ?>
<?= $form->field($model, 'nama_bapak')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'nama_ibu')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'status')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'status_marital_id')->textInput() ?>
<?= $form->field($model, 'nama_p')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'tgl_lahir_p')->textInput() ?>
<?= $form->field($model, 'tmp_lahir_p')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'pekerjaan_ortu')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'user_id')->textInput() ?>
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'deleted_at')->textInput() ?>
<?= $form->field($model, 'deleted_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
<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 common\models\search\HrdxPegawai */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="hrdx-pegawai-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'pegawai_id') ?>
<?= $form->field($model, 'profile_old_id') ?>
<?= $form->field($model, 'nama') ?>
<?= $form->field($model, 'user_name') ?>
<?= $form->field($model, 'nip') ?>
<?php // echo $form->field($model, 'kpt_no') ?>
<?php // echo $form->field($model, 'kbk_id') ?>
<?php // echo $form->field($model, 'ref_kbk_id') ?>
<?php // echo $form->field($model, 'alias') ?>
<?php // echo $form->field($model, 'posisi') ?>
<?php // echo $form->field($model, 'tempat_lahir') ?>
<?php // echo $form->field($model, 'tgl_lahir') ?>
<?php // echo $form->field($model, 'agama_id') ?>
<?php // echo $form->field($model, 'jenis_kelamin_id') ?>
<?php // echo $form->field($model, 'golongan_darah_id') ?>
<?php // echo $form->field($model, 'hp') ?>
<?php // echo $form->field($model, 'telepon') ?>
<?php // echo $form->field($model, 'alamat') ?>
<?php // echo $form->field($model, 'alamat_libur') ?>
<?php // echo $form->field($model, 'kecamatan') ?>
<?php // echo $form->field($model, 'kota') ?>
<?php // echo $form->field($model, 'kabupaten_id') ?>
<?php // echo $form->field($model, 'kode_pos') ?>
<?php // echo $form->field($model, 'no_ktp') ?>
<?php // echo $form->field($model, 'email') ?>
<?php // echo $form->field($model, 'ext_num') ?>
<?php // echo $form->field($model, 'study_area_1') ?>
<?php // echo $form->field($model, 'study_area_2') ?>
<?php // echo $form->field($model, 'jabatan') ?>
<?php // echo $form->field($model, 'jabatan_akademik_id') ?>
<?php // echo $form->field($model, 'gbk_1') ?>
<?php // echo $form->field($model, 'gbk_2') ?>
<?php // echo $form->field($model, 'status_ikatan_kerja_pegawai_id') ?>
<?php // echo $form->field($model, 'status_akhir') ?>
<?php // echo $form->field($model, 'status_aktif_pegawai_id') ?>
<?php // echo $form->field($model, 'tanggal_masuk') ?>
<?php // echo $form->field($model, 'tanggal_keluar') ?>
<?php // echo $form->field($model, 'nama_bapak') ?>
<?php // echo $form->field($model, 'nama_ibu') ?>
<?php // echo $form->field($model, 'status') ?>
<?php // echo $form->field($model, 'status_marital_id') ?>
<?php // echo $form->field($model, 'nama_p') ?>
<?php // echo $form->field($model, 'tgl_lahir_p') ?>
<?php // echo $form->field($model, 'tmp_lahir_p') ?>
<?php // echo $form->field($model, 'pekerjaan_ortu') ?>
<?php // echo $form->field($model, 'user_id') ?>
<?php // echo $form->field($model, 'deleted') ?>
<?php // echo $form->field($model, 'deleted_at') ?>
<?php // echo $form->field($model, 'deleted_by') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<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 common\models\HrdxPegawai */
$this->title = 'Create Hrdx Pegawai';
$this->params['breadcrumbs'][] = ['label' => 'Hrdx Pegawais', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="hrdx-pegawai-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 common\models\search\HrdxPegawai */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Hrdx Pegawais';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="hrdx-pegawai-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Create Hrdx Pegawai', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'pegawai_id',
'profile_old_id',
'nama',
'user_name',
'nip',
// 'kpt_no',
// 'kbk_id',
// 'ref_kbk_id',
// 'alias',
// 'posisi',
// 'tempat_lahir',
// 'tgl_lahir',
// 'agama_id',
// 'jenis_kelamin_id',
// 'golongan_darah_id',
// 'hp',
// 'telepon',
// 'alamat',
// 'alamat_libur',
// 'kecamatan',
// 'kota',
// 'kabupaten_id',
// 'kode_pos',
// 'no_ktp',
// 'email:ntext',
// 'ext_num',
// 'study_area_1',
// 'study_area_2',
// 'jabatan',
// 'jabatan_akademik_id',
// 'gbk_1',
// 'gbk_2',
// 'status_ikatan_kerja_pegawai_id',
// 'status_akhir',
// 'status_aktif_pegawai_id',
// 'tanggal_masuk',
// 'tanggal_keluar',
// 'nama_bapak',
// 'nama_ibu',
// 'status',
// 'status_marital_id',
// 'nama_p',
// 'tgl_lahir_p',
// 'tmp_lahir_p',
// 'pekerjaan_ortu',
// 'user_id',
// 'deleted',
// 'deleted_at',
// 'deleted_by',
// 'created_by',
// 'created_at',
// 'updated_by',
// 'updated_at',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\HrdxPegawai */
$this->title = 'Update Hrdx Pegawai: ' . $model->pegawai_id;
$this->params['breadcrumbs'][] = ['label' => 'Hrdx Pegawais', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->pegawai_id, 'url' => ['view', 'id' => $model->pegawai_id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="hrdx-pegawai-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 common\models\HrdxPegawai */
$this->title = $model->pegawai_id;
$this->params['breadcrumbs'][] = ['label' => 'Hrdx Pegawais', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="hrdx-pegawai-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Update', ['update', 'id' => $model->pegawai_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Delete', ['delete', 'id' => $model->pegawai_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'pegawai_id',
'profile_old_id',
'nama',
'user_name',
'nip',
'kpt_no',
'kbk_id',
'ref_kbk_id',
'alias',
'posisi',
'tempat_lahir',
'tgl_lahir',
'agama_id',
'jenis_kelamin_id',
'golongan_darah_id',
'hp',
'telepon',
'alamat',
'alamat_libur',
'kecamatan',
'kota',
'kabupaten_id',
'kode_pos',
'no_ktp',
'email:ntext',
'ext_num',
'study_area_1',
'study_area_2',
'jabatan',
'jabatan_akademik_id',
'gbk_1',
'gbk_2',
'status_ikatan_kerja_pegawai_id',
'status_akhir',
'status_aktif_pegawai_id',
'tanggal_masuk',
'tanggal_keluar',
'nama_bapak',
'nama_ibu',
'status',
'status_marital_id',
'nama_p',
'tgl_lahir_p',
'tmp_lahir_p',
'pekerjaan_ortu',
'user_id',
'deleted',
'deleted_at',
'deleted_by',
'created_by',
'created_at',
'updated_by',
'updated_at',
],
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\SikkAkun */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="sikk-akun-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'user_name')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'password')->passwordInput(['maxlength' => true]) ?>
<?= $form->field($model, 'role_id')->textInput() ?>
<?= $form->field($model, 'user_id')->textInput() ?>
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'auth_key')->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 common\models\search\SikkAkun */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="sikk-akun-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'akun_id') ?>
<?= $form->field($model, 'user_name') ?>
<?= $form->field($model, 'password') ?>
<?= $form->field($model, 'role_id') ?>
<?= $form->field($model, 'user_id') ?>
<?php // echo $form->field($model, 'deleted') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<?php // echo $form->field($model, 'auth_key') ?>
<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 common\models\SikkAkun */
$this->title = 'Create Sikk Akun';
$this->params['breadcrumbs'][] = ['label' => 'Sikk Akuns', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="sikk-akun-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 common\models\search\SikkAkun */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Sikk Akuns';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="sikk-akun-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Create Sikk Akun', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'akun_id',
'user_name',
'password',
'role_id',
'user_id',
// 'deleted',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
// 'auth_key',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\SikkAkun */
$this->title = 'Update Sikk Akun: ' . $model->akun_id;
$this->params['breadcrumbs'][] = ['label' => 'Sikk Akuns', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->akun_id, 'url' => ['view', 'id' => $model->akun_id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="sikk-akun-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 common\models\SikkAkun */
$this->title = $model->akun_id;
$this->params['breadcrumbs'][] = ['label' => 'Sikk Akuns', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="sikk-akun-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Update', ['update', 'id' => $model->akun_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Delete', ['delete', 'id' => $model->akun_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'akun_id',
'user_name',
'password',
'role_id',
'user_id',
'deleted',
'created_at',
'created_by',
'updated_at',
'updated_by',
'auth_key',
],
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\SikkApproval */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="sikk-approval-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'izin_keluar_id')->textInput() ?>
<?= $form->field($model, 'approver_id')->textInput() ?>
<?= $form->field($model, 'status_approval')->textInput() ?>
<?= $form->field($model, 'alasan')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'deleted')->textInput() ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'updated_at')->textInput() ?>
<?= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\search\SikkApprovalSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="sikk-approval-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'approval_id') ?>
<?= $form->field($model, 'izin_keluar_id') ?>
<?= $form->field($model, 'approver_id') ?>
<?= $form->field($model, 'status_approval') ?>
<?= $form->field($model, 'alasan') ?>
<?php // echo $form->field($model, 'deleted') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<div class="form-group">
<?= Html::submitButton('Search', ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\SikkApproval */
$this->title = 'Create Sikk Approval';
$this->params['breadcrumbs'][] = ['label' => 'Sikk Approvals', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="sikk-approval-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 common\models\search\SikkApprovalSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Sikk Approvals';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="sikk-approval-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Create Sikk Approval', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'approval_id',
'izin_keluar_id',
'approver_id',
'status_approval',
'alasan',
// 'deleted',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\SikkApproval */
$this->title = 'Update Sikk Approval: ' . $model->approval_id;
$this->params['breadcrumbs'][] = ['label' => 'Sikk Approvals', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->approval_id, 'url' => ['view', 'id' => $model->approval_id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="sikk-approval-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 common\models\SikkApproval */
$this->title = $model->approval_id;
$this->params['breadcrumbs'][] = ['label' => 'Sikk Approvals', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="sikk-approval-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a('Update', ['update', 'id' => $model->approval_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Delete', ['delete', 'id' => $model->approval_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'approval_id',
'izin_keluar_id',
'approver_id',
'status_approval',
'alasan',
'deleted',
'created_at',
'created_by',
'updated_at',
'updated_by',
],
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\jui\DatePicker;
/* @var $this yii\web\View */
/* @var $model common\models\SikkIzinKeluar */
/* @var $form yii\widgets\ActiveForm */
?>
<style>
div.ui-datepicker{
font-size:20px;
}
input.hasDatepicker{
width: 99.7%;
height: 33px;
}
</style>
<div class="sikk-izin-keluar-form">
<br>
<?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); ?>
<?php //= $form->field($model, 'mhs_id')->textInput() ?>
<table>
<tr>
<td style="vertical-align:top">Mohon izin untuk :</td>
<td><input type="radio" name="radioName" value="0" onchange="handleChange1();"/> Tidak hadir kuliah/praktikum <br/>
<input type="radio" name="radioName" value="1" checked="checked" onchange="handleChange2();"/> Keluar kampus pada jam akademik
</td>
</tr>
<tr>
<td id="periode" style="vertical-align:top; display: none">Periode :</td>
<td id="chck1" style="display: none"><input type="radio" name="periode" value="0" onchange="handleChange3();"/> Pada periode jam akademik <br/>
<input type="radio" name="periode" value="1" checked="checked" onchange="handleChange4();"/> Selama satu hari lebih
</td>
</tr>
</table>
<br/><br/>
<table width='100%'>
<tr>
<td>
<?php //= $form->field($model, 'date_start')->textInput()
echo "<b>Hari/Tanggal</b> <br>";
echo DatePicker::widget([
'model' => $model,
'attribute' => 'date_start',
//'language' => 'ru',
'dateFormat' => 'yyyy-MM-dd',
]);
?>
</td>
<td id="end_date">
<?php //= $form->field($model, 'date_end')->textInput()
echo "<b>Hingga</b> <br>";
echo DatePicker::widget([
'model' => $model,
'attribute' => 'date_end',
//'language' => 'ru',
'dateFormat' => 'yyyy-MM-dd',
]);
?>
</td>
<td>
<tr>
<td><br/></td>
<td><br/></td>
</tr>
<tr>
<td>
<?= $form->field($model, 'time_start')->textInput() ?>
</td>
<td>
<?= $form->field($model, 'time_end')->textInput() ?>
</td>
</tr>
<tr>
<td colspan='2'>
<?= $form->field($model, 'alasan')->textArea() ?>
</td>
</tr>
<tr>
<td colspan='2'>Memohon persetujuan kepada</td>
</tr>
<tr>
<td colspan='2'>
<table width="100%">
<tr>
<td>
Wali
</td>
<td>
:
</td>
<td>
<?php echo $nama_wali?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan='2'>
<br/>
</td>
</tr>
<tr>
<td colspan='2'>
<?php echo $form->field($modelchk, 'namacheck')->checkboxList($arrayNamaDosen) ;;?>
</td>
</tr>
</table>
<?php //= $form->field($model, 'deleted')->textInput() ?>
<?php //= $form->field($model, 'created_at')->textInput() ?>
<?php //= $form->field($model, 'created_by')->textInput(['maxlength' => true]) ?>
<?php //= $form->field($model, 'updated_at')->textInput() ?>
<?php //= $form->field($model, 'updated_by')->textInput(['maxlength' => true]) ?>
<?php //= $form->field($model, 'status')->textInput() ?>
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<script>
function handleChange1() {
$( "#periode" ).toggle();
$( "#chck1" ).toggle();
}
function handleChange2() {
$( "#periode" ).hide();
$( "#chck1" ).hide();
}
function handleChange3() {
$( "#end_date" ).hide();
}
function handleChange4() {
$( "#end_date" ).toggle();
}
</script>
\ No newline at end of file
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\SikkIzinKeluar */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="sikk-izin-keluar-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($mdlTL, 'alasan')->textarea(['rows' => 6]) ?>
<div class="form-group">
<?= Html::submitButton($mdlTL->isNewRecord ? 'Create' : 'Updates', ['class' => $mdlTL->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 common\models\SikkIzinKeluar */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="sikk-izin-keluar-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($mdlTL, 'alasan')->textarea(['rows' => 6]) ?>
<div class="form-group">
<?= Html::submitButton($mdlTL->isNewRecord ? 'Create' : 'Updates', ['class' => $mdlTL->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 common\models\search\SikkIzinKeluarSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="sikk-izin-keluar-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $form->field($model, 'izin_keluar_id') ?>
<?= $form->field($model, 'mhs_id') ?>
<?= $form->field($model, 'date_start') ?>
<?= $form->field($model, 'date_end') ?>
<?= $form->field($model, 'time_start') ?>
<?php // echo $form->field($model, 'time_end') ?>
<?php // echo $form->field($model, 'alasan') ?>
<?php // echo $form->field($model, 'deleted') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'created_by') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<?php // echo $form->field($model, 'updated_by') ?>
<?php // echo $form->field($model, 'status') ?>
<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 common\models\SikkIzinKeluar */
$this->title = 'Create Sikk Izin Keluar';
//$this->params['breadcrumbs'][] = ['label' => 'Sikk Izin Keluars', 'url' => ['index']];
//$this->params['breadcrumbs'][] = $this->title;
?>
<div class="sikk-izin-keluar-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
'modelchk' => $modelchk,
'id_wali' => $id_wali,
'nama_wali'=> $nama_wali,
'arrayNamaDosen' => $arrayNamaDosen,
]) ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\SikkIzinKeluar */
$this->title = 'Alasan Diterima';
$this->params['breadcrumbs'][] = ['label' => 'Sikk Izin Keluars', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="sikk-izin-keluar-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_formresponsewali_1', [
'mdlTL' => $mdlTL
]) ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\SikkIzinKeluar */
$this->title = 'Alasan Penolakan';
$this->params['breadcrumbs'][] = ['label' => 'Sikk Izin Keluars', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="sikk-izin-keluar-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_formresponsewali_1', [
'mdlTL' => $mdlTL
]) ?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\SikkIzinKeluar */
$this->title = 'Alasan Penyetujuan';
$this->params['breadcrumbs'][] = ['label' => 'Sikk Izin Keluars', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="sikk-izin-keluar-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_formresponsewali', [
'mdlTL' => $mdlTL
]) ?>
</div>
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel common\models\search\SikkLogSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Daftar Keluar Masuk Mahasiswa';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="sikk-log-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<!-- <p>
<?= Html::a('Create Sikk Log', ['create'], ['class' => 'btn btn-success']) ?>
</p>-->
<?= GridView::widget([
'dataProvider' => $dataProvider,
// 'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
// 'log_id',
[
'attribute'=>'mhs_id',
'label'=>'Nama Mahasiswa',
'value'=>'mhs.nama',
],
'time_in',
'time_out',
'status',
// 'deleted',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel common\models\search\SikkIzinKeluarSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Sikk Izin Keluars';
$this->params['breadcrumbs'][] = $this->title;
$mus = Yii::$app->user->identity->id;
$akunID = \common\models\SikkAkun::findOne(array('akun_id' => $mus));
$roleID = $akunID->role_id;
?>
<div class="sikk-izin-keluar-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php
// echo $this->render('_search', ['model' => $searchModel]);
if ($roleID == 1) {
?>
<p>
<?= Html::a('Create Sikk Izin Keluar', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?=
GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'izin_keluar_id',
'mhs.nama',
'date_start',
'date_end',
// 'status',
// 'status'
['class' => 'yii\grid\ActionColumn'],
],
]);
?>
<?php
} else {
?>
<?=
GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'izin_keluar_id',
'mhs.nama',
'date_start',
'date_end',
['class' => 'yii\grid\ActionColumn'],
],
]);
?>
<?php
}
?>
</div>
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel common\models\search\SikkIzinKeluarSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Daftar Izin Keluar yang disetujui';
$this->params['breadcrumbs'][] = $this->title;
$mus = Yii::$app->user->identity->id;
$akunID = \common\models\SikkAkun::findOne(array('akun_id' => $mus));
$roleID = $akunID->role_id;
?>
<div class="sikk-izin-keluar-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php
// echo $this->render('_search', ['model' => $searchModel]);
if ($roleID == 1) {
?>
<p>
<?= Html::a('Create Sikk Izin Keluar', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?=
GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
// ['class' => 'yii\grid\SerialColumn'],
'izin_keluar_id',
'mhs.nama',
'date_start',
'date_end',
'alasan',
['class' => 'yii\grid\ActionColumn'],
],
]);
?>
<?php
} else {
?>
<?=
GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'izin_keluar_id',
'mhs.nama',
'date_start',
'date_end',
['class' => 'yii\grid\ActionColumn'],
],
]);
?>
<?php
}
?>
</div>
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel common\models\search\SikkIzinKeluarSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Daftar Izin Keluar yang ditolak';
$this->params['breadcrumbs'][] = $this->title;
$mus = Yii::$app->user->identity->id;
$akunID = \common\models\SikkAkun::findOne(array('akun_id' => $mus));
$roleID = $akunID->role_id;
?>
<div class="sikk-izin-keluar-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php
// echo $this->render('_search', ['model' => $searchModel]);
if ($roleID == 1) {
?>
<p>
<?= Html::a('Create Sikk Izin Keluar', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?=
GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'izin_keluar_id',
'mhs.nama',
'date_start',
'date_end',
['class' => 'yii\grid\ActionColumn'],
],
]);
?>
<?php
} else {
?>
<?=
GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'izin_keluar_id',
'mhs.nama',
'date_start',
'date_end',
['class' => 'yii\grid\ActionColumn'],
],
]);
?>
<?php
}
?>
</div>
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\SikkIzinKeluar */
$this->title = 'Update Izin Keluar';
$this->params['breadcrumbs'][] = ['label' => 'Sikk Izin Keluars', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->izin_keluar_id, 'url' => ['view', 'id' => $model->izin_keluar_id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="sikk-izin-keluar-update">
<h1><?= Html::encode($this->title) ?></h1>
<?=
$this->render('_form', [
'model' => $model,
'modelchk' => $modelchk,
'id_wali' => $id_wali,
'nama_wali' => $nama_wali,
'arrayNamaDosen' => $arrayNamaDosen,
])
?>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model common\models\SikkIzinKeluar */
$this->title = "Request Anda";
$this->params['breadcrumbs'][] = ['label' => 'Sikk Izin Keluars', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
$mus = Yii::$app->user->identity->id;
$akunID = \common\models\SikkAkun::findOne(array('akun_id' => $mus));
$roleID = $akunID->role_id;
//var_dump($roleID);
//die();
?>
<div class="sikk-izin-keluar-view">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?php
if ($roleID == 4) {
?>
<?= Html::a('Accept', ['acceptwali', 'id' => $model->izin_keluar_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Reject', ['rejectwali', 'id' => $model->izin_keluar_id], ['class' => 'btn btn-primary']) ?>
<?=
Html::a('Delete', ['delete', 'id' => $model->izin_keluar_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
])
?>
<?php
} else if ($roleID == 3) {
?>
<?= Html::a('Accept', ['acceptkeasramaan', 'id' => $model->izin_keluar_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Reject', ['rejectkeasramaan', 'id' => $model->izin_keluar_id], ['class' => 'btn btn-primary']) ?>
<?=
Html::a('Delete', ['delete', 'id' => $model->izin_keluar_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
])
?>
<?php
} else if ($roleID == 2) {
?>
<?= Html::a('Accept', ['acceptdp', 'id' => $model->izin_keluar_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Reject', ['rejectdp', 'id' => $model->izin_keluar_id], ['class' => 'btn btn-primary']) ?>
<?=
Html::a('Delete', ['delete', 'id' => $model->izin_keluar_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
])
?>
<?php
} else if ($roleID == 2) {
?>
<?= Html::a('Accept', ['acceptdp', 'id' => $model->izin_keluar_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Reject', ['rejectdp', 'id' => $model->izin_keluar_id], ['class' => 'btn btn-primary']) ?>
<?=
Html::a('Delete', ['delete', 'id' => $model->izin_keluar_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
])
?>
<?php
}
?>
</p>
<?=
DetailView::widget([
'model' => $model,
'attributes' => [
// 'izin_keluar_id',
// 'mhs_id',
/* [
'label' => 'Nama',
'value' => $nama_request,
], */
'alasan',
'date_start',
'date_end',
'time_start',
'time_end',
// 'deleted',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
// 'status',
],
])
?>
<div class="sikk-approval-view">
<?php
if ($roleID == 1 && $status == 3) {
echo Html::a('Print', ['/sikk/sikk-izin-keluar/show','id'=>$model->izin_keluar_id], ['class' => 'btn btn-primary']);
} else {
}
?>
</div>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model common\models\SikkIzinKeluar */
$this->title = "Request Anda";
$this->params['breadcrumbs'][] = ['label' => 'Sikk Izin Keluars', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
$mus = Yii::$app->user->identity->id;
$akunID = \common\models\SikkAkun::findOne(array('akun_id' => $mus));
$roleID = $akunID->role_id;
//var_dump($roleID);
//die();
?>
<div class="sikk-izin-keluar-view">
<table>
<tr>
<td>SURAT IZIN KELUAR</td>
</tr>>
</table>
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?php
if ($roleID == 4) {
?>
<?= Html::a('Accept', ['acceptwali', 'id' => $model->izin_keluar_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Reject', ['rejectwali', 'id' => $model->izin_keluar_id], ['class' => 'btn btn-primary']) ?>
<?=
Html::a('Delete', ['delete', 'id' => $model->izin_keluar_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
])
?>
<?php
} else if ($roleID == 3) {
?>
<?= Html::a('Accept', ['acceptkeasramaan', 'id' => $model->izin_keluar_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Reject', ['rejectkeasramaan', 'id' => $model->izin_keluar_id], ['class' => 'btn btn-primary']) ?>
<?=
Html::a('Delete', ['delete', 'id' => $model->izin_keluar_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
])
?>
<?php
} else if ($roleID == 2) {
?>
<?= Html::a('Accept', ['acceptdp', 'id' => $model->izin_keluar_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Reject', ['rejectdp', 'id' => $model->izin_keluar_id], ['class' => 'btn btn-primary']) ?>
<?=
Html::a('Delete', ['delete', 'id' => $model->izin_keluar_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
])
?>
<?php
} else if ($roleID == 2) {
?>
<?= Html::a('Accept', ['acceptdp', 'id' => $model->izin_keluar_id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Reject', ['rejectdp', 'id' => $model->izin_keluar_id], ['class' => 'btn btn-primary']) ?>
<?=
Html::a('Delete', ['delete', 'id' => $model->izin_keluar_id], [
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
])
?>
<?php
}
?>
</p>
<?=
DetailView::widget([
'model' => $model,
'attributes' => [
// 'izin_keluar_id',
// 'mhs_id',
/* [
'label' => 'Nama',
'value' => $nama_request,
], */
'alasan',
'date_start',
'date_end',
'time_start',
'time_end',
// 'deleted',
// 'created_at',
// 'created_by',
// 'updated_at',
// 'updated_by',
// 'status',
],
])
?>
<div class="sikk-approval-view">
<?php
if ($roleID == 1 && $status == 3) {
echo Html::a('Print', ['/sikk/sikk-izin-keluar/show','id'=>$model->izin_keluar_id], ['class' => 'btn btn-primary']);
} else {
}
?>
</div>
</div>
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\SikkLog */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="sikk-log-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'nim')->textInput() ?>
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed. Click to expand it.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
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