Example #1
0
 'filterRowOptions' => ['class' => 'kartik-sheet-style'],
 'responsive' => true,
 'pjax' => true, // pjax is set to always true for this demo
 'panel' => [
 'type' => GridView::TYPE_DEFAULT,
 'heading' => $heading,
 ],
 ]);
* 
*/
?>

</div>
-->
<?php 
$config = new Config_system();
$notification = new \app\models\Notifications();
$notify = $notification->find()->one();
?>

<div class="panel panel-primary">
    <div class="panel-heading" style="padding-top:10px;">
        <?php 
echo Html::a('<i class="fa fa-user-plus"></i> เพิ่มพนักงานขับรถ', ['create'], ['class' => 'btn btn-info btn-sm']);
?>
        <div class="pull-right">
            <a href="<?php 
echo yii\helpers\Url::to(['site/index']);
?>
" class="btn btn-danger btn-sm"><i class="fa fa-remove"></i></a>
        </div>
Example #2
0
<?php

use yii\helpers\Url;
use app\models\Config_system;
$config = new Config_system();
?>

<?php 
if (!empty($model)) {
    ?>
    <table class="table table-striped">
        <thead>
            <tr>
                <th>#</th>
                <th style=" text-align: center;">วันที่ปรับเงินเดือน</th>
                <th style=" text-align: right;">จำนวนเงิน</th>
                <th style=" text-align: center;">เลือก</th>
            </tr>
        </thead>
        <tbody>
            <?php 
    $i = 0;
    foreach ($model as $rs) {
        $i++;
        ?>
                <tr>
                    <td><?php 
        echo $i;
        ?>
</td>
                    <td style=" text-align: center;"><?php 
Example #3
0
<style type="text/css">
    #form-service .form-control{ color: #33ff00;}
</style>
<?php 
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
use app\models\Config_system;
$config = new Config_system();
?>

<div class="row" id="form-service">
    <div class="col-sm-12 col-md-4 col-lg-4">
        <div class="form-group">
            <div class="input-group">
                <div class="input-group-addon">วันที่มารับบริการ</div>
                <?php 
if (!empty($model['DATE_SERV'])) {
    $dateServie = $config->ThaiDateNoFormat($model['DATE_SERV']);
} else {
    $dateServie = "";
}
?>
                <input type="text" class="form-control" id="DATE_SERV"  value="<?php 
echo $dateServie;
?>
" readonly="readonly">
            </div>
        </div>