コード例 #1
0
<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\bootstrap\ActiveForm;
use app\models\HrdPegawai;
$HrdPegawai = new HrdPegawai();
$this->title = 'Tambah Data Pelanggaran Pegawai';
$this->params['breadcrumbs'][] = $this->title;
?>
					
<?php 
$form = ActiveForm::begin(['id' => 'create-pelanggran', 'options' => ['class' => 'form-horizontal', 'data-toggle' => 'validator'], 'fieldConfig' => ['template' => "{label}\n<div class=\"col-lg-3\">{input}</div>\n<div class=\"col-lg-8\">{error}</div>", 'labelOptions' => ['class' => 'col-lg-1 control-label']]]);
?>
<div class="side">
	<div class="sub-sidebar-wrapper">
	  <ul class="nav">
		<?php 
echo Nav::widget(['items' => [['label' => 'Data Pribadi Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/profil'])]], ['label' => 'Data Penempatan Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/posisi'])]], ['label' => 'Data Departemen Perusahaan', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/departement'])]], ['label' => 'Data Prestasi Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/prestasi'])]]]]);
?>
	  </ul>
	</div>
</div>
<div class="col-md-12">
    <div class="widget widget-green">
        <div class="widget-title">
            <div class="widget-controls">
				<a href="#" class="widget-control widget-control-full-screen" data-toggle="tooltip" data-placement="top" title="" data-original-title="Full Screen"><i class="fa fa-expand"></i></a>
				<a href="#" class="widget-control widget-control-full-screen widget-control-show-when-full" data-toggle="tooltip" data-placement="left" title="" data-original-title="Exit Full Screen"><i class="fa fa-expand"></i></a>
コード例 #2
0
ファイル: detail_profil.php プロジェクト: tiyolab/autocom
function DateToIndo($date)
{
    $BulanIndo = array("Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember");
    $tahun = substr($date, 0, 4);
    $bulan = substr($date, 5, 2);
    $tgl = substr($date, 8, 2);
    $result = $tgl . " " . $BulanIndo[(int) $bulan - 1] . " " . $tahun;
    return $result;
}
use yii\helpers\Html;
use yii\grid\GridView;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use app\models\HrdPegawai;
$HrdPegawai = new HrdPegawai();
$detailPegawai = $HrdPegawai->findPegawaiWithDetail(Yii::$app->request->get()['id']);
$this->title = 'Detail data pegawai : ' . $detailPegawai[0]['nama_lengkap'];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="side">
	<div class="sub-sidebar-wrapper">
	  <ul class="nav">
		<?php 
echo Nav::widget(['items' => [['label' => 'Data Pribadi Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/profil'])]], ['label' => 'Data Penempatan Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/posisi'])]], ['label' => 'Data Departemen Perusahaan', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/departement'])]], ['label' => 'Data Prestasi Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/prestasi'])]]]]);
?>
	  </ul>
	</div>
</div>
<div class="col-md-12">
    <div class="widget widget-green">
コード例 #3
0
ファイル: insert_gaji.php プロジェクト: tiyolab/autocom
<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\bootstrap\ActiveForm;
use app\models\HrdPegawai;
$HrdPegawai = new HrdPegawai();
$this->title = 'Tambah Data Gaji Pokok Pegawai';
$this->params['breadcrumbs'][] = $this->title;
?>
					
<?php 
$form = ActiveForm::begin(['id' => 'create-gaji', 'options' => ['class' => 'form-horizontal', 'data-toggle' => 'validator'], 'fieldConfig' => ['template' => "{label}\n<div class=\"col-lg-3\">{input}</div>\n<div class=\"col-lg-8\">{error}</div>", 'labelOptions' => ['class' => 'col-lg-1 control-label']]]);
?>
<div class="col-md-12">
    <div class="widget widget-green">
        <div class="widget-title">
            <div class="widget-controls">
				<a href="#" class="widget-control widget-control-full-screen" data-toggle="tooltip" data-placement="top" title="" data-original-title="Full Screen"><i class="fa fa-expand"></i></a>
				<a href="#" class="widget-control widget-control-full-screen widget-control-show-when-full" data-toggle="tooltip" data-placement="left" title="" data-original-title="Exit Full Screen"><i class="fa fa-expand"></i></a>
				<a href="#" class="widget-control widget-control-refresh" data-toggle="tooltip" data-placement="top" title="" data-original-title="Refresh"><i class="fa fa-refresh"></i></a>
				<a href="#" class="widget-control widget-control-minimize" data-toggle="tooltip" data-placement="top" title="" data-original-title="Minimize"><i class="fa fa-minus-circle"></i></a>
			</div>
            <h3><i class="fa fa-ok-circle"></i><?php 
echo Html::encode($this->title);
?>
</h3>
        </div>
			<div class="widget-content">
コード例 #4
0
ファイル: insert_manager.php プロジェクト: tiyolab/autocom
<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\bootstrap\ActiveForm;
use app\models\HrdPegawai;
$HrdPegawai = new HrdPegawai();
$this->title = 'Tambah Data Manager';
$this->params['breadcrumbs'][] = $this->title;
?>
					
<?php 
$form = ActiveForm::begin(['id' => 'create-manager', 'options' => ['class' => 'form-horizontal', 'data-toggle' => 'validator'], 'fieldConfig' => ['template' => "{label}\n<div class=\"col-lg-3\">{input}</div>\n<div class=\"col-lg-8\">{error}</div>", 'labelOptions' => ['class' => 'col-lg-1 control-label']]]);
?>
<div class="col-md-12">
    <div class="widget widget-green">
        <div class="widget-title">
            <div class="widget-controls">
				<a href="#" class="widget-control widget-control-full-screen" data-toggle="tooltip" data-placement="top" title="" data-original-title="Full Screen"><i class="fa fa-expand"></i></a>
				<a href="#" class="widget-control widget-control-full-screen widget-control-show-when-full" data-toggle="tooltip" data-placement="left" title="" data-original-title="Exit Full Screen"><i class="fa fa-expand"></i></a>
				<a href="#" class="widget-control widget-control-refresh" data-toggle="tooltip" data-placement="top" title="" data-original-title="Refresh"><i class="fa fa-refresh"></i></a>
				<a href="#" class="widget-control widget-control-minimize" data-toggle="tooltip" data-placement="top" title="" data-original-title="Minimize"><i class="fa fa-minus-circle"></i></a>
			</div>
            <h3><i class="fa fa-ok-circle"></i><?php 
echo Html::encode($this->title);
?>
</h3>
        </div>
			<div class="widget-content">
コード例 #5
0
 public function actionDeleteProfil()
 {
     if ($this->isDeleteAllowed()) {
         $this->layout = 'hrd';
         if (Yii::$app->request->get()) {
             HrdPegawai::deleteAll('id_pegawai = ' . Yii::$app->request->get()['id']);
             HrdManager::deleteAll('id_pegawai = ' . Yii::$app->request->get()['id']);
             HrdPrestasi::deleteAll('id_pegawai = ' . Yii::$app->request->get()['id']);
             HrdPelanggaran::deleteAll('id_pegawai = ' . Yii::$app->request->get()['id']);
             HrdAktivitas::deleteAll('id_pegawai = ' . Yii::$app->request->get()['id']);
             HrdLembur::deleteAll('id_pegawai = ' . Yii::$app->request->get()['id']);
             HrdAbsensi::deleteAll('id_pegawai = ' . Yii::$app->request->get()['id']);
             return $this->render('index_profil');
         }
         return $this->render('index_profil');
     } else {
         echo "You don't have access here";
         die;
     }
 }
コード例 #6
0
ファイル: update_profil.php プロジェクト: tiyolab/autocom
<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\bootstrap\ActiveForm;
use app\models\HrdPegawai;
use app\models\HrdDepartement;
$HrdDepartement = new HrdDepartement();
$HrdPegawai = new HrdPegawai();
$myData = HrdPegawai::find()->where(['id_pegawai' => Yii::$app->request->get()['id']])->asArray()->one();
$this->title = 'Edit Data Pribadi Pegawai : ' . $myData['nama_lengkap'];
$this->params['breadcrumbs'][] = $this->title;
?>
					
<?php 
$form = ActiveForm::begin(['id' => 'update-profil', 'options' => ['class' => 'form-horizontal', 'data-toggle' => 'validator'], 'fieldConfig' => ['template' => "{label}\n<div class=\"col-lg-3\">{input}</div>\n<div class=\"col-lg-8\">{error}</div>", 'labelOptions' => ['class' => 'col-lg-1 control-label']]]);
?>
<div class="side">
	<div class="sub-sidebar-wrapper">
	  <ul class="nav">
		<?php 
echo Nav::widget(['items' => [['label' => 'Data Pribadi Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/profil'])]], ['label' => 'Data Penempatan Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/posisi'])]], ['label' => 'Data Departemen Perusahaan', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/departement'])]], ['label' => 'Data Prestasi Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/prestasi'])]]]]);
?>
	  </ul>
	</div>
</div>
<div class="col-md-12">
    <div class="widget widget-green">
        <div class="widget-title">
コード例 #7
0
ファイル: index_posisi.php プロジェクト: tiyolab/autocom
<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use app\models\HrdPegawai;
$HrdPegawai = new HrdPegawai();
$this->title = 'Data Penempatan Pegawai';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="side">
	<div class="sub-sidebar-wrapper">
	  <ul class="nav">
		<?php 
echo Nav::widget(['items' => [['label' => 'Data Pribadi Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/profil'])]], ['label' => 'Data Penempatan Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/posisi'])]], ['label' => 'Data Departemen Perusahaan', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/departement'])]], ['label' => 'Data Manager ', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/manager'])]], ['label' => 'Data Prestasi Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/prestasi'])]]]]);
?>
	  </ul>
	</div>
</div>
<div class="col-md-12">
    <div class="widget widget-green">
        <div class="widget-title">
            <div class="widget-controls">
				<a href="#" class="widget-control widget-control-full-screen" data-toggle="tooltip" data-placement="top" title="" data-original-title="Full Screen"><i class="fa fa-expand"></i></a>
				<a href="#" class="widget-control widget-control-full-screen widget-control-show-when-full" data-toggle="tooltip" data-placement="left" title="" data-original-title="Exit Full Screen"><i class="fa fa-expand"></i></a>
				<a href="#" class="widget-control widget-control-refresh" data-toggle="tooltip" data-placement="top" title="" data-original-title="Refresh"><i class="fa fa-refresh"></i></a>
				<a href="#" class="widget-control widget-control-minimize" data-toggle="tooltip" data-placement="top" title="" data-original-title="Minimize"><i class="fa fa-minus-circle"></i></a>
			</div>
            <h3><i class="fa fa-ok-circle"></i><?php 
echo Html::encode($this->title);
コード例 #8
0
ファイル: insert_absensi.php プロジェクト: tiyolab/autocom
<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\bootstrap\ActiveForm;
use app\models\HrdPegawai;
$HrdPegawai = new HrdPegawai();
$this->title = 'Tambah Absensi Pegawai';
$this->params['breadcrumbs'][] = $this->title;
$dat_server = mktime(date("G"), date("i"), date("s"), date("n"), date("j"), date("Y"));
$diff_gmt = substr(date("O", $dat_server), 1, 2);
$datdif_gmt = 60 * 60 * $diff_gmt;
if (substr(date("O", $dat_server), 0, 1) == '+') {
    $dat_gmt = $dat_server - $datdif_gmt;
} else {
    $dat_gmt = $dat_server + $datdif_gmt;
}
$datdif_id = 60 * 60 * 7;
$dat_id = $dat_gmt + $datdif_id;
?>
					
<?php 
$form = ActiveForm::begin(['id' => 'create-absensi', 'options' => ['class' => 'form-horizontal', 'data-toggle' => 'validator'], 'fieldConfig' => ['template' => "{label}\n<div class=\"col-lg-3\">{input}</div>\n<div class=\"col-lg-8\">{error}</div>", 'labelOptions' => ['class' => 'col-lg-1 control-label']]]);
?>
<div class="side">
	<div class="sub-sidebar-wrapper">
	  <ul class="nav">
		<?php 
echo Nav::widget(['items' => [['label' => 'Data Pribadi Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/profil'])]], ['label' => 'Data Penempatan Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/posisi'])]], ['label' => 'Data Departemen Perusahaan', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/departement'])]], ['label' => 'Data Prestasi Pegawai', 'url' => [Yii::$app->urlManager->createUrl(['../../human-resource/prestasi'])]]]]);