GOOGLE

aku nok ndi : /home/astwardha/public_html/astwardha/astwardha.in/polylibrary/librarian/
File Up :
aku nok ndi : /home/astwardha/public_html/astwardha/astwardha.in/polylibrary/librarian/book_subject.php

<?php include('header.php'); ?>
<?php include('session.php'); ?>
<?php include('navbar_borrow.php'); ?>
    <div class="container">
    	<?php $name = mysql_query("SELECT * FROM `registration` WHERE `id`='".$_SESSION['user_id']."'");
          $selName = mysql_fetch_array($name);?>

    	<?php  $user_querys=mysql_query("SELECT * FROM `book` WHERE `subject`='".$_GET['bookname']."'");
    	$rows = mysql_fetch_array($user_querys);
    	$bookcount = mysql_num_rows($user_querys);
        ?>
		<div class="margin-top">
			<div class="row">	
			<div class="alert alert-info"><strong>Book Subject Name <?php echo $rows['subject'];?>&nbsp;&nbsp;&nbsp; ||  &nbsp;&nbsp;&nbsp;Total Book (<?php echo $bookcount;?>)<span style="color: white; float: right;"> WELCOME : <?php echo $selName['name'];?> <?php echo $selName['lname'];?></span></strong></div>
    </div>
    <div class="span6">
    	<a href="dashboard.php" class="btn btn-primary btn-xs">Back to Dashboard</a>
    	&nbsp;
    	<button onclick="window.print()" class="btn btn-info btn-xs">Print this page</button>
    </div><br><br>

    						<form method="post">
					<div class="span12">		
                            <table cellpadding="0" cellspacing="0" border="1" class="table" id="example">
                                <thead>
                                    <tr>
                                        <th style="background-color: #4267B2; color: white; font-size: 11px;">Sr. No.</th>
                                        <th style="background-color: #4267B2; color: white; font-size: 11px;">Acc. No.</th>
                                        <th style="background-color: #4267B2; color: white; font-size: 11px;">Book title</th>
                                        <th style="background-color: #4267B2; color: white; font-size: 11px;">Subject</th>
										<th style="background-color: #4267B2; color: white; font-size: 11px;">Book Type</th>
                                    </tr>
                                </thead>
                                <tbody>
                                  <?php 
                                  $user_query=mysql_query("SELECT * FROM `book` WHERE `subject`='".$_GET['bookname']."'");
                                      $i=1;
									while($row=mysql_fetch_array($user_query)){
									 $reg = mysql_query("SELECT * FROM `registration` WHERE `id`='".$book_id['member_id']."'");
				                    $selreg = mysql_fetch_array($reg);
									?>
									<tr>
                                    <td><?php echo $i; ?></td>
                                    <td><?php echo $row['acc_no']; ?></td>
                                    <td><?php echo $row['book_title']; ?></td>
                                    <td><?php echo $row['subject']; ?></td>
    								<td><?php echo $row['book_type']; ?></td> 
                                    </tr>
									<?php  $i++;}  ?>
                                </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 - 2024 GOOGLE