| Current Path : /home2/wtmwscom/public_html/admin/ |
| Current File : /home2/wtmwscom/public_html/admin/product_sale_done_print.php |
<?php
session_start();
//if($_SESSION['userid'] != 1) die('Unauthrised access');
include '../function_lib.php';
if(!isset($_SESSION['adminid'])) { redirect('index.php');};
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Print : Wtm WebShop Invoice</title>
<style type="text/css">
body {
/*font-family: Times New Roman;*/
font-family: 'Noto Serif', serif;
font-size: 18px;
}
#wrap {
width: 750px;
margin: 0 auto;
}
#heder {
width: 900px;
height: auto;
}
#receipt {
float: right;
}
p{
font-size: 14px;
line-height: 10px;
}
#logo{
float: left;
width: 130px;
margin-top: -23px;
}
#comp{
float: left;
width: 580px;
text-align: center;
margin-top: -23px;
}
</style>
<link href='http://fonts.googleapis.com/css?family=Libre+Baskerville|Voces|Noto+Serif|Merriweather+Sans|Roboto+Condensed|Tauri' rel='stylesheet' type='text/css'>
</head>
<body>
<?php
include '../connection.php';
$row = mysqli_fetch_object(mysqli_query($connection, "select a.*, b.name from product_sale a INNER JOIN product_category b ON a.product_category_id = b.product_category_id where a.rec_id = ".$_GET['id']));
$row1 = mysqli_fetch_object(mysqli_query($connection, "select * from user where uid = '$row->uid'"));
?>
<div id="wrap" style="background: white;margin-top:-5px;">
<div id="header">
<div id="receipt"><h4>Invoice</h4>
<p style="margin-top: -16px;"><b>No.:</b> <?php echo $row->rec_id; ?></p>
<p style="margin-top: -7px;"><b>Date:</b> <?php echo date('d/m/y', strtotime($row->date));?></p>
</div>
<div style="clear: both;"></div>
<div id="logo"><img src="../images/jana-seva-sankalp-logo.jpg" style="width: 80px; height: 80px;" /></div>
<div id="comp">
<h2 style="color: orangered;"> Wtm WebShop.</h2>
<!--<p>Liable for SUPERPOWER to you</p>
<p>Regd. No. U74999MH201011PTC2111837</p>-->
<p>website: www.mindspace</p>
</div>
<div style="clear: both;"></div>
<div style="margin-top: -7px;">
<p>Applicant Name & Add.: <span style="color: cornflowerblue;"><?php echo $row1->name; ?></span> , At- <?php if(isset($row1->address)){echo $row1->address;} ?></p>
<p>Applicant BCA Code No.: <?php echo $row1->login_id; ?>, Amount <?php echo $row->pv_amount; ?></p>
<p>Product Name: <?php echo $row->name; ?></p>
</div>
<div style="float: left;">
<p>Rs.<span style="color: cornflowerblue;"><?php echo $row->pv_amount;?></span></p>
<p style="position: relative; left: 150px;"><b>Sign of Ref. BCA</b></p>
</div>
<div style="float: right; width: 200px; text-align: center;">
<p><b>Authorized Officer</b></p>
<p><b> Wtm WebShop</b></p>
</div>
<div style="clear: both;"></div>
<div style="margin: 5px;"><button onclick="window.print()">Print</button></div>
</div>
</div>
</body>
</html>