[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: order_placed_status.php
<?php include('header.php'); $response=base64_decode($_REQUEST['details']); $data = json_decode($response, true); $order_id=$_REQUEST['order_id']; // echo $response; ?> <!-- 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">Your order</p> <h3 class="w3ls-title">Place <span> Order</span> </h3> </div> <?php // print_r($data); $order_id=$_REQUEST['order_id']; //echo $order_id; $stmt1=$show->readwithdata('place_order','order_id',$order_id); $num1=$stmt1->rowCount(); if($num1>0){ while($row=$stmt1->fetch(PDO::FETCH_ASSOC)){ $address=$row['address']; $amount=$row['amount']; $status=$row['status']; $date=$row['date']; $pstatus=$row['pay_status']; $user_id=$row['user_id']; $total=$row['total']; $delivery_charge=$row['delivery_charge']; $gst=$row['gst']; $promo_code=$row['promo_code']; $promo_code_val=$row['promo_code_val']; $delivery_type=$row['delivery_type']; $maker_id=$row['maker_id']; if($delivery_type=='pickup'){ $del_amt="-".$row['self_pickup']; $del_label='Self-pickup'; }else{ $del_amt=$row['delivery_charge']; $del_label='Home-Delivery'; } } } $sq11="select * from food_maker where maker_id='".$maker_id."' order by id"; $r11=$con->prepare($sq11); $r11->execute(); while($row11=$r11->fetch(PDO::FETCH_ASSOC)){ $m_name=$row11['name']; $m_phn=$row11['phone']; $m_apart=$row11['apartment_address']; $street1=$row11['street1']; $street2=$row11['street2']; $landmark=$row11['landmark']; $m_state=$row11['state']; $m_city=$row11['city']; $m_pincode=$row11['pincode']; } //echo $name; ?> <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>Place Order Information :</h3> <div class="place-box"> <div class="place-box-lt"> <label class="hikk">Order No :</label> </div> <div class="place-box-rt"> <p class="hikk"><?=$order_id?></p> </div> </div> <div class="place-box"> <div class="place-box-lt"> <label class="hikk">STATUS :</label> </div> <div class="place-box-rt"> <p class="hikk"><?=$status?></p> </div> </div> <div class="place-box"> <div class="place-box-lt"> <label class="hikk">ORDER PLACED :</label> </div> <div class="place-box-rt"> <p class="hikk"><?php echo date("l ,jS F Y h:i A",strtotime($date)); ?></p> </div> </div> <div class="place-box"> <div class="place-box-lt"> <label class="hikk">Payment Details :</label> </div> <div class="place-box-rt"> <p class="hikk"><?=$pstatus?>| <?=$amount?></p> </div> </div> <div class="place-box"> <div class="place-box-lt"> <label class="hikk">Address :</label> </div> <div class="place-box-rt"> <p class="hikk"><?=$address?></p> </div> </div> <hr> <div class="bill-box" style="background:none;width:100% !important;float:left !important"> <h3> Order Status:</h3> <span style="color:red">Once order placed, cannot be cancelled.</span> <table class="table"> <thead> <tr> <th>Status</th> <th>Details</th> </tr> </thead> <tbody> <?php $count=1;$item_total=0; $st="select * from datalog where order_id='".$order_id."'"; $stmt=$con->prepare($st); $stmt->execute(); while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ ?> <tr> <td><?=$row['status']?></td> <td><?=date('l,d M, Y h:i a',strtotime($row['time']))?></td> </tr> </tbody> <?php } ?> </table> </div> </div> </form> </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.7 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