BiFace_Server_Lite/views/list-management/list-to-server.tpl
2021-06-04 11:24:03 +07:00

84 lines
3.5 KiB
Smarty

<div class="row">
<div class="col-md-4">
<div class="form-group">
<div class="input-group">
<div class="input-group-addon">Tìm kiếm</div>
<select class="form-control" id="filter-from-server" onchange="filters(this);">
<option value=""></option>
{html_options options=$filters}
</select>
<div class="input-group-btn">
<button class="btn btn-default" data-toggle="tooltip" title="Hủy bỏ tìm kiếm" onclick="removeFilters();">
<i class="fa fa-remove"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<div style="max-height: 750px;overflow-y: auto;">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>ID</th>
<th>Tên</th>
<th>Tên hiển thị</th>
<th>Giới tính</th>
<th>Hình ảnh đăng kí</th>
<th>Ngày sinh</th>
<th>Điện thoại</th>
<th>Đơn vị</th>
</tr>
</thead>
<tbody id="sync-lists">
{foreach from=$datas item=arr}
<tr id="filters-{$arr.staff_id}" class="filters" onclick="choooseToSync(this);" style="cursor: pointer;" data-stt="false" data-id="{$arr->staff_id}">
<td>{$arr->code}</td>
<td>{$arr->name}</td>
<td>{$arr.abbreviated_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 btn-select" onclick="checkAllSync(true);">
Chọn tất cả
</button>
<button class="btn btn-default btn-select" 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>