| Server IP : 162.214.74.102 / Your IP : 216.73.216.59 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/public_html/lrsys_apps/school/application/views/backend/student/ |
Upload File : |
<table class="table table-bordered table-striped datatable" id="table_export">
<thead>
<tr>
<th style="width: 60px;">#</th>
<th><?php echo get_phrase('requested_book');?></th>
<th><?php echo get_phrase('requested_by');?></th>
<th><?php echo get_phrase('issue_starting_date');?></th>
<th><?php echo get_phrase('issue_ending_date');?></th>
<th><?php echo get_phrase('request_status');?></th>
</tr>
</thead>
<tbody>
<?php
$count = 1;
$this->db->order_by('book_request_id', 'desc');
$book_requests = $this->db->get_where('book_request', array('student_id' => $this->session->userdata('login_user_id')))->result_array();
foreach ($book_requests as $row) { ?>
<tr>
<td><?php echo $count++; ?></td>
<td><?php echo $this->db->get_where('book', array('book_id' => $row['book_id']))->row()->name; ?></td>
<td><?php echo $this->db->get_where('student', array('student_id' => $row['student_id']))->row()->name; ?></td>
<td><?php echo date('d/m/Y', $row['issue_start_date']); ?></td>
<td><?php echo date('d/m/Y', $row['issue_end_date']); ?></td>
<td>
<?php
if($row['status'] == 0)
$status = '<span class="label label-info" style="font-size: 10px;">' . get_phrase('pending') . '</span>';
else if($row['status'] == 1)
$status = '<span class="label label-success" style="font-size: 10px;">' . get_phrase('issued') . '</span>';
else
$status = '<span class="label label-danger" style="font-size: 10px;">' . get_phrase('rejected') . '</span>';
echo $status;
?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<!-- DATA TABLE EXPORT CONFIGURATIONS -->
<script type="text/javascript">
jQuery(document).ready(function($)
{
var datatable = $("#table_export").dataTable({
"sPaginationType": "bootstrap"
});
$(".dataTables_wrapper select").select2({
minimumResultsForSearch: -1
});
});
</script>