CasperSecurity
<?php include ('include/dbcon.php');
?>
<html>
<head>
<title>UIM LiMSys</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>
<link href="css/bootstrap.min.css" rel="stylesheet">
<script>
function printPage() {
window.print();
}
</script>
</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">
<?php
$result= mysqli_query($conn,"select * from book
LEFT JOIN category ON book.category_id = category.category_id
order by book_id ASC") or die (mysqli_error());
?>
<table class="table table-bordered table-striped">
<tbody>
<?php
while ($row= mysqli_fetch_array ($result) ){
$id=$row['book_id'];
// print_r($row);
?>
<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=".$row['book_barcode']."&thickness=40&start=NULL&code=BCGcode128' />";?><br>
<span style="font-size:12px;"><?php echo $row['book_barcode']; ?></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=".$row['book_barcode']."&thickness=40&start=NULL&code=BCGcode128' />";?><br>
<span style="font-size:12px;"><?php echo $row['book_barcode']; ?></span>
</center>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
<br />
<br />
<?php
include('include/dbcon.php');
include('session.php');
$user_query=mysqli_query($conn,"select * from admin where admin_id='$id_session'")or die(mysqli_error());
$row=mysqli_fetch_array($user_query); {
?> <h2><i class="glyphicon glyphicon-user"></i> <?php echo '<span style="color:blue; font-size:15px;display:none!important;">Prepared by:'."<br /><br /> ".$row['firstname']." ".$row['lastname']." ".'</span>';?></h2>
<?php } ?>
</div>
</div>
</div>
</div>
</body>
</html>