CasperSecurity

Current Path : /var/www/uim.org.in/limsysuim/
Upload File :
Current File : /var/www/uim.org.in/limsysuim/print_issue_book_name.php

<?php include ('include/dbcon.php');

?>
<html>

<head>
		<title>LMSys</title>
		
		<style>
		
		
.container {
	width:100%;
	margin:auto;
}
		
.table {
    width: 100%;
    margin-bottom: 20px;
}	

.table-striped tbody > tr:nth-child(odd) > td,
.table-striped tbody > tr:nth-child(odd) > th {
    background-color: #f9f9f9;
}
		
@media print{
#print {
display:none;
}
}

#print {
	width: 90px;
    height: 30px;
    font-size: 18px;
    background: white;
    border-radius: 4px;
	margin-left:0px;
	cursor:hand;
}
		</style>
		
<script>
function printPage() {
    window.print();
}
</script>
	<link href="css/bootstrap.min.css" rel="stylesheet">
</head>


<body>
	<div class = "container">
		<div id = "header">
		<br/>
				
<center><button type="submit" id="print" onclick="printPage()">Print</button>	</center>
			<p style = "margin-left:0px; margin-top:50px; font-size:14pt; font-weight:bold;"><center><strong>GP Balangir</strong></center><br><center><strong>Issued Book Receipt</strong></center></p>
        <div align="right">
		<b style="color:blue;display:none!important;">Date Prepared:</b>
		<?php //include('currentdate.php'); ?>
        </div>			
		<br/>
			
			<div class="row">
				<div class="col-md-12">
			
			<?php
							if(isset($_GET['u'])):
							$user_id = $_GET['u'];
							$book_id = $_GET['b'];
							
							$user_status= mysqli_query($conn,"select * from user 
							where user_id='$user_id' order by user_id DESC ") or die (mysqli_error());
							$user_detail = mysqli_fetch_array ($user_status);

							$result= mysqli_query($conn,"select * from report 
							LEFT JOIN book ON report.book_id = book.book_id 
							LEFT JOIN user ON report.user_id = user.user_id 
							where report.detail_action='Borrowed Book' and user.user_id='$user_id' and book.book_id='$book_id' order by report.report_id DESC ") or die (mysqli_error());
							
							
							?>
							<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
								<caption><strong>GP BLGR LIBRARY ( Staff Copy)</strong></caption>
							<tbody>
							<tr>
								<td width="50%" colspan="2"><strong>Registration No:</strong> <?php echo $user_detail['school_number']; ?></td>
								
							</tr>
							<tr>
								<td colspan="2"><strong>Name:</strong> <?php echo $user_detail['firstname'].' '.$user_detail['middlename'].' '.$user_detail['lastname']; ?></td>
							</tr>
							<tr>
								<td colspan="2"><strong>Branch:</strong> <?php echo $user_detail['section']; ?></td>
							</tr>
							<?php while($row= mysqli_fetch_array ($result)){ ?>
							<tr>
								<td><strong>Book Name:</strong> <?php echo $row['book_title']; ?></td>
								<td><strong>Issued Date:</strong> <?php echo $row['date_transaction']; ?></td>
							</tr>
							<?php } ?>
							</tbody>
							<tfoot>
							<tr>
								<td><strong>Signature of <br>Student</strong>:</td>
								<td><strong>Signature of <br>Staff</strong>:</td>
							</tr>
								</tfoot>
							
							</table>
							<?php else: ?>
							<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
								<caption><strong>GP BLGR LIBRARY</strong></caption>
							<tbody>
								<td><center>No Result Found!</center></td>
								</tbody>
							</table>
							<?php endif; ?>
				</div>
				<div class="col-md-12"><hr style="border-bottom:2px dashed #000;"></div>
				<div class="col-md-12">
							<?php
							if(isset($_GET['u'])):
							$user_id = $_GET['u'];
							$book_id = $_GET['b'];
							
							$user_status= mysqli_query($conn,"select * from user 
							where user_id='$user_id' order by user_id DESC ") or die (mysqli_error());
							$user_detail = mysqli_fetch_array ($user_status);

							$result= mysqli_query($conn,"select * from report 
							LEFT JOIN book ON report.book_id = book.book_id 
							LEFT JOIN user ON report.user_id = user.user_id 
							where report.detail_action='Borrowed Book' and user.user_id='$user_id' and book.book_id='$book_id' order by report.report_id DESC ") or die (mysqli_error());
							
							
							?>
							<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
								<caption><strong>GP BLGR LIBRARY ( Student Copy)</strong></caption>
							<tbody>
							<tr>
								<td width="50%" colspan="2"><strong>Registration No:</strong> <?php echo $user_detail['school_number']; ?></td>
								
							</tr>
							<tr>
								<td colspan="2"><strong>Name:</strong> <?php echo $user_detail['firstname'].' '.$user_detail['middlename'].' '.$user_detail['lastname']; ?></td>
							</tr>
							<tr>
								<td colspan="2"><strong>Branch:</strong> <?php echo $user_detail['section']; ?></td>
							</tr>
							<?php while($row= mysqli_fetch_array ($result)){ ?>
							<tr>
								<td><strong>Book Name:</strong> <?php echo $row['book_title']; ?></td>
								<td><strong>Issued Date:</strong> <?php echo $row['date_transaction']; ?></td>
							</tr>
							<?php } ?>
							</tbody>
							<tfoot>
							<tr>
								<td><strong>Signature of <br>Student</strong>:</td>
								<td><strong>Signature of <br>Staff</strong>:</td>
							</tr>
								</tfoot>
							
							</table>
							<?php else: ?>
							<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
								<caption><strong>GP BLGR LIBRARY</strong></caption>
							<tbody>
								<td><center>No Result Found!</center></td>
								</tbody>
							</table>
							<?php endif; ?>
				</div>
			
			</div>
			<!--end row-->
			
			
</div>
 
			</div>
	
	
	
	
</body>


</html>
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY