echo date("d/m/Y", strtotime($quyensach->thoi_gian_muon)); ?> </td> <td class="center"><?php echo date("d/m/Y", strtotime($quyensach->thoi_gian_hen_tra)); ?> </td> <td class="center" > <?php $checksn = true; switch ($quyensach->trang_thai_sach_muon) { case 0: echo "<input style='color:white !important;'class='btn btn-large btn-primary' type='text' value='Đã Trả' readonly>"; break; case 1: if (ChiTietPhieuMuonSach::kiemTraTrangThai($quyensach->id)) { echo "<input style='color:white !important;'class='btn btn-large btn-success' type='text' value='Mượn Đúng Hẹn' readonly>"; } else { echo "<input style='color:white !important;'class='btn btn-large btn-warning' type='text' value='Đang Trễ Hẹn' readonly>"; $checksn = FALSE; } break; case 2: echo "<input style='color:white !important;'class='btn btn-large btn-warning' type='text' value='Đang Trễ Hẹn' readonly>"; break; case 3: echo "<input style='color:white !important;'class='btn btn-large btn-inverse' type='text' value='Đã Làm Mất' readonly>"; break; case 4: echo "<input style='color:white !important;'class='btn btn-large btn-info' type='text' value='Đang Giữ Chỗ' readonly>"; break;