Server_AccessControl/views/department/import.tpl

42 lines
1.6 KiB
Smarty

<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th style="width: 5%;">#</th>
<th style="width: 5%;" class="text-center">
<input type='checkbox' value='0' class='checkbox-department-import' checked="" id='checkall-department-import'>
</th>
<th>Mã phòng ban</th>
<th>Tên phòng ban</th>
<th>Trực thuộc</th>
<th>Trạng thái</th>
</tr>
</thead>
<tbody>
{$count=1}
{foreach from=$data item=d key=k}
{if $k>1}
{$status=$model->checkStatusImport($d)}
<tr {if !$status.status}class="warning"{/if}>
<td>{$count++}</td>
<td class="text-center">
{if $status.status}
<input type='checkbox' value='{json_encode($d)}' checked="" name='checkbox-department-import' class='checkbox-department-import'>
{/if}
</td>
<td>{$d.A}</td>
<td>{$d.B}</td>
<td>{$d.C}</td>
<td><i class="text-red">{$status.description}</i></td>
</tr>
{/if}
{/foreach}
</tbody>
</table>
<div class="text-right">
<button class="btn btn-primary" onclick="_import(this);" data-href="{yii\helpers\Url::to(["import"])}">
<i class="fa fa-floppy-o"></i> Lưu
</button>
<button class="btn btn-default" data-dismiss="modal">
<span class="fa fa-remove"></span> Hủy
</button>
</div>