update filter person loss image
This commit is contained in:
@@ -15,6 +15,11 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8 text-right">
|
||||
<button class="btn btn-default btn-select" id="btnCheckLossImage" onclick="filtersLossImage(this);">
|
||||
{Yii::t("app", "DOI_TUONG_CHUA_DU_ANH_MAU")}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div style="max-height: 750px;overflow-y: auto;">
|
||||
<table class="table table-bordered table-striped">
|
||||
@@ -29,8 +34,16 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="sync-lists">
|
||||
{$totalDevice=0}
|
||||
{$totalCloud=0}
|
||||
{foreach from=$datas item=arr}
|
||||
<tr id="filters-{$arr.id}" onclick="choooseToSync(this);" style="cursor: pointer;" class="filters {if !in_array($arr.id,$allID)}not-in-list{/if}" data-stt="false" data-id="{trim($arr.id)}">
|
||||
{$totalImg=0}
|
||||
{if isset($personImage[$arr.id])}
|
||||
{$totalImg=$personImage[$arr.id]}
|
||||
{/if}
|
||||
{$totalDevice=$totalDevice+$totalImg}
|
||||
{$totalCloud=$totalCloud+count($arr.images)}
|
||||
<tr id="filters-{$arr.id}" onclick="choooseToSync(this);" style="cursor: pointer;" class="filters {if $totalImg!==count($arr.images)}loss-image{/if} {if !in_array($arr.id,$allID)}not-in-list{/if}" data-stt="false" data-id="{trim($arr.id)}">
|
||||
<td>
|
||||
<div id="full-data-{trim($arr.id)}" class="hidden">{json_encode($arr)}</div>
|
||||
{$arr.code}
|
||||
@@ -38,7 +51,11 @@
|
||||
<i class="fa fa-check-circle text-green"></i>
|
||||
{/if}
|
||||
</td>
|
||||
<td>{$arr.name}</td>
|
||||
<td>
|
||||
<b class="text-green">[{$totalImg}]</b>
|
||||
<b class="text-red">[{count($arr.images)}]</b>
|
||||
{$arr.name}
|
||||
</td>
|
||||
<td>{$arr.abbreviated_name}</td>
|
||||
<td>{$arr.department}</td>
|
||||
<td>
|
||||
@@ -56,6 +73,8 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<b class="text-green" id="totalDevice">[{$totalDevice}]</b>
|
||||
<b class="text-red" id="totalCloud">[{$totalCloud}]</b>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
|
||||
Reference in New Issue
Block a user