GOOGLE
<?php include('header.php'); ?>
<?php include('session.php'); ?>
<?php include('navbar_oneday.php'); ?>
<div class="container">
<div class="margin-top">
<div class="row">
<div class="span12">
<style type="text/css">
.active1{
background-color: #39A0BE;
}
</style>
<?php $username=mysql_query("select * from `registration` where `id`='".$_SESSION['user_id']."'")or die(mysql_error());
$seluser=mysql_fetch_array($username); ?>
<div class="alert alert-success"><strong>One Day Borrow Books List</strong><b><span style="float: right;">WELCOME : <?php echo $seluser['name'];?> <?php echo $seluser['lname'];?></span></b></div>
<ul class="nav nav-pills">
<li class="active"><a href="history.php">All History</a></li>
<li> </li>
<li class="active"><a href="return.php">Returned Book</a></li>
<li> </li>
<li class="active"><a href="view_borrow.php">View Borrowed Book</a></li>
<li> </li>
<li class="active"><a href="book.php" class="btn btn-info btn-xs">Back to Available book list</a></li>
</ul>
<form method="post" action="borrow_oneDay_save.php">
<div class="span12">
<table cellpadding="0" cellspacing="0" border="1" class="table" id="example" border="1">
<thead>
<tr>
<th style="background-color: #4267B2; color: white;">Sr.No.</th>
<th style="background-color: #4267B2; color: white;">Acc No.</th>
<th style="background-color: #4267B2; color: white;">Book title</th>
<th style="background-color: #4267B2; color: white;">Subject</th>
<th style="background-color: #4267B2; color: white;">Author</th>
<th style="background-color: #4267B2; color: white;">Borrowed on</th>
</tr>
</thead>
<tbody>
<?php
$user_query = mysql_query("SELECT * FROM `one_day_borrow` WHERE `member_id` = '".$_SESSION['user_id']."' AND `borrow_status`='borrow'")or die(mysql_error());
$i=1;
while($row=mysql_fetch_array($user_query)){
$id=$row['book_id'];
$cat_id=$row['category_id'];
$cat_query=mysql_query("SELECT * FROM book WHERE book_id ='".$row['book_id']."' ")or die(mysql_error());
$cat_row = mysql_fetch_array($cat_query);
?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $cat_row['acc_no']; ?></td>
<td><?php echo $cat_row['book_title']; ?></td>
<td><?php echo $cat_row ['subject']; ?> </td>
<td><?php echo $cat_row['author']; ?> </td>
<td><?php echo $row['start_date']; ?></td>
<?php include('toolttip_edit_delete.php'); ?>
</tr>
<?php $i++; } ?>
</tbody>
</table>
</form>
</div>
</div>
<script>
$(".uniform_on").change(function(){
var max= 1;
if( $(".uniform_on:checked").length >= max ){
$(".uniform_on").attr('disabled', 'disabled');
alert('1 Books are allowed per borrow at a time');
$(".uniform_on:checked").removeAttr('disabled');
}else{
$(".uniform_on").removeAttr('disabled');
}
})
$(".uniform_off").change(function(){
$(".uniform_off").attr('disabled', 'disabled');
alert('you are not eligible for taken more books since you are already taken 1 books');
$(".uniform_on:checked").removeAttr('disabled');
})
</script>
</div>
</div>
</div>
<?php include('footer.php') ?>
Copyright © 1945 -