Server_AccessControl/views/staff/import.tpl
2020-10-10 16:11:19 +07:00

55 lines
2.0 KiB
Smarty

<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th style="width: 3%;">#</th>
<th style="width: 3%;" class="text-center">
<input type='checkbox' value='0' class='checkbox-staff-import' checked="" id='checkall-staff-import'>
</th>
<th>Mã nhân viên</th>
<th>Tên nhân viên</th>
<th>Số thẻ</th>
<th>Phòng ban</th>
<th>Giới tính</th>
<th>Ngày sinh</th>
<th>Email</th>
<th>Điện thoại</th>
<th>Ngày bắt đầu làm việc</th>
<th>Địa chỉ</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-staff-import' class='checkbox-staff-import'>
{/if}
</td>
<td>{$d.A}</td>
<td>{$d.B}</td>
<td>{$d.C}</td>
<td>{$d.D}</td>
<td>{$d.E}</td>
<td>{$d.F}</td>
<td>{$d.G}</td>
<td>{$d.H}</td>
<td>{$d.I}</td>
<td>{$d.J}</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>