%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 : /var/www/html/eoffice/frontend/modules/dispatchs/views/default/ |
Upload File : |
<?php use yii\helpers\Html; use kartik\grid\GridView; use yii\helpers\Url; use yii\helpers\ArrayHelper; use backend\modules\dispatchdata\models\Dispatchs; use yii\widgets\Pjax; use yii\widgets\ActiveForm; use backend\modules\departments\models\Departments; $backend = Yii::getAlias('@back'); $this->title = 'ระบบทะเบียนหนังสือรับภายนอก'; ?> <?php $gridColumns = [ [ 'attribute' => 'dispatch_num', 'label' => '#', 'vAlign' => 'middle', 'width' => '4%', 'headerOptions' => ['class' => 'kv-sticky-column text-center'], 'contentOptions' => function ($model) { return [ 'style' => 'text-align: center;cursor:pointer', 'id' => $model['id'], 'onclick' => 'window.location.href = "/dispatchs/default/view?id="+(this.id)', ]; }, ], [ 'attribute' => 'dateon', 'hAlign' => 'center', 'width' => '11%', 'vAlign' => 'middle', 'xlFormat' => "mmm\\-dd\\, \\-yyyy", 'format' => 'html', 'filterType' => GridView::FILTER_DATE, 'filterWidgetOptions' => ( [ 'model' => $searchModel, 'type' => 2, 'language' => 'th', 'attribute' => 'dateon', 'convertFormat' => true, 'pluginOptions' => [ 'autoclose' => true, 'format' => 'yyyy-MM-dd', 'showButtonPanel' => false, ], ] ), 'headerOptions' => ['class' => 'kv-sticky-column text-center'], 'contentOptions' => function ($model) { return [ 'style' => 'text-align: center;cursor:pointer;', 'name' => 'modal-circular-view-button', 'id' => $model['id'], 'onclick' => 'window.location.href = "/dispatchs/default/view?id="+(this.id)', ]; }, 'value' => function ($model) { return Yii::$app->formatter->asDate($model->dateon, 'long'); }, ], [ 'attribute' => 'booknum', 'vAlign' => 'middle', 'width' => '11%', 'headerOptions' => ['class' => 'kv-sticky-column text-center'], 'contentOptions' => function ($model) { return [ 'style' => 'text-align: center;cursor:pointer', 'id' => $model['id'], 'onclick' => 'window.location.href = "/dispatchs/default/view?id="+(this.id)', ]; }, ], [ 'attribute' => 'datebook', 'hAlign' => 'center', 'width' => '11%', 'vAlign' => 'middle', 'xlFormat' => "mmm\\-dd\\, \\-yyyy", 'format' => 'html', 'filterType' => GridView::FILTER_DATE, 'filterWidgetOptions' => ( [ 'model' => $searchModel, 'type' => 2, 'language' => 'th', 'attribute' => 'datebook', 'convertFormat' => true, 'pluginOptions' => [ 'autoclose' => true, 'format' => 'yyyy-MM-dd', ], ] ), 'headerOptions' => ['class' => 'kv-sticky-column text-center'], 'contentOptions' => function ($model) { return [ 'style' => 'text-align: center;cursor:pointer;', 'name' => 'modal-circular-view-button', 'id' => $model['id'], 'onclick' => 'window.location.href = "/dispatchdata/dispatch-data/update?id="+(this.id)', ]; }, 'value' => function ($model) { return Yii::$app->formatter->asDate($model->datebook, 'long'); }, ], [ 'attribute' => 'from_dis', 'vAlign' => 'middle', 'width' => '15%', 'headerOptions' => ['class' => 'kv-sticky-column text-center'], 'contentOptions' => function ($model) { return [ 'style' => 'color:#D2691E;text-align: center;cursor:pointer;max-width:150px;overflow: auto; white-space: normal; word-wrap: break-word;', 'id' => $model['id'], 'onclick' => 'window.location.href = "/dispatchs/default/view?id="+(this.id)', ]; }, ], [ 'attribute' => 'to_dis', 'width' => '7%', 'vAlign' => 'middle', 'headerOptions' => ['class' => 'kv-sticky-column text-center'], 'contentOptions' => function ($model) { return [ 'style' => 'text-align: center;cursor:pointer;overflow: auto;white-space: normal; word-wrap: break-word;', 'id' => $model['id'], 'onclick' => 'window.location.href = "/dispatchs/default/view?id="+(this.id)', ]; }, ], [ 'attribute' => 'subject', 'width' => '20%', 'vAlign' => 'middle', 'headerOptions' => ['class' => 'kv-sticky-column text-center'], 'contentOptions' => function ($model) { return [ 'style' => 'color:#1E90FF;text-align: center;cursor:pointer;overflow: auto;white-space: normal; word-wrap: break-word;', 'id' => $model['id'], 'onclick' => 'window.location.href = "/dispatchs/default/view?id="+(this.id)', ]; }, ], [ 'attribute' => 'departments_id', 'filter' => ArrayHelper::map(Departments::find()->where(['NOT IN', 'id', [12, 13, 14, 15]])->all(), 'id', 'name'), 'filterInputOptions' => [ 'class' => 'form-control', 'prompt' => 'ทั้งหมด' ], 'value' => function($model) { return $model->departments->name; }, 'vAlign' => 'middle', 'width' => '10%', 'headerOptions' => ['class' => 'kv-sticky-column text-center'], 'contentOptions' => function ($model) { return [ 'style' => 'text-align: center;cursor:pointer;overflow: auto;white-space: normal; word-wrap: break-word;', 'id' => $model['id'], 'onclick' => 'window.location.href = "/dispatchs/default/view?id="+(this.id)', ]; }, ], [ 'attribute' => 'datedepartments', 'hAlign' => 'center', 'width' => '11%', 'vAlign' => 'middle', 'xlFormat' => "mmm\\-dd\\, \\-yyyy", 'format' => 'html', 'filterType' => GridView::FILTER_DATE, 'filterWidgetOptions' => ( [ 'model' => $searchModel, 'type' => 2, 'language' => 'th', 'attribute' => 'datedepartments', 'convertFormat' => true, 'pluginOptions' => [ 'autoclose' => true, 'format' => 'yyyy-MM-dd', ], ] ), 'headerOptions' => ['class' => 'kv-sticky-column text-center'], 'contentOptions' => function ($model) { return [ 'style' => 'text-align: center;cursor:pointer;', 'name' => 'modal-circular-view-button', 'id' => $model['id'], 'onclick' => 'window.location.href = "/dispatchdata/dispatch-data/update?id="+(this.id)', ]; }, 'value' => function ($model) { return Yii::$app->formatter->asDate($model->datedepartments, 'long'); }, ], [ 'class' => 'kartik\grid\FormulaColumn', 'header' => '<i class="m-menu__link-icon flaticon-file"></i>', 'vAlign' => 'middle', 'width' => '1%', 'format' => 'raw', 'value' => function ($model) { if ($model->filename != null) { return Html::a('<i class="m-menu__link-icon flaticon-file"></i>', ['@web/files/' . $model->filename], [ 'data-pjax' => '0', 'target' => '_blank', 'data-toggle' => 'tooltip', 'title' => 'ไฟล์เอกสาร' ]); } else { return '-'; } }, 'headerOptions' => ['class' => 'kartik-sheet-style'], 'hAlign' => 'center', 'mergeHeader' => true, ], ]; ?> <div class="site-index"> <div class="body-content"> <div class="m-divider m--padding-bottom-20"> <span></span> <h3 class="bg-light m--padding-20"><?= Html::encode($this->title) ?></h3> <span></span> </div> <div class="m-portlet m-portlet--mobile"> <?php yii\widgets\Pjax::begin(['id' => 'grid-user-pjax', 'timeout' => 5000]) ?> <?= GridView::widget([ 'id' => 'grid-' . Yii::$app->controller->module->id . Yii::$app->controller->action->id, 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'options' => [ 'class' => 'm-datatable__table table table-bordered' ], 'filterRowOptions' => ['class' => 'kartik-sheet-style'], 'layout' => "{items}\n{pager}", 'showPageSummary' => false, 'panel' => [ 'type' => GridView::TYPE_PRIMARY ], 'panelTemplate' => ' <div class="m_datatable m-datatable m-datatable--default m-datatable--loaded panel {type}"> {items} <div class="m-datatable__pager m-datatable--paging-loaded clearfix"> {pager} </div> <div class="clearfix"></div> </div>', 'pjax' => true, 'pjaxSettings' => [ 'neverTimeout' => true, 'enablePushState' => true, 'options' => ['id' => 'grid-' . Yii::$app->controller->module->id . Yii::$app->controller->action->id,], ], 'pager' => Yii::$app->params['pagerX'], 'toolbar' => [ '{export}', '{toggleData}' ], 'export' => [ 'label' => 'ดาว์โหลดเอกสาร', 'fontAwesome' => true, 'showConfirmAlert' => false, 'target' => \kartik\grid\GridView::TARGET_BLANK ], 'exportConfig' => [ \kartik\grid\GridView::EXCEL => false, ], 'responsive' => true, 'responsiveWrap' => false, 'hover' => true, 'headerRowOptions' => ['class' => 'header-table-center',], 'columns' => $gridColumns, 'krajeeDialogSettings' => ['overrideYiiConfirm' => false] ]); ?> <?php yii\widgets\Pjax::end() ?> </div> </div> </div>