[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: place_order.php
<?php include('header.php'); ?> <!-- 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 --> <?php $order=$_REQUEST['order']; $show=new Oops($db); $stmt=$show->readwithdata('client','client_id',$_SESSION['login_id']); $r=$stmt->rowCount(); if($r>0){ while($row=$stmt->fetch(PDO::FETCH_ASSOC)){ $address=$row['address']; $phone=$row['phone']; $pin=$row['pincode']; $city=$row['city']; $state=$row['state']; } } ?> <!-- top Products --> <div class="ads-grid"> <!-- tittle heading --> <div class="spec" data-aos="fade-down" style="transition:all 1500ms ease-in-out"> <h3>Your Order</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-profile"> <!-- first section --> <div class="profile-banner"> <h4><strong>Place Your Order</strong></h4> <a data-target="#myModal2" data-backdrop="static" data-toggle="modal" href="#" style="float: right; margin-right: 15px; font-family: a; text-transform: uppercase; font-weight: bold; color: #f00;">Ship To Another Address?</a> <hr> <form method="post" action="placed1.php"> <div id="show"> <div class="col-md-4 agileinfo_mail_grid_left"> <ul class="big"> <li><i class="fa fa-envelope" aria-hidden="true"></i></li> <li>Name</li> </ul> </div> <div class="col-md-8 agileinfo_mail_grid_right"> <input type="email" class="form-control" name="email" value="<?=$_SESSION['login_user']?>" readonly /> </div> <div class="clearfix"></div> <div class="col-md-4 agileinfo_mail_grid_left"> <ul class="big"> <li><i class="fa fa-envelope" aria-hidden="true"></i></li> <li>Email</li> </ul> </div> <div class="col-md-8 agileinfo_mail_grid_right"> <input type="email" class="form-control" name="email" value="<?=$_SESSION['username']?>" readonly /> </div> <div class="clearfix"></div> <div class="col-md-4 agileinfo_mail_grid_left"> <ul class="big"> <li><i class="fa fa-phone" aria-hidden="true"></i></li> <li>Phone</li> </ul> </div> <div class="col-md-8 agileinfo_mail_grid_right"> <input type="text" class="form-control" name="phon" value="<?=$phone?>" readonly /> </div> <div class="clearfix"></div> <div class="col-md-4 agileinfo_mail_grid_left"> <ul class="big"> <li><i class="fa fa-map-marker" aria-hidden="true"></i></li> <li>City,State</li> </ul> </div> <div class="col-md-8 agileinfo_mail_grid_right"> <input type="text" class="form-control" name="city_state" value="<?=$city?>,<?=$state?>,<?=$pin?>" readonly /> </div> <div class="clearfix"></div> <div class="col-md-4 agileinfo_mail_grid_left"> <ul class="big"> <li><i class="fa fa-home" aria-hidden="true"></i></li> <li>Address</li> </ul> </div> <div class="col-md-8 agileinfo_mail_grid_right"> <textarea placeholder="" name="address" class="form-control"><?=$address?></textarea> </div> <div class="clearfix"></div> <div class="col-md-5 agileinfo_mail_grid_left"> <ul class="big"> <li><i class="fa fa-check" aria-hidden="true"></i></li> <li>Payment mode</li> </ul> </div> <div class="col-md-7 agileinfo_mail_grid_right"> <input type="radio" name="pay_status" value="COD" /> COD <input type="radio" name="pay_status" value="Online" checked /> Online </div> <div class="clearfix"></div> <div class="clearfix"></div> <input type="hidden" name="other" value="0" /> </div> <div id="showother"></div> <input type="hidden" name="order_id" value="<?php echo $order;?>"> <div class="clearfix"></div> <div class="col-md-offset-10"> <div class="snipcart-details top_brand_home_details item_add single-item hvr-outline-out"> <input type="submit" class="button" value="Place Order" name="sub" id="submit_pay"> </div> </div> </form> </div> <!-- //first section --> </div> </div> <!-- //product right --> </div> </div> </div> <!-- //top products --> <?php include('footer.php');?> <script> $(document).ready(function(){ $("#submit").click(function() { //alert('ss'); $.ajax({ type: "POST", url: "ajax_ship.php", data:$('#form').serialize(), success: function(html){ // alert('ok'); $("#showother").html(html).show(); $("#show").hide(); $('#myModal2').modal('hide'); } }); }); }); </script> <div id="myModal2" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header" style="background: #0ec7ff;"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Change Your Shipping Address</h4> </div> <div class="modal-body"> <form class="form-horizontal" id="form" role="form" method="post"> <div class="form-group"> <div class="col-md-10 col-xs-offset-1"> <label>Name *</label> <input type="text" class="name" name="name" placeholder="Name" style=""> <label>Phone NO *</label> <input type="text" placeholder="phone No" name="phone" > <label>Address 1 *</label> <textarea class="form-control" rows="1" name="add1" placeholder="Address Line 1"></textarea> <label>Address 2 *</label> <textarea class="form-control" rows="1" name="add2" placeholder="Address Line 2"></textarea> <label>Pincode *</label> <input type="text" class="pin" name="pin" placeholder="Pincode" pattern="[0-9]{6}" title="Please give Correct pincode"> <label>City *</label> <input type="text" class="city" name="city" placeholder="City" style=""> <label>State *</label> <select class="size" name="state" id="size"> <?php $table1='state_list'; $stmt=$show->state($table1); $num=$stmt->rowCount(); if($num>0){ while($row=$stmt->fetch(PDO::FETCH_ASSOC)){ echo "<option value='".$row['state']."'>".$row['state']."</option>"; } } ?> </select> </div> </div> <div class="col-xs-offset-6"> <div class="snipcart-details top_brand_home_details"> <input type="button" class="button_1" value="Update" id="submit" name="change"/> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </form> </div> </div> </div> </div>
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.49 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