109 lines
4.8 KiB
Smarty
109 lines
4.8 KiB
Smarty
<div class="row" id="filters-face">
|
|
<div class="col-md-4">
|
|
<div class="form-group">
|
|
<div class="input-group">
|
|
<div class="input-group-addon">{Yii::t("app" ,"TIM_KIEM")}</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="{Yii::t("app", "HUY_BO_TIM_KIEM")}" onclick="removeFilters();">
|
|
<i class="fa fa-remove"></i>
|
|
</button>
|
|
</div>
|
|
</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">
|
|
<thead>
|
|
<tr>
|
|
<th>{Yii::t("app", "ID")}</th>
|
|
<th>{Yii::t("app", "TEN_HIEN_THI")}</th>
|
|
<th>{Yii::t("app", "TEN")}</th>
|
|
<th>{Yii::t("app", "DON_VI")}</th>
|
|
<th>{Yii::t("app", "HINH_ANH_DANG_KI")}</th>
|
|
<th>{Yii::t("app", "COMPANY_ID")}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="sync-lists">
|
|
{$totalDevice=0}
|
|
{$totalCloud=0}
|
|
{foreach from=$datas item=arr}
|
|
{$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}
|
|
{if in_array($arr.id,$allID)}
|
|
<i class="fa fa-check-circle text-green"></i>
|
|
{/if}
|
|
</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>
|
|
{foreach from=$arr.images item=img key=k}
|
|
{if $k<Yii::$app->params['maxPicture']}
|
|
<div class='feature-img'>
|
|
<img src="{$img}" class="img-thumbnail" style="width: 100px;height:100px;">
|
|
</div>
|
|
{/if}
|
|
{/foreach}
|
|
</td>
|
|
<td>{$arr.id_company}</td>
|
|
</tr>
|
|
{/foreach}
|
|
</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">
|
|
<i class="fa fa-info-circle"></i> {Yii::t("app", "DA_LUA_CHON_X_DOI_TUONG")}
|
|
</div>
|
|
<div class="col-md-5">
|
|
<div class="hidden" id="progress-form">
|
|
{Yii::t("app", "DONG_BO_X_Y_DOI_TUONG")}
|
|
<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-5 text-right">
|
|
<button class="btn btn-default btn-select" onclick="checkAllNotInList();">
|
|
{Yii::t("app", "CHON_DOI_TUONG_CHUA_TON_TAI")}
|
|
</button>
|
|
<button class="btn btn-default btn-select" onclick="checkAllSync(true);">
|
|
{Yii::t("app", "CHON_TAT_CA")}
|
|
</button>
|
|
<button class="btn btn-default btn-select" onclick="checkAllSync(false);">
|
|
{Yii::t("app", "BO_CHON_TAT_CA")}
|
|
</button>
|
|
<button class="btn btn-primary" onclick="_syncFromServer();">
|
|
<i class="fa fa-refresh"></i> {Yii::t("app", "DONG_BO")}
|
|
</button>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal"><span class="fa fa-remove"></span> {Yii::t("app", "DONG_LAI")}</button>
|
|
</div>
|
|
</div>
|