Server_AccessControl/views/assign/staff.tpl

41 lines
1.4 KiB
Smarty

<style>
.choose-staff-schedule{
cursor: pointer;
}
.choose-staff-schedule:hover{
background: #cecece;
}
</style>
<div>
Danh sách có <b class="text-red">{count($staffs)}</b> nhân viên.
</div>
<table class="table table-bordered table-striped table-staff-schedule" style="background: #fff;">
<thead>
<tr class="info">
<th style="width: 5%;" class="text-center">
<input type='checkbox' value='0' class='checkbox-staff-schedule' id='checkall-staff-schedule'>
</th>
<th style="width: 20%;">Mã nhân viên</th>
<th>Tên nhân viên</th>
<th>Phòng ban</th>
<th>Lịch trình</th>
<th>Cửa</th>
</tr>
</thead>
<tbody>
{foreach from=$staffs item=s}
<tr>
<td class="text-center">
<input type='checkbox' value='{$s->id}' name='checkbox-staff-schedule' class='checkbox-staff-schedule'>
</td>
<td>{$s->code}</td>
<td class="choose-staff-schedule">
{$s->name}
</td>
<td>{$departmentArray[$s->department_id]|default:""}</td>
<td id="schedule-staff-results-{$s->id}">{$scheduleArray[$s->schedule_id]|default:""}</td>
<td id="schedule-door-results-{$s->id}">{$s->doors}</td>
</tr>
{/foreach}
</tbody>
</table>