Server_AccessControl/views/device/device-lists.tpl
2020-10-13 13:40:49 +07:00

36 lines
1.5 KiB
Smarty

<table class="table table-bordered table-hover table-striped" style="background:#fff;">
<thead>
<tr>
<th style="width: 5%;" class="text-center"><input type='checkbox' value='0' class='checkbox-device' id='checkall-device'></th>
<th>Địa chỉ MAC</th>
<th>Địa chỉ IP</th>
<th>Subnet Mask</th>
<th>Gateway</th>
<th>Serial</th>
<th>Loại thiết bị</th>
<th>Trạng thái</th>
</tr>
</thead>
<tbody>
{foreach from=$datas item=d}
<tr>
<td class="text-center" id="checkbox-{$d.SN}">
{if !in_array($d.IP,$deviceIpLists)}
<input type='checkbox' value='{json_encode($d)}' name='checkbox-device' class='checkbox-device'>
{/if}
</td>
<td>{$d.MAC|default:""}</td>
<td>{$d.IP|default:""}</td>
<td>{$d.NetMask|default:""}</td>
<td>{$d.GATEIPAddress|default:""}</td>
<td>{$d.SN|default:""}</td>
<td>{$d.Device|default:""}</td>
<td class="text-center" id="status-{$d.SN}">
<label class="text-green {if !in_array($d.IP,$deviceIpLists)}hidden{/if}">
<i class="fa fa-check"></i> Đã thêm
</label>
</td>
</tr>
{/foreach}
</tbody>
</table>