[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: checkout.php
<?php include('header.php'); $order=$_REQUEST['order'];?> <!-- BANNER --> <div class="banner-inner"> <img src="images/inner-banner.jpg" alt="" class="banner-img"> </div> <script> $(document).ready(function(){ $("input[type='radio']").on('click', function(){ var radioValue = $("input[name='address']:checked").val(); var lat_long=radioValue.split(','); var session_lat="<?=$_SESSION['maker_lat']?>"; var session_long="<?=$_SESSION['maker_long']?>"; var d=Number(session_lat)-Number(lat_long[0]); // alert(d); /* var dia=Number((3.14*6371)/360); var range=Number(dia*d); // alert(range); if(range>=8){ $(this).prop('checked', false); alert('Sorry not deliverable'); }*/ }); }); /*let message = document.getElementById("errorMessage"); function getLocation(){ if(navigator.geolocation){ navigator.geolocation.getCurrentPosition(sendLocation); } else{ message.innerHTML = "<em>Your browser is unsupported.</em>"; } } function sendLocation(geoLocation) { alert(geoLocation.coords.latitude); // window.location = "forward.php?x="+geoLocation.coords.latitude+"&y="+geoLocation.coords.longitude; } */ function oncheck(){ var address = $("#add").val(); var num = $("#num").val(); if(num==0){ alert('Please add address and phone no before proceeding'); return false; }else{ return true; } } </script> <!-- soon --> <div class="checkout" style=""> <div class="container"> <div class="title-section text-center"> <p class="w3ls-title-sub">Checkout</p> <h3 class="w3ls-title">Your <span> Order</span></h3> </div> <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 Your Order :</h3> <!--<a data-target="#myModal2" id="btn_ship" data-backdrop="static" data-toggle="modal" href="#" class="ship">Delivery To Another Address?</a>--> <form class="profile_edit" onsubmit="return oncheck()" id="form1" action="placed1.php" method="post"> <div id="show"> <div class="form-left-to-w3l " id="b_name"> <label>Full Name</label> <input type="text" value="<?=$_SESSION['login_user']?>" name="name" readonly=""> </div> <div class="form-left-to-w3l"> <label>Email Id</label> <input type="email" value="<?=$_SESSION['username']?>" name="email" id="email" readonly> </div> <div class="form-left-to-w3l " id="b_name"> <label>Phone No</label> <input type="text" id="phn" name="phon" value="<?=$phn?>" required=""> </div> <div class="form-left-to-w3l " id="b_name"> <label>Payment mode</label> <!--<input type="radio" name="pay_status" value="COD"> COD--> <input type="radio" name="pay_status" value="Online" checked=""> Online <input type="radio" name="pay_status" value="COD"> COD </div> <div class="form-left-to-w3l " id="b_name" style="width: 95%;height: 50px; overflow: visible;"> <label style="width: 25%;">Address</label> <div class="textarea-d"> <!-- <textarea name="address" readonly=""><?=$address?></textarea>--> <?php $stmt1=$show->readwithdata('customer_address','customer_id',$_SESSION['login_id']); $num1=$stmt1->rowCount(); //echo $num1; ?> <input type="hidden" id="num" value="<?=$num1?>"> <?php if($num1>0){ while($row=$stmt1->fetch(PDO::FETCH_ASSOC)){ // echo $row['address'];echo "<br>"; ?> <input type="radio" id="check" name="address" value="<?=$row['latitude']?>,<?=$row['longitude']?>:<?=$row['address']?>:<?=$row['city']?>:<?=$row['pincode']?>:<?=$row['locality']?>:<?=$row['state']?>" required> <?=$row['address']?>,<?=$row['locality']?>,<?=$row['pincode']?><br> <?php } }else{?> <a href="add_address.php?order=<?=$order?>" class="ship">Please Add Address</a> <?php } ?> </div> </div> </div> <div class="clearfix"></div> <input type="hidden" name="other" value="0" /> <div id="showother"></div> <input type="hidden" name="order_id" value="<?php echo $order;?>"> <div class="clearfix"></div> <div class="form-sub-acc" style="width: 20%;"> <div class="form-sub" style="width: 100%;"> <input type="submit" class="" name="sub" id="btn" value="Proceed" style="width: 85%; margin: 10px 0 20px 10px;"> </div> </div> </form> <a href="add_address.php?order=<?=$order?>" class="ship">Delivery To Another Address?</a> </div> </div> </div> </div> </div> <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(); $("#btn_ship").hide(); $('#myModal2').modal('hide'); $(".modal-backdrop").remove(); } }); }); }); </script> <script> function fill_location(Value,Value1) { $('#loc').val(Value); $('#pin').val(Value1); $('#display_loc').hide(); //window.location.href='product1.php?cate='+Value+''; } $(document).ready(function(){ $("#loc").keyup(function() { var search = $('#loc').val(); var city = $('#city').val(); //alert(search); if(search=="") { $("#display").html(""); } else { $.ajax({ type: "POST", url: "ajax_check.php", data: "search_loc="+ search+"&city="+city , beforeSend: function(){ /* Show image container */ $("#loader").show(); }, success: function(html){ //alert(html); $("#display_loc").html(html).show(); $("#loader").hide(); } }); } }); }); </script> <script> function get_sub_category_name() { var category_id = $('#district').val(); $.ajax({ type: "POST", url: "ajax_check.php", // Name of the php files data: "district="+category_id, success: function(html) { $("#show").html(html); document.getElementById("hide_k").style.display="none"; } }); } </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: #e40046;"> <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-12"> <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" > <select id="district" onChange="get_sub_category_name();" name="district" required> <option value="">District</option> <?php $table="district"; $stmt=$show->readAll_clause('city','group by district order by id asc'); $num=$stmt->rowCount(); if($num>0){ while($row=$stmt->fetch(PDO::FETCH_ASSOC)){ echo "<option value='".$row['district']."'>".$row['district']."</option>"; } } ?> </select> <div id="show"></div> <div id="hide_k"> <select name="City"> <option value="">City</option> </select></div> <div class="form-left-to-w3l " id="b_name"> <input type="text" id="loc" name="locality" placeholder=" Locality" required> <div id='loader' style='display: none;'> <img src='loader.gif' width='32px' height='32px'> </div> <div id="display_loc"></div> </div> <div class="form-left-to-w3l " id="b_name"> <input type="text" id="pin" name="pincode" placeholder=" Pincode" readonly> </div> <label>Address 1 *</label> <input type="text" name="add1" placeholder="Address Line 1"> <label>Address 2 *</label> <input type="text" name="add2" placeholder="Address Line 2"> <label>Pincode *</label> <input type="text" class="pin" name="pin" placeholder="Pincode" pattern="[0-9]{6}" title="Please give Correct pincode"> </div> </div> <div class="col-xs-offset-4"> <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> <?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.53 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