%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/bookingdata/views/default/ |
Upload File : |
<?php
use yii\helpers\Html;
use yii\helpers\Url;
use kartik\grid\GridView;
use backend\modules\bookingdata\models\BookingRoom;
use backend\modules\departments\models\Departments;
use yii\helpers\ArrayHelper;
use kartik\widgets\ActiveForm;
use yii\widgets\Pjax;
use dosamigos\datetimepicker\DateTimePicker;
use kartik\switchinput\SwitchInput;
$backend = Yii::getAlias('@back');
$this->title = 'ขอใช้ห้องประชุม';
?>
<div class="m-divider">
<span></span>
<h3 class="bg-light m--padding-20">แบบฟอร์มการ<?= Html::encode($this->title) ?></h3>
<span></span>
</div>
<?php Pjax::begin(['id' => 'PjaxBooking']); ?>
<?php
$form = ActiveForm::begin([
'id' => 'bookingform',
'options' => ['enctype' => 'multipart/form-data'],
'type' => ActiveForm::TYPE_HORIZONTAL,
'formConfig' => [
'labelSpan' => 4,
'deviceSize' => ActiveForm::SIZE_SMALL
],
'fieldConfig' => [
'template' => '<div class="row">{label}{beginWrapper}{input}{error}{endWrapper}</div>',
'errorOptions' => [
'encode' => false,
'class' => 'help-block'
]
],
]);
?>
<div class="row">
<div class="col-md-12">
<div class="m-portlet">
<div class="m-portlet__head">
<div class="m-portlet__head-caption">
<div class="m-portlet__head-title">
<span class="m-portlet__head-icon">
<i class="flaticon-avatar"></i>
</span>
<h3 class="m-portlet__head-text">
ข้อมูลการขอใช้ห้องประชุม
</h3>
</div>
</div>
</div>
<div class="m-portlet__body">
<div class="col-xl-8">
<div class="m-widget1">
<?=
$form->field($model, 'booking_department')->dropDownList(
ArrayHelper::map(Departments::find()->where(['NOT', ['id' => [12]]])->all(), 'id', 'name'), [
'prompt' => 'กรุณาเลือกหน่วยงาน',
]);
?>
<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'tel')->textInput(['maxlength' => true]) ?>
<?=
$form->field($model, 'booking_room_id')->dropDownList(
ArrayHelper::map(BookingRoom::find()->where(['departments' => 1])->all(), 'id', 'name'), [
'prompt' => 'กรุณาเลือกห้องประชุม',
]);
?>
<?=
$form->field($model, 'booking_date_start')->widget(DateTimePicker::classname(), [
'language' => 'th',
'size' => 'lg',
'template' => '{button}{input}{reset}',
'pickButtonIcon' => 'la la-calendar-check-o',
'options' => ['placeholder' => 'ระบุวันเวลาที่ขอใช้', 'readonly' => 'readonly'],
'inline' => false,
'clientOptions' => [
'startView' => 2,
'minView' => 0,
'maxView' => 4,
'autoclose' => true,
'linkFormat' => 'HH:ii P', // if inline = true
// 'format' => 'HH:ii P', // if inline = false
'todayBtn' => true
]
]);
?>
<?=
$form->field($model, 'booking_date_end')->widget(DateTimePicker::classname(), [
'language' => 'th',
'size' => 'lg',
'template' => '{button}{input}{reset}',
'pickButtonIcon' => 'la la-calendar-check-o',
'options' => ['placeholder' => 'ระบุวันที่สิ้นสุดการขอใช้', 'readonly' => 'readonly'],
'inline' => false,
'clientOptions' => [
'startView' => 2,
'minView' => 0,
'maxView' => 4,
'autoclose' => true,
'linkFormat' => 'HH:ii P', // if inline = true
// 'format' => 'HH:ii P', // if inline = false
'todayBtn' => true
]
]);
?>
<?= $form->field($model, 'booking_subject')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'booking_detail')->textarea(['rows' => 6]) ?>
<?php
/*echo $form->field($model, 'online')->widget(SwitchInput::classname(), [
'type' => SwitchInput::CHECKBOX,
'items' => [
['label' => 'Low', 'value' => 1],
['label' => 'Medium', 'value' => 2],
['label' => 'High', 'value' => 3],
],
'pluginOptions' => [
'onText' => 'ใช้',
'offText' => 'ไม่ใช้',
'labelText' => 'Zoom Meeting, Webex, Google Meet และอื่นๆ',
]
]);*/
?>
<?= $form->field($model, 'online')->checkbox([
'label' => 'ต้องการใช้ระบบประชุมออนไลน์ กรุณาติ๊กถูก',
'checked' => 1,
'uncheck' => 0,
'style' => 'width: 30px !important;height: 30px !important;vertical-align: middle;',
])->label('⭐️ ระบบประชุมออนไลน์ ⭐️'); ?>
<p></p>
<?= $form->field($model, 'reCaptcha')->widget(\himiklab\yii2\recaptcha\ReCaptcha::className()) ?>
<?= $form->field($model, 'created_at', ['options' => ['tag' => false]])->hiddenInput()->label(false); ?>
<?= $form->field($model, 'updated_at', ['options' => ['tag' => false]])->hiddenInput()->label(false); ?>
<?= $form->field($model, 'status', ['options' => ['tag' => false]])->hiddenInput()->label(false); ?>
<div class="form-group">
<?php echo Html::submitButton('บันทึก', ['class' => 'btn btn-lg btn-block btn-success']) ?>
</div>
</div>
</div>
<div class="col-xl-2">
<div class="m-widget1"></div>
</div>
</div>
</div>
</div>
</div>
<?php ActiveForm::end(); ?>
<?php Pjax::end(); ?>