BiFace_Server_Lite/views/control-logs/index.tpl

116 lines
5.1 KiB
Smarty

{extends file=$smarty.current_dir|cat:'/../extends.tpl'}
{use class="yii\helpers\Url"}
{use class="yii\grid\GridView"}
{use class="app\assets\ControlLogsAsset"}
{ControlLogsAsset::register($this)|void}
{block name='content'}
<style>
.row{
margin-bottom: 5px;
}
input{
width: 100%;
}
.table-striped > tbody > tr:nth-of-type(odd){
background-color: rgb(210, 210, 210);
}
.feature-img{
display:inline-block;
position: relative;
}
.feature-img:hover .btn{
visibility: visible !important;
}
</style>
<div class="row">
<div class="col-md-10" style="max-height: 850px;overflow-y: auto;">
{GridView::widget([
'dataProvider' => $dataProvider,
'layout'=> \app\helpers\CaptureLogsGrid::getLayout(),
'tableOptions' => [
'class' => 'table table-striped table-bordered',
'style' => 'background:#fff;min-width:700px;'
],
'rowOptions' => \app\helpers\CaptureLogsGrid::rows(),
'columns' => [
[
'attribute' => 'id',
'contentOptions' => ['class' => 'text-center'],
'headerOptions' => ['class' => 'text-center']
],
[
'attribute' => 'time',
'contentOptions' => ['class' => 'text-center'],
'headerOptions' => ['class' => 'text-center'],
'value' => \app\helpers\CaptureLogsGrid::time()
],
[
'attribute' => 'staff_image',
'format' => 'raw',
'contentOptions' => ['class' => 'text-center'],
'headerOptions' => ['class' => 'text-center', 'style' => 'width:15%'],
'value' => \app\helpers\CaptureLogsGrid::registrationImage()
],
[
'attribute' => 'image',
'format' => "raw",
'contentOptions' => ['class' => 'text-center'],
'headerOptions' => ['class' => 'text-center', 'style' => 'width:15%'],
'value' => \app\helpers\CaptureLogsGrid::image(true)
],
[
'attribute' => 'confidence',
'contentOptions' => ['class' => 'text-center'],
'headerOptions' => ['class' => 'text-center'],
'value' => \app\helpers\CaptureLogsGrid::confidence()
],
'listManagement.name',
'listManagement.gender',
'listManagement.telephone',
[
'attribute' => 'listManagement.birthday',
'contentOptions' => ['class' => 'text-center'],
'headerOptions' => ['class' => 'text-center'],
'value' => \app\helpers\CaptureLogsGrid::birthday()
],
'listManagement.address',
'sync_status'
]
])}
</div>
<div class="col-md-2" style="padding-right: 30px;">
<h4>Tìm kiếm dữ liệu</h4>
<div class="form-group">
<label class="control-label">Từ</label>
<input type="text" class="form-control datepicker" value="{$f|date_format:"H:i d/m/Y"}" name="From">
</div>
<div class="form-group">
<label class="control-label">Đến</label>
<input type="text" class="form-control datepicker" value="{$t|date_format:"H:i d/m/Y"}" name="To">
</div>
<div class="form-group">
<label class="control-label">Name</label>
<input type="text" class="form-control" value="{Yii::$app->request->get("name")}" name="NameSearch">
</div>
<div class="form-group">
<label class="control-label">Type</label>
<select class="form-control" name="TypeSearch">
<option value="all">All</option>
{html_options options=$typeArray selected=Yii::$app->request->get("type")}
</select>
</div>
<div class="form-group">
<label class="control-label">Gender</label>
<select class="form-control" name="GenderSearch">
<option value="all">All</option>
{html_options options=$genderArray selected=Yii::$app->request->get("gender")}
</select>
</div>
<div class="text-center">
<button class="btn btn-info" onclick="_search(this);" data-href="{Url::to(['/control-logs'])}">
<i class="fa fa-search"></i> Tìm kiếm
</button>
</div>
</div>
</div>
{/block}