BiFace_Server_Lite/views/list-management/list-to-server.tpl

64 lines
2.6 KiB
Smarty

<div style="max-height: 750px;overflow-y: auto;">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Gender</th>
<th>Registration Image</th>
<th>Birthday</th>
<th>Telephone</th>
<th>Department</th>
</tr>
</thead>
<tbody id="sync-lists">
{foreach from=$datas item=arr}
<tr onclick="choooseToSync(this);" style="cursor: pointer;" data-stt="false" data-id="{$arr->code}">
<td>{$arr->code}</td>
<td>{$arr->name}</td>
<td>{$arr->gender}</td>
<td>
{$images = json_decode($arr->image, true)}
{foreach from=$images item=img}
<div class='feature-img'>
<img src="/data/uploads/face/{$img.url}" class="img-thumbnail" style="width: 100px;height:100px;">
</div>
{/foreach}
</td>
<td>{$arr->birthday|date_format:"%d/%m/%Y"}</td>
<td>{$arr->telephone}</td>
<td>{$arr->address}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<br>
<div class="row">
<div class="col-md-2">
<i class="fa fa-info-circle"></i> Đã lựa chọn <b class="text-red" id="totals-choose">0</b> đối tượng.
</div>
<div class="col-md-6">
<div class="hidden" id="progress-form">
Đồng bộ <b id="progress-current" class="text-green">0</b>/<b id="progress-totals" class="text-red">0</b> đối tượng.
<div class="progress">
<div class="progress-bar progress-bar-primary progress-bar-striped" id='progress' role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%">
0%
</div>
</div>
</div>
</div>
<div class="col-md-4 text-right">
<button class="btn btn-default" onclick="checkAllSync(true);">
Chọn tất cả
</button>
<button class="btn btn-default" onclick="checkAllSync(false);">
Bỏ chọn tất cả
</button>
<button class="btn btn-primary" onclick="_syncToServer();">
<i class="fa fa-refresh"></i> Đồng bộ
</button>
<button type="button" class="btn btn-default" data-dismiss="modal"><span class="fa fa-remove"></span> Đóng lại</button>
</div>
</div>