đồng bộ dữ liệu từ cloud
This commit is contained in:
@@ -28,6 +28,8 @@
|
||||
</style>
|
||||
<input type="hidden" value="{Url::to(["/list-management/add"])}" name="create_url">
|
||||
<input type="hidden" value="{Url::to(["/list-management/update"])}" name="update_url">
|
||||
<input type="hidden" value="{Url::to(["/list-management/sync-feature"])}" name="sync_feature_url">
|
||||
<input type="hidden" value="{Url::to(["/list-management/update-feature"])}" name="update_feature_url">
|
||||
<div class="row">
|
||||
<div class="col-md-10" style="max-height: 850px;overflow-y: auto;">
|
||||
{GridView::widget([
|
||||
@@ -143,6 +145,9 @@
|
||||
<button class="btn btn-info" onclick="_form();">
|
||||
<i class="fa fa-plus-circle"></i> Thêm mới
|
||||
</button>
|
||||
<button class="btn btn-info" onclick="_syncFromServerForm(this);" data-href="{Url::to(['/list-management/sync-from-server'])}">
|
||||
<i class="fa fa-download"></i> Đồng bộ từ máy chủ
|
||||
</button>
|
||||
</div>
|
||||
<hr style="border-top: 1px solid #000;">
|
||||
<h4>Đồng bộ từ thiết bị khác</h4>
|
||||
|
||||
60
views/list-management/list-server.tpl
Normal file
60
views/list-management/list-server.tpl
Normal file
@@ -0,0 +1,60 @@
|
||||
<div style="max-height: 750px;overflow-y: auto;">
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th>Department</th>
|
||||
<th>Registration Image</th>
|
||||
<th>Code</th>
|
||||
<th>Company ID</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.idStaff}">
|
||||
<td>{$arr.idStaff}</td>
|
||||
<td>{$arr.name}</td>
|
||||
<td>{$arr.department}</td>
|
||||
<td>
|
||||
{foreach from=$arr.images item=img}
|
||||
<div class='feature-img'>
|
||||
<img src="{$img}" class="img-thumbnail" style="width: 100px;height:100px;">
|
||||
</div>
|
||||
{/foreach}
|
||||
</td>
|
||||
<td>{$arr.code}</td>
|
||||
<td>{$arr.id_company}</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="_syncFromServer(this);" data-href="{yii\helpers\Url::to(['sync-from-server'])}">
|
||||
<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