update đồng bộ dữ liệu giữa các thiết bị
This commit is contained in:
@@ -144,6 +144,19 @@
|
||||
<i class="fa fa-plus-circle"></i> Thêm mới
|
||||
</button>
|
||||
</div>
|
||||
<hr style="border-top: 1px solid #000;">
|
||||
<h4>Đồng bộ từ thiết bị khác</h4>
|
||||
<div class="form-group" id="ip">
|
||||
<div class="input-group">
|
||||
<input type="text" value="" class="form-control" name="SyncIP" placeholder="Nhập ip thiết bị">
|
||||
<div class="input-group-btn">
|
||||
<button class="btn btn-info" onclick="_syncForm(this);" data-href="{Url::to(['form-sync'])}">
|
||||
<i class="fa fa-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<span class="help-block hidden"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="width: 300px;position: absolute;" id="menu" class="hidden">
|
||||
|
||||
57
views/list-management/list.tpl
Normal file
57
views/list-management/list.tpl
Normal file
@@ -0,0 +1,57 @@
|
||||
<div style="max-height: 750px;overflow-y: auto;">
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Type</th>
|
||||
<th>Name</th>
|
||||
<th>Gender</th>
|
||||
<th>Registration Image</th>
|
||||
<th>Registration time</th>
|
||||
<th>Birthday</th>
|
||||
<th>Telephone</th>
|
||||
<th>Address</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="sync-lists">
|
||||
{foreach from=$results item=arr}
|
||||
<tr onclick="choooseToSync(this);" style="cursor: pointer;" data-stt="false" data-id="{$arr.id}">
|
||||
<td>{$arr.id}</td>
|
||||
<td>{$typeArray[$arr.type]}</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="http://{$ip}/data/uploads/face/{$img.url}" class="img-thumbnail" style="width: 100px;height:100px;">
|
||||
</div>
|
||||
{/foreach}
|
||||
</td>
|
||||
<td>{$arr.time|date_format:"H:i:s d/m/Y"}</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-6">
|
||||
<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 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="_sync(this);" data-href="{yii\helpers\Url::to(['sync','ip'=>$ip])}">
|
||||
<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>
|
||||
Reference in New Issue
Block a user