-
Notifications
You must be signed in to change notification settings - Fork 1
/
late_book_report.php
62 lines (56 loc) · 1.64 KB
/
late_book_report.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/**
* CS442 Class Project
* Authors: Vincent Castellano, Matthew Para, Rudy Garcia, Daniel LaVergne, Lukas Simonis
* Created: 07/24/2017
*
* Text Book Rental Application
**/
/* Page Configuration */
$page = Array();
$page['subtitle'] = "Transaction List"
?>
<?php require "header.php"; ?>
<?php
$book_copies = GetLateCopies();
?>
<div class="row">
<div class="large-12 small-12 column">
<h1>Late Book Report</h1>
</div>
</div>
<div class="row">
<div class="large-12 small-12 column">
<table id="late">
<thead>
<th>Title</th>
<th>ISBN</th>
<th>Copy Number</th>
<th>Student</th>
<th>Checkout Date</th>
<th>Due Date</th>
<th>Late Fees</th>
<th></th>
</thead>
<tbody>
<?php foreach($book_copies as $copy) { ?>
<tr>
<td><?=$copy['Title']?></td>
<td><?=$copy['ISBN']?></td>
<td><?=$copy['Copy_No']?></td>
<td><?=$copy['Name']?></td>
<td><?=$copy['Check_Out_Date']?></td>
<td><?=$copy['Due_Date']?></td>
<td>$<?=$copy['Days_Late']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
<script type="application/javascript">
$(document).ready(function() {
$('#late').DataTable();
} );
</script>
<?php require_once "footer.php"; ?>