%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.26 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec 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 : |
<?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>