%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 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 : /proc/11584/task/11584/cwd/html/ppaobm/frontend/modules/booking/views/bookingdata/ |
Upload File : |
<?php use yii\helpers\Html; use yii\widgets\DetailView; use dektrium\user\models\Profile; use backend\modules\department_type\models\DepartmentType; use backend\modules\location_center\models\LocationCenter; use backend\modules\location_room\models\LocationRoom; use frontend\modules\booking\models\BookingData; /* @var $this yii\web\View */ /* @var $model frontend\modules\booking\models\BookingData */ $this->title = $model->name; $this->params['breadcrumbs'][] = ['label' => 'Booking Datas', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; \yii\web\YiiAsset::register($this); ?> <div class="container"> <section id="bookingcreate" class="content-header"> <h1> <?= Html::a('<i class="fa fa-chevron-left"></i> ย้อนกลับ', ['/booking/bookingdata/index'], ['class' => 'btn bg-light-blue']) ?> ข้อมูลการขอใช้ห้องประชุมและอาคารสถานที่ <small>ศูนย์ประสานแผนพัฒนาท้องถิ่นประจำอำเภอ องค์การบริหารส่วนจังหวัดพิษณุโลก</small> </h1> </section> <section class="content"> <div class="box"> <?php $data = BookingData::find()->where(['id' => $model->id])->one(); if ($data->status == 0) { ?> <div class="alert alert-warning" role="alert"> <strong> รอการอนุมัติจากเจ้าหน้าที่ </strong> </div> <?php } if ($data->status == 1) { ?> <div class="alert alert-success" role="alert"> <strong> อนุมัติเรียบร้อยแล้ว </strong> </div> <?php } if ($data->status == 2) { ?> <div class="alert alert-danger" role="alert"> <strong> ไม่อนุมัติ </strong> เนื่องจาก : <?= $model->cancel ?> </div> <?php } ?> <div class="box-header with-border"> <h3 class="box-title">ข้อมูลผู้ยื่นคำร้อง</h3> </div> <div class="box-body"> <?= DetailView::widget([ 'model' => $model, 'template' => '<tr><th width="250px">{label}</th><td><span style="font-weight: 600;">{value}</span></td></tr>', 'attributes' => [ [ 'label' => 'วันที่บันทึกข้อมูล', 'attribute' => 'created_at', 'value' => function ($model) { return Yii::$app->thaiFormatter->asDateTime($model->created_at, 'php:วันที่ d F Y เวลา H:s น.'); }, ], [ 'label' => 'ขอใช้วันที่', 'attribute' => 'datein', 'value' => function ($model) { return Yii::$app->thaiFormatter->asDateTime($model->datein, 'php:วันที่ d F Y เวลา H:s น.'); }, ], [ 'label' => 'ขอใช้ถึงวันที่', 'attribute' => 'dateon', 'value' => function ($model) { return Yii::$app->thaiFormatter->asDateTime($model->dateon, 'php:วันที่ d F Y เวลา H:s น.'); }, ], 'name', 'department_name', [ 'attribute' => 'department_type_id', 'value' => function ($model) { $model = DepartmentType::find()->where(['id' => $model->department_type_id])->one(); return $model->name; }, ], 'tel', [ 'attribute' => 'location_center_id', 'value' => function ($model) { $model = LocationCenter::find()->where(['id' => $model->location_center_id])->one(); return $model->name; }, ], [ 'attribute' => 'location_room_id', 'value' => function ($model) { $model = LocationRoom::find()->where(['id' => $model->location_room_id])->one(); return $model->name; }, ], 'num_user', 'comment:ntext', 'waivefees', 'cost', // [ // 'label' => 'ผู้บันทึกข้อมูล', // 'attribute' => 'user_id', // 'value' => function ($model) { // $modeluser = Profile::find()->where(['user_id' => $model->user_id])->one(); // return $modeluser->name; // }, // ], ], ]) ?> </div> </div> </section> </div>