89 lines
4.0 KiB
PHP
89 lines
4.0 KiB
PHP
<?php
|
|
/* Smarty version 3.1.32, created on 2020-02-01 16:42:09
|
|
from 'C:\xampp\htdocs\intops\views\logs\index.tpl' */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '3.1.32',
|
|
'unifunc' => 'content_5e3547f1864524_18781299',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'20236a3e8180e4db3a06fbb10df331cc13b7b539' =>
|
|
array (
|
|
0 => 'C:\\xampp\\htdocs\\intops\\views\\logs\\index.tpl',
|
|
1 => 1580550113,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_5e3547f1864524_18781299 (Smarty_Internal_Template $_smarty_tpl) {
|
|
$_smarty_tpl->_loadInheritance();
|
|
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
|
|
?>
|
|
|
|
|
|
|
|
|
|
<?php echo call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'void' ][ 0 ], array( app\assets\LogsAsset::register($_smarty_tpl->tpl_vars['this']->value) ));?>
|
|
|
|
<?php
|
|
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_12812370875e3547f184cb78_94057328', 'content');
|
|
$_smarty_tpl->inheritance->endChild($_smarty_tpl, (dirname($_smarty_tpl->source->filepath)).('/../extends.tpl'));
|
|
}
|
|
/* {block 'content'} */
|
|
class Block_12812370875e3547f184cb78_94057328 extends Smarty_Internal_Block
|
|
{
|
|
public $subBlocks = array (
|
|
'content' =>
|
|
array (
|
|
0 => 'Block_12812370875e3547f184cb78_94057328',
|
|
),
|
|
);
|
|
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
|
|
?>
|
|
|
|
<div class="row">
|
|
<div class="col-md-2">
|
|
<div class="form-group">
|
|
<div class="input-group">
|
|
<div class="input-group-addon">Từ</div>
|
|
<input type='text' value="<?php echo $_smarty_tpl->tpl_vars['from']->value;?>
|
|
" class="form-control" id='from' name='FromTime' readonly="">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<div class="form-group">
|
|
<div class="input-group">
|
|
<div class="input-group-addon">Đến</div>
|
|
<input type='text' value="<?php echo $_smarty_tpl->tpl_vars['to']->value;?>
|
|
" class="form-control" id='to' name='ToTime' readonly="">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-1">
|
|
<button class="btn btn-primary btn-block" onclick="search(this);" data-href='<?php echo yii\helpers\Url::to(array('index'));?>
|
|
'>
|
|
<i class="fa fa-search"></i> Search
|
|
</button>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<button class="btn btn-success" onclick="_export(this);" data-href='<?php echo yii\helpers\Url::to(array('export'));?>
|
|
'>
|
|
<i class="fa fa-download"></i> Xuất báo cáo
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<?php echo yii\grid\GridView::widget(array('dataProvider'=>$_smarty_tpl->tpl_vars['dataProvider']->value,'filterModel'=>$_smarty_tpl->tpl_vars['searchModel']->value,'layout'=>\app\helpers\LogsGrid::getLayout(),'tableOptions'=>array('class'=>'table table-striped table-bordered','style'=>'background:#fff;min-width:700px;'),'columns'=>array(array('class'=>'yii\grid\SerialColumn'),array('attribute'=>'vehicle_id','value'=>'vehicle.plate'),'factory','seal_no',array('attribute'=>"plate_image_in",'format'=>'raw','contentOptions'=>array('class'=>'text-center'),'headerOptions'=>array('style'=>'width:10%'),'value'=>\app\helpers\LogsGrid::plateIn()),array('attribute'=>"time_in",'format'=>'raw','contentOptions'=>array('class'=>'text-center'),'headerOptions'=>array('style'=>'width:18%'),'value'=>\app\helpers\LogsGrid::timeIn()),array('attribute'=>"plate_image_out",'format'=>'raw','contentOptions'=>array('class'=>'text-center'),'headerOptions'=>array('style'=>'width:10%'),'value'=>\app\helpers\LogsGrid::plateOut()),array('attribute'=>"time_out",'format'=>'raw','contentOptions'=>array('class'=>'text-center'),'headerOptions'=>array('style'=>'width:18%'),'value'=>\app\helpers\LogsGrid::timeOut()),'note')));?>
|
|
|
|
<?php
|
|
}
|
|
}
|
|
/* {/block 'content'} */
|
|
}
|