GOOGLE
<?php include('header.php'); ?>
<?php include('session.php'); ?>
<?php include('navbar_borrow.php'); ?>
<div class="container">
<div class="margin-top">
<div class="row">
<div class="span12">
<div class="alert alert-info"><strong>Returned Books List</strong></div>
<table cellpadding="0" cellspacing="0" border="0" class="table" id="example" border="1">
<div class="pull-right">
<a href="" onclick="window.print()" class="btn btn-info"><i class="icon-print icon-large"></i> Print</a>
</div>
<thead>
<tr>
<th style="background-color: purple; color: white;">Book title</th>
<th style="background-color: purple; color: white;">Borrower</th>
<th style="background-color: purple; color: white;">Publisher Name</th>
<th style="background-color: purple; color: white;">Date Borrow</th>
<th style="background-color: purple; color: white;">Due Date</th>
<th style="background-color: purple; color: white;">Date Returned</th>
</tr>
</thead>
<tbody>
<?php $user_query=mysql_query("SELECT * FROM `book` WHERE book_status = 'returned' ORDER BY `book_title` DESC
")or die(mysql_error());
while($row=mysql_fetch_array($user_query)){
$borrowdetails = mysql_query("SELECT * FROM `borrowdetails` WHERE `book_id`='".$row['book_id']."'");
$selborrowdetails = mysql_fetch_array($borrowdetails);
$borrow = mysql_query("SELECT * FROM `borrow` WHERE `member_id`='".$selborrowdetails['member_id']."'");
$borrow1 = mysql_fetch_array($borrow);
$reg = mysql_query("SELECT * FROM `registration` WHERE `id`='".$selborrowdetails['member_id']."'");
$selreg = mysql_fetch_array($reg);
?>
<tr class="del<?php echo $id ?>">
<td><?php echo $row['book_title']; ?></td>
<td><?php echo $selreg['name']." ".$selreg['lname']; ?></td>
<td><?php echo $row['publisher_name']; ?></td>
<td><?php echo $borrow1['date_borrow']; ?></td>
<td><?php echo $borrow1['due_date']; ?> </td>
<td><?php echo $selborrowdetails['date_return']; ?> </td>
<td></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<script>
$(".uniform_on").change(function(){
var max= 3;
if( $(".uniform_on:checked").length == max ){
$(".uniform_on").attr('disabled', 'disabled');
alert('3 Books are allowed per borrow');
$(".uniform_on:checked").removeAttr('disabled');
}else{
$(".uniform_on").removeAttr('disabled');
}
})
</script>
</div>
</div>
</div>
<?php include('footer.php') ?>
Copyright © 1945 -