CasperSecurity
<?php include ('include/dbcon.php');
$code = $_GET['code'];
$result1= mysqli_query($conn,"select * from book where book_barcode = '$code' ") or die (mysqli_error());
$row1=(mysqli_fetch_array($result1));
$code1=$row1['book_barcode'];
$code2=$row1['book_title'];
?>
<html>
<head>
<title>LMS</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>
<div class="row">
<div class="col-md-14">
<table class="table table-bordered table-striped">
<tr>
<td>
<center>
<?php echo "<img src = 'BCG/html/image.php?filetype=PNG&dpi=600&scale=1&rotation=0&font_family=free3of9.ttf&font_size=6&text=".$code1."&thickness=40&start=NULL&code=BCGcode128' />";?><br>
<span style="font-size:12px;"><?php echo $code1; ?></span>
</center>
</td>
<td><center>
<?php echo "<img src = 'BCG/html/image.php?filetype=PNG&dpi=600&scale=1&rotation=0&font_family=free3of9.ttf&font_size=6&text=".$code1."&thickness=40&start=NULL&code=BCGcode128' />";?><br>
<span style="font-size:12px;"><?php echo $code1; ?></span>
</center>
</td>
</tr>
</table>
</div>
</div>
<?php
include('include/dbcon.php');
include('session.php');
?>
</div>
</div>
</body>
</html>