filter dong bo du lieu giua cac thiet bi

This commit is contained in:
2020-12-30 11:43:03 +07:00
parent d296533184
commit 09604d1cb8
4 changed files with 107 additions and 8 deletions

View File

@@ -1,3 +1,21 @@
<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>
@@ -15,7 +33,7 @@
</thead>
<tbody id="sync-lists">
{foreach from=$results item=arr}
<tr onclick="choooseToSync(this);" style="cursor: pointer;" data-stt="false" data-id="{$arr.code}">
<tr id="filters-{$arr.code}" class="filters" onclick="choooseToSync(this);" style="cursor: pointer;" data-stt="false" data-id="{$arr.code}">
<td>{$arr.code}</td>
<td>{$typeArray[$arr.type]}</td>
<td>{$arr.name}</td>
@@ -53,10 +71,10 @@
</div>
</div>
<div class="col-md-4 text-right">
<button class="btn btn-default" onclick="checkAllSync(true);">
<button class="btn btn-default btn-select" onclick="checkAllSync(true);">
Chọn tất cả
</button>
<button class="btn btn-default" onclick="checkAllSync(false);">
<button class="btn btn-default btn-select" onclick="checkAllSync(false);">
Bỏ chọn tất cả
</button>
<button class="btn btn-primary" onclick="_sync();">