GOOGLE
<?php include('header.php'); ?>
<?php include('session.php'); ?>
<?php include('navbar_request.php'); ?>
<div class="container">
<div class="margin-top">
<div class="row">
<div class="span12">
<?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>Request 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><a href="history.php">All History</a></li>
<li> </li>
<li><a href="return.php">Returned Book</a></li>
<li class="active"><a href="request.php">Request for Book</a></li>
<li> </li>
<li><a href="view_borrow.php">View Borrowed Book</a></li>
<li> </li>
<li><a href="books.php" class="btn btn-info btn-xs">Back to Available book list</a></li>
</ul>
<marquee scrollamount="2">
<?php $willing = mysql_query("SELECT * FROM `book` WHERE `book_status`='willing' AND `member_id`='".$_SESSION['user_id']."'");
$selwilling = mysql_fetch_array($willing);?>
<?php if($selwilling['book_status']=='willing'){?>
<b style="color: red;">Please First return book then librarian will be provide new request book </b><?php echo $selwilling['book_title'];?></b>
<?php } ?>
</marquee>
<form method="post" action="borrow_oneDay_save.php">
<div class="span12" style="overflow-x:auto;">
<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;">Request on</th>
<th style="background-color: #4267B2; color: white;">Cancel Book</th>
<th style="background-color: #4267B2; color: white;">Change Book</th>
</tr>
</thead>
<tbody>
<?php
$user_query = mysql_query("SELECT * FROM `borrowdetails` WHERE `borrow_status`='Send Request' AND `member_id`='".$_SESSION['user_id']."'")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['request_date']; ?></td>
<td><a href="cancel.php?id=<?php echo $cat_row['book_id'];?>" type="button" class="btn btn-info btn-xs" onclick="return confirm('Are you sure you want to Cancel Book?')">Cancel Book</a></td>
<td><a href="changbook.php?id=<?php echo $cat_row['book_id'];?>" class="btn btn-primary btn-xs" onclick="return confirm('Are you sure you want to Change Book?')">Change Book</a></td>
</tr>
<?php $i++; } ?>
</tbody>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
<?php include('footer.php') ?>
Copyright © 1945 -