[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: order_details.php
<?php include('header.php'); $order_id=$_REQUEST['id']; $show=new Oops($db); ?> <?php $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']; } } ?> <!-- Banner Start --> <div class="banner"> <img src="images/pro-ba.jpg" alt="" style="width: 100%;" /> <div class="desc"> <div class="container"> </div> </div> </div> <!-- Banner End --> <!-- top Products --> <div class="ads-grid"> <!-- tittle heading --> <div class="spec" data-aos="fade-down" style="transition:all 1500ms ease-in-out"> <h3>Order Details</h3> <div class="ser-t"> <b></b> <span><i></i></span> <b class="line"></b> </div> </div> <!-- //tittle heading --> <div class="container"> <div class="row"> <!-- product left --> <?php include('user_profile.php');?> <!-- //product left --> <!-- product right --> <div class="agileinfo-ads-display col-md-9 w3l-rightpro"> <div class="wrapper"> <!-- first section --> <div class="profile-banner"> <div class="row"> <div class="col-md-5 col-xs-12"> <div class="col-md-4 col-xs-6" style="padding: 0;"> <label class="hikk">Order No:</label> </div> <div class="col-md-8 col-xs-6"> <p class="hikk"><?=$order_id?></p> </div> </div> <div class="col-md-7 col-xs-12"> <div class="col-md-4" style="padding: 0;"> <label class="hikk">Order Placed:</label> </div> <div class="col-md-8"> <p class="hikk"><?php echo date("l ,jS F Y h:i:s A",strtotime($date)); ?></p> </div> </div> <div class="col-md-5 col-xs-12"> <div class="col-md-4" style="padding: 0;"> <label class="hikk">Status:</label> </div> <div class="col-md-8"> <p class="hikk"><?=$status?></p> </div> </div> <div class="col-md-7 col-xs-12"> <div class="col-md-4" style="padding: 0;"> <label class="hikk">Address:</label> </div> <div class="col-md-8"> <p class="hikk"><?=$address?></p> </div> </div> <div class="col-md-7 col-xs-12"> <div class="col-md-4" style="padding: 0;"> <label class="hikk">Payment Mode:</label> </div> <div class="col-md-8"> <p class="hikk"><?=$pstatus?></p> </div> </div> <div class="clearfix"></div> </div> <hr/> <?php $count=1; $st="select * from bill inner join place_order on bill.order_id=place_order.order_id where place_order.order_id='".$order_id."'"; //echo $st; $stmt=$con->prepare($st); $stmt->execute(); $num = $stmt->rowCount(); if($num>0){ $count=1; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ extract($row); $pro_id=$row['product_id']; $stmt1=$show->readwithdata_clause('product_img','product_id',$pro_id,'limit 1'); $row1=$stmt1->fetch(PDO::FETCH_ASSOC); $img=$row1['image']; ?> <div class="row"> <div class="col-md-4 col-xs-3" style="padding:0;"> <img src="<?=$pic_img?>/<?=$img?>" class="order-ing-rj" alt="order" style="width: 50%;"> </div> <div class="col-md-8 col-xs-9"> <p><strong>Product Name </strong>: <?php echo $row['product_name']; ?> </p> <p>Total Amount : Rs <?php echo $row['price']; ?> | Qty : <?php echo $row['quantity']; ?></p> </div> <div class="clearfix"></div> </div> <?php } }?> <hr> <div class="text-center"> <div class="snipcart-details top_brand_home_details item_add single-item hvr-outline-out"> <?php if($status!='ORDER CANCELLED'){?> <a href="bill_final.php?user=<?=$user_id?>&order=<?=$order_id?>" target="_blank" class="button">Print bill</a> <button type="button" class="button_b" data-toggle="modal" data-target="#myModal">Cancel Order</button> <?php }else{ echo "<h3>Your Order has been cancelled</h3>"; }?> </div> </div> </div> <!-- //first section --> </div> </div> </div> <!-- //product right --> </div> </div> <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <form method="post" action="cancel_order.php"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Reason For Cancellation</h4> </div> <div class="modal-body" style="text-align: center;"> <label>Choose Why do you want to cancel?</label> <br> <select name="reason" required> <option value="">Choose</option> <option value="Ordered by mistake">Ordered by mistake</option> <option value="Product is not required anymore.">Product is not required anymore.</option> <option value="Cheaper alternative available for lesser price.">Cheaper alternative available for lesser price.</option> <option value="Others">Others</option> </select> <input type="hidden" name="order_id" value="<?=$order_id?>" > <input type="hidden" name="url" value="<?=$_SERVER['REQUEST_URI']?>" > </div> <div class="modal-footer" style="text-align: center;"> <input type="submit" name="sub" value="Cancel" class="button_1"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </form> </div> </div> <style> .modal-header { padding: 15px; border-bottom: 1px solid #e5e5e5; } .modal-header { font-family: 'Oswald', sans-serif; padding: 15px; border-bottom: 1px solid #e5e5e5; background: #1da1f2; } h4.modal-title { font-family: 'Oswald', sans-serif; font-size: 22px; text-align: center; color: #fff; } .modal-footer input.button_1:hover { background: #f68b1f; } .modal-footer input.button_1 { font-size: 14px; color: #fff; background: #3399cc; text-decoration: none; position: relative; border: none; border-radius: 0; width: 50%; text-transform: uppercase; padding: .5em 0; outline: none; } </style> <!-- //top products --> <?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: 678.08 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