📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
boot
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📁
css
-
0755
🗑️
🔒
📁
js
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
132.32 KB
0644
🗑️
⬇️
✏️
🔒
Editing: odd.php
<?php // session_start(); ?><?php include "header2.php"; ?><?php include "every.php"; include "order1.php"; ?> <body onLoad="getLocation()"> <style> .guy{ margin:0px; padding:0px; } </style> <main id="main"> <!-- =======rack and Book Section ======= --> <section id="about" class="about"> <div class="container" data-aos="fade-up"> <script type="text/javascript"> var x = document.getElementById("demo"); // get visitor's location window.onload = function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition, handleError); } else { x.innerHTML = "Geolocation is not supported by this browser."; } } // watch visitor's location function watchLocation() { if (navigator.geolocation) { navigator.geolocation.watchPosition(showPosition, handleError); } else { x.innerHTML = "Geolocation is not supported by this browser."; } } function handleError(error) { let errorStr; switch (error.code) { case error.PERMISSION_DENIED: errorStr = 'User denied the request for Geolocation.'; break; case error.POSITION_UNAVAILABLE: errorStr = 'Location information is unavailable.'; break; case error.TIMEOUT: errorStr = 'The request to get user location timed out.'; break; case error.UNKNOWN_ERROR: errorStr = 'An unknown error occurred.'; break; default: errorStr = 'An unknown error occurred.'; } x.innerHTML = 'Error occurred: ' + errorStr; } function showPosition(position) { var geocoder = new google.maps.Geocoder(); var lat= position.coords.latitude; var long= position.coords.longitude; var latlng = new google.maps.LatLng(lat,long); geocoder.geocode({"latLng":latlng},function(data,status){ document.querySelector('input[name="pad"]').value = data[0].formatted_address; }) } </script> <div class="row content"> <div class="col-lg-6" style="padding:20px; width:100%; margin:auto;"> <p style="text-align:center; color:#fff;"><strong>*DELIVERY ONLY AVALIABLE IN LAGOS*</strong></p> <H3 align="center"> BOOK ORDER</H3> <p> <form method="post" enctype="multipart/form-data"> <input type="text" class="form-control" placeholder="Email Address" value="<?php echo $email; ?>" name="mail" required hidden> <input type="text" class="form-control" placeholder="Your Name" value="<?php echo $name; ?> <?php echo $name2; ?>" name="first" required readonly hidden> <input type="tel" value="<?php echo $mob; ?>" class="form-control" placeholder="Your Phone Number" name="num" required readonly hidden> <input type="tel" value="<?php echo $usid; ?>" class="form-control" placeholder="Your Phone Number" name="user" required readonly hidden> <input type="text" name="dat" id="currentDate" readonly hidden required /> <script> var now = new Date(); mo = now.getMonth() + 1; if (mo < 10) { mo = "0" + mo; } date = now.getDate(); if (date < 10) { date = "0" + date; } var date = now.getFullYear() + '-' + mo + '-' + date; document.getElementById("currentDate").value = date; </script> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD6MS4bUOjkP0fYUklsVzIKYmGmb_MheGQ&callback=initAutocomplete&libraries=places&v=weekly" async ></script> <input type="text" id="pac-inpu" class="form-control" placeholder="Pickup From" name="pad" value="" required style="outline:none;" /><div id="map"></div></p> <p><input type="text" id="pac-inpu2" class="form-control" placeholder="Deliver To" name="pade" value="<?php echo $_SESSION['real']; ?>" /></p> <p style="text-align:center;"><u><a href="" data-toggle="modal" data-backdrop="false" data-target="#myModal">Choose Recieving Address From Diary</a></u></p> <p align="center"><input type="submit" name="submit" value="Book Order" class="submitn" required /></p> <div class="modal fade" id="myModal"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <script> function showResult(str) { if (str.length==0) { document.getElementById("livesearch").innerHTML=""; document.getElementById("livesearch").style.border="0px"; return; } var xmlhttp=new XMLHttpRequest(); xmlhttp.onreadystatechange=function() { if (this.readyState==4 && this.status==200) { document.getElementById("livesearch").innerHTML=this.responseText; document.getElementById("livesearch").style.border="1px solid #A5ACB2"; } } xmlhttp.open("GET","livesearch.php?q="+str,true); xmlhttp.send(); } </script> <!-- Modal Header --> <div class="modal-header" style="color:black;"> <h6 class="modal-title">Search with Reciever's Name / Reciever's Phone Number</h6> <button type="button" class="close" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <p><form><input type="text" onkeyup="showResult(this.value)" Placeholder="Enter reciver's name/ phone number" class="form-control" style="width:50%;"/></form></p> <p><table id="results" width="95%" border="0" cellspacing='0' style="border-collapse:separate; border:none; outline:none; margin:auto; border-spacing:0px 10px;"> <thead><th></th><th></th><th></th></thead> <tbody id="livesearch"> </tbody></table></p> </div> </div> </div> </div> </form> </div> </div> </section><!-- Track and Book Section --> </main><!-- End #main --> <?php include "footer2.php"; ?>
💾 Save Changes