{extends file=$smarty.current_dir|cat:'/../extends.tpl'} {use class="yii\helpers\Url"} {use class="yii\grid\GridView"} {use class="yii\widgets\Pjax" type="block"} {use class="app\assets\LogsAsset"} {LogsAsset::register($this)|void} {block name='content'}
Từ
Đến
{Pjax id="department-list"} {GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'layout'=> \app\helpers\CommonGrid::getLayout(), 'tableOptions' => [ 'class' => 'table table-striped table-bordered table-hover', 'style' => 'background:#fff;min-width:700px;' ], 'rowOptions' => \app\helpers\LogsGrid::rowsColor(), 'columns' => [ [ 'class' => 'yii\grid\SerialColumn', 'contentOptions' => ['class' => 'text-center'], 'headerOptions' => ['class' => 'text-center', 'style' => 'width:3%'] ], [ 'attribute' => 'time', 'format' => 'raw', 'headerOptions' => ['style' => 'width:10%'], 'value' => \app\helpers\LogsGrid::time() ], [ 'attribute' => 'staff_code', 'format' => 'raw', 'contentOptions' => ['class' => 'text-center'], 'headerOptions' => ['style' => 'width:5%'], 'value' => \app\helpers\LogsGrid::code() ], [ 'attribute' => 'staff_name', 'format' => 'raw', 'value' => \app\helpers\LogsGrid::name() ], [ 'attribute' => 'staff_department', 'filter' => $departmentArray, 'format' => 'raw', 'value' => \app\helpers\LogsGrid::department($departmentArray) ], 'card_number', [ 'attribute' => 'device_id', 'format' => 'raw', 'filter' => $deviceArray, 'headerOptions' => ['style' => 'width:10%'], 'value' => \app\helpers\LogsGrid::device($deviceArray) ], [ 'attribute' => 'door_id', 'format' => 'raw', 'filter' => $deviceArray, 'headerOptions' => ['style' => 'width:10%'], 'value' => \app\helpers\LogsGrid::door($deviceArray) ], [ 'attribute' => 'in_out_state', 'format' => 'raw', 'filter' => $stateArray, 'headerOptions' => ['style' => 'width:8%'], 'contentOptions' => ['class' => 'text-center'], 'value' => \app\helpers\LogsGrid::state($stateArray) ], [ 'attribute' => 'event_type', 'format' => 'raw', 'filter' => $eventTypeArray, 'value' => \app\helpers\LogsGrid::eventType($eventTypeArray) ] ] ])} {/Pjax}
{/block}