update socket
This commit is contained in:
114
views/dashboard/index.tpl
Normal file
114
views/dashboard/index.tpl
Normal file
@@ -0,0 +1,114 @@
|
||||
{extends file=$smarty.current_dir|cat:'/../extends.tpl'}
|
||||
{use class="yii\helpers\Url"}
|
||||
{use class="yii\grid\GridView"}
|
||||
{use class="app\assets\DashboardAsset"}
|
||||
{DashboardAsset::register($this)|void}
|
||||
{block name='content'}
|
||||
<input type="hidden" value="{Url::to(['/logs/save'])}" name="saveUrl">
|
||||
<input type="hidden" value="{date("d/m/Y")}" name="currentDay">
|
||||
<h2 class="text-center" style="font-family: Time New Roman;color:#009;font-weight: bold;">{"XE RA/VÀO NGÀY "|cat:date("d/m/Y")|upper}</h2>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="text-left" style="margin-bottom: 10px;font-size: 20px;">
|
||||
Tổng số xe vào: <b class="text-green" id="totals-in">{$in}</b>
|
||||
<br>
|
||||
Tổng số xe ra: <b class="text-red" id="totals-out">{$out}</b>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 text-right">
|
||||
<a href="{Url::to(['/logs'])}" class="btn btn-primary" target="_blank">
|
||||
<i class="fa fa-bar-chart"></i> Thống kê
|
||||
</a>
|
||||
<a href="{Url::to(['/logs-unknow'])}" class="btn btn-danger" target="_blank">
|
||||
<i class="fa fa-truck"></i> Xe khác
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-striped table-bordered" style="background:#fff;min-width:700px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Biển số</th>
|
||||
<th>Loại xe</th>
|
||||
<th style="width: 15%;">Tên công ty</th>
|
||||
<th style="width: 10%;">Lái xe</th>
|
||||
<th>Điện thoại</th>
|
||||
<th style="width: 7%;">CMT</th>
|
||||
<th>Factory</th>
|
||||
<th>SEAL_NO</th>
|
||||
<th style="width: 8%;">Ảnh biển vào</th>
|
||||
<th style="width: 7%;">Thời gian vào</th>
|
||||
<th style="width: 8%;">Ảnh biển ra</th>
|
||||
<th style="width: 7%;">Thời gian ra</th>
|
||||
<th>Nội dung khác</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="logs-lists">
|
||||
{foreach from=$results item=arr}
|
||||
<tr id="logs-{$arr->id}">
|
||||
<td>{$arr->vehicle->plate}</td>
|
||||
<td>{$arr->vehicle->type}</td>
|
||||
<td>{$arr->vehicle->company}</td>
|
||||
<td>
|
||||
{$data=explode("/",$arr->vehicle->driver)}
|
||||
{implode("<br>",$data)}
|
||||
</td>
|
||||
<td>
|
||||
{$data=explode("/",$arr->vehicle->telephone)}
|
||||
{implode("<br>",$data)}
|
||||
</td>
|
||||
<td>
|
||||
{$data=explode("/",$arr->vehicle->indentity_card)}
|
||||
{implode("<br>",$data)}
|
||||
</td>
|
||||
<td>
|
||||
<div style='cursor:pointer;' onclick='openForm(this, "factory");' data-id='{$arr->id}' data-text='{$arr->factory}'>
|
||||
{if $arr->factory == null}
|
||||
<i class='text-red'>không có</i>
|
||||
{else}
|
||||
{$arr->factory}
|
||||
{/if}
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div style='cursor:pointer;' onclick='openForm(this, "seal_no");' data-id='{$arr->id}' data-text='{$arr->seal_no}'>
|
||||
{if $arr->seal_no == null}
|
||||
<i class='text-red'>không có</i>
|
||||
{else}
|
||||
{$arr->seal_no}
|
||||
{/if}
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{if $arr->time_in}
|
||||
<img src="{Yii::$app->request->hostInfo}/AIParking_Intops_Server/web/data/uploads/{$arr->plate_image_in}" class="img-thumbnail" style="width:100%;">
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{if $arr->time_in}
|
||||
{$common->formatTime($arr->time_in,"H:i:s d/m/Y")}
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{if $arr->time_out}
|
||||
<img src="{Yii::$app->request->hostInfo}/AIParking_Intops_Server/web/data/uploads/{$arr->plate_image_out}" class="img-thumbnail" style="width:100%;">
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{if $arr->time_out}
|
||||
{$common->formatTime($arr->time_out,"H:i:s d/m/Y")}
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
<div style='cursor:pointer;' onclick='openForm(this, "note");' data-id='{$arr->id}' data-text='{$arr->note}'>
|
||||
{if $arr->note == null}
|
||||
<i class='text-red'>không có</i>
|
||||
{else}
|
||||
{$arr->note}
|
||||
{/if}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{/block}
|
||||
Reference in New Issue
Block a user