Skip to content

Commit d18724c

Browse files
committed
Fine column added in overdue, just need to update
1 parent 3ad5545 commit d18724c

File tree

6 files changed

+32
-21
lines changed

6 files changed

+32
-21
lines changed

admin.php

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11

22
<div id="hotel">
33
<div class="menu">
4-
<ul>
5-
<li>
6-
<a href="#"><span class="img"></span>&nbsp;Login<span class="arrow"></span></a>
4+
75
8-
<ul>
9-
<li><div id="id" style="cursor:pointer; height:30px; background:#FFF; width:100px;">&nbsp;Admin</div></li>
10-
11-
</ul>
12-
</div>
6+
</div>
137
<div id='inlineBox' class='popup_block'>
148
<div id='inlineBoxAjax'></div>
159
</div>

lms.php

+14
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,26 @@ function dissearch(classid){
9292
font-weight:bold;
9393
margin-left:35px;
9494
padding-top:7px;}
95+
96+
.menubar{
97+
font-family:Verdana, Geneva, sans-serif;
98+
color:#090;
99+
}
95100
</style>
96101
<div class="header">
97102
</div>
98103

99104
<?php include('viewmenu.php'); ?>
100105
<div class="wrapperdiv">
106+
<div align="center" class="menubar">
107+
<h3>The University of Texas at Dallas</h3>
108+
<h4>Library Management System</h4>
109+
<div align="right">
110+
<a href="login.php" title="Log In">Admin Login</a>&nbsp;&nbsp;
111+
<a href="welcome.php" title="Home">Home</a>
112+
</div>
113+
</div>
114+
101115
<div class="head">
102116
<div class="head_title">
103117
<?php if(isset($_GET['findBooks'])){ ?>Browse Books<?php }

login.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
<body>
2828

2929
<div class="header"></div>
30-
<?php include('admin.php');
30+
<?php include('admin.php');
31+
3132
?>
3233
<center>
3334
<?php
@@ -36,7 +37,8 @@
3637
<div id="status">
3738
<div class="wrapstat">
3839
<br/> <br/>
39-
40+
<div align="right"><a href="welcome.php" title="Home" style="font-family:Verdana, Geneva, sans-serif;">Home</a></div>
41+
4042
<div align="center">
4143
<h3 id="headline"> The University of Texas at Dallas</h3>
4244
<h3 id="headline">Admin Login</h3>

overdue.php

+10-5
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@
8282
<td class="web" width="100" align="center">Card No</td>
8383
<td class="web" width="300" align="center">Book Title</td>
8484
<td class="web" width="200" align="center">Borrower's Name</td>
85-
<td class="web" width="150" align="center">Due Date</td>
86-
<td class="web" width="200" align="center" colspan="3">Count&nbsp;of&nbsp;days</td>
85+
<td class="web" width="120" align="center">Due Date</td>
86+
<td class="web" width="150" align="center">Count&nbsp;of&nbsp;days
87+
</td>
88+
<td class="web" width="120" align="center">Fine Amount</td>
8789
</tr>
8890

8991
<?php
@@ -120,10 +122,12 @@
120122
$startTimeStamp = strtotime($row['due_date']);
121123
$timeDiff = abs($endTimeStamp - $startTimeStamp);
122124

123-
$numberDays = $timeDiff/86400; // 86400 seconds in one day
125+
$numberDays = ceil($timeDiff/86400); // 86400 seconds in one day
126+
$numberDays = intval($numberDays);
127+
$fineamt = ($numberDays * 0.25);
128+
129+
?>
124130

125-
// and you might want to convert to integer
126-
$numberDays = intval($numberDays); ?>
127131

128132
<tr class="trss" align="center" >
129133
<td><?php echo $count;?></td>
@@ -134,6 +138,7 @@
134138
<td>
135139
<input type="hidden" name="countdays" value="<?php echo $numberDays; ?>">
136140
<?php echo $numberDays; ?></td>
141+
<td><?php echo ("$")."&nbsp".$fineamt; ?></td>
137142
</tr>
138143
<?php
139144

overreport.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ function printDiv(divID) {
1717
"<nav>" +
1818
divElements + "</nav>";
1919

20-
//Print Page
21-
window.print();
22-
20+
2321
//Restore orignal HTML
2422
document.body.innerHTML = oldPage;
2523
window.location='index.php?overdue';

unreturnedBooks.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ function printDiv(divID) {
8585
<div style=" margin-left:7px; margin-top:13px; color:#030; font-size:15px; font-family:Verdana, Geneva, sans-serif; font-weight:bold;float:left">Error</div>
8686
</div>
8787

88-
<div style="font-size:15px; padding-top:40px; margin-left:20px; margin-right:20px; font-family:Arial, Helvetica, sans-serif; text-align:center">Choose to print
89-
</div>
9088

9189
<div class="btnbox" id="closeempty" style="cursor:pointer;">
9290
<div style="font:14px; font-family:Verdana, Geneva, sans-serif; color:#FFF; font-weight:bold; text-align:center; margin-top:5px;">OK</div>
@@ -141,7 +139,7 @@ function printDiv(divID) {
141139

142140
<table width="100%" bordercolor="#999999" class="web" border="0" cellspacing="1" style="border:#666 solid 1px; margin-bottom:20px; margin-left:0px;font-size:12px;font-family:Verdana, Geneva, sans-serif; margin-top:20px;">
143141
<thead>
144-
<tr bgcolor="#F90" height="30" style="color:white; font-weight:bold; text-align:left;">
142+
<tr bgcolor="#F90" height="30" style="color:black; font-weight:bold; text-align:left;">
145143
<td>No.</td>
146144
<td class="web" width="100" align="center">Card No.</td>
147145
<td class="web" width="400" align="center">Book Title</td>

0 commit comments

Comments
 (0)