File manager - Edit - /home/gppowercontrol/public_html/razorpay/index11.php
Back
<!--<form action="pay.php" method="GET">--> <!-- <input type="text" name="name" placeholder="Enter Your Name"><br>--> <!-- <input type="number" name="phone" placeholder="Enter Phone"><br>--> <!-- <input type="email" name="email" placeholder="Enter Email"><br>--> <!-- <input type="number" name="amount" placeholder="Enter Amount"><br>--> <!-- <input type="text" name="purpose" placeholder="Purpose"><br>--> <!-- <input type="number" name="uid" placeholder="UID"><br>--> <!-- <input type="text" name="temp" placeholder="Temp ID"><br>--> <!-- <button type="submit">Submit</button>--> <!--</form>--> <!doctype html> <html class="no-js" lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Radian</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Favicon --> <link rel="shortcut icon" type="image/x-icon" href="../img/logo.webp"> <!-- all css here --> <!-- bootstrap v3.3.6 css --> <link rel="stylesheet" href="../css/bootstrap.min.css"> <!-- animate css --> <link rel="stylesheet" href="../css/animate.css"> <!-- meanmenu css --> <link rel="stylesheet" href="../css/meanmenu.min.css"> <!-- owl.carousel css --> <link rel="stylesheet" href="../css/owl.carousel.css"> <!-- font-awesome css --> <link rel="stylesheet" href="../css/font-awesome.min.css"> <!-- flexslider.css--> <link rel="stylesheet" href="../css/flexslider.css"> <!-- chosen.min.css--> <link rel="stylesheet" href="../css/chosen.min.css"> <!-- style css --> <link rel="stylesheet" href="../style.css"> <!-- responsive css --> <link rel="stylesheet" href="../css/responsive.css"> <!-- modernizr css --> <script src="../js/vendor/modernizr-2.8.3.min.js"></script> <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/> </head> <body class="login"> <header> <!-- header-mid-area-start --> <div class="header-mid-area ptb-10"> <div class="container-fluid"> <div class="row"> <div class="col-lg-6 col-md-4 col-12 m-auto"> <div class="logo-area text-center logo-xs-mrg"> <a href="index.php"><img src="../img/logo.webp" alt="logo" /></a> </div> </div> </div> </div> </div> <!-- header-mid-area-end --> </header> <!-- header-area-end --> <!-- user-login-area-start --> <div class="user-login-area mb-70"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="login-title text-center mb-30"> <h2>Payment Details</h2> </div> </div> <div class="offset-lg-3 col-lg-6 col-md-12 col-12"> <form method="post" action="pay.php"> <?php include('../include/connection.php'); if(isset($_GET['orid'])){ $order_id = $_GET['orid']; $sql = "SELECT * FROM `orders` where `order_id` = '$order_id'"; $res = mysqli_query($con,$sql); $row = mysqli_fetch_assoc($res); ?> <div class="login-form"> <div class="single-login"> <label>Order Id<span>*</span></label> <input type="text" value="<?php echo $order_id ?>" disabled /> <input type="hidden" name="order_id" value="<?php echo $order_id ?>" required /> <input type="hidden" name="user_id" value="<?php echo $user_id ?>" required /> </div> <div class="single-login"> <label>Email <span>*</span></label> <input type="text" value="<?php echo $row['fname'].' '.$row['lname'] ?>" disabled /> <input type="hidden" name="name" value="<?php echo $row['fname'].' '.$row['lname'] ?>" required /> </div> <div class="single-login"> <label>Email <span>*</span></label> <input type="email" value="<?php echo $row['email'] ?>" disabled /> <input type="hidden" name="email" value="<?php echo $row['email'] ?>" required /> </div> <div class="single-login"> <label>Phone <span>*</span></label> <input type="tel" value="<?php echo $row['phone'] ?>" disabled /> <input type="hidden" name="phone" value="<?php echo $row['phone'] ?>" required /> </div> <div class="single-login"> <label>Total Payable Amount <span>*</span></label> <input type="text" value="<?php echo $row['final_price'] ?>" disabled /> <input type="hidden" name="amount" value="<?php echo $row['final_price'] ?>" required /> <input type="hidden" name="discount" value="<?php echo $row['discount'] ?>" required /> </div> <div class="single-login single-login-2"> <button type="submit" name="pay">Pay</button> </div> </div> <?php } ?> </form> </div> </div> </div> </div> <!-- user-login-area-end --> <!-- footer-area-start --> <footer> <!-- footer-top-start --> <!-- <div class="footer-top"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="footer-top-menu bb-2"> <nav> <ul> <li><a href="#">home</a></li> <li><a href="#">Enable Cookies</a></li> <li><a href="#">Privacy and Cookie Policy</a></li> <li><a href="#">contact us</a></li> <li><a href="#">blog</a></li> </ul> </nav> </div> </div> </div> </div> </div> --> <!-- footer-top-start --> <!-- footer-mid-start --> <div class="footer-mid ptb-50"> <div class="container"> <div class="row"> <div class="col-lg-4 col-md-12"> <div class="single-footer br-2 mrg-sm"> <div class="footer-title mb-20"> <img src="img/logo.webp" alt=""> </div> <div class="footer-contact"> <p class="adress"> <span>Address, 37, Kailash Enclave, Pitampura, New Delhi, 110034 – India</span> </p> <p><span>Call us now:</span> <a href="tel:918287221185" class="text-white">+91 8287221185</a></p> <p><span>Email:</span> <a href="mailto:info@digidotes.com" class="text-white">info@digidotes.com</a></p> </div> </div> </div> <div class="col-lg-8 col-md-12"> <div class="row"> <div class="col-lg-4 col-md-4 col-12"> <div class="single-footer br-2 xs-mb"> <div class="footer-title mb-20"> <h3>Explore</h3> </div> <div class="footer-mid-menu"> <ul> <li><a href="about.php">About us</a></li> <li><a href="blogs.php">Blogs </a></li> <li><a href="shop.php">Shop</a></li> <li><a href="contact.php">Contact</a></li> </ul> </div> </div> </div> <div class="col-lg-4 col-md-4 col-12"> <div class="single-footer br-2 xs-mb"> <div class="footer-title mb-20"> <h3>Customer Service</h3> </div> <div class="footer-mid-menu"> <ul> <li><a href="contact.html">Help Center</a></li> <li><a href="#">Return Policy</a></li> <li><a href="#">Terms and Conditions</a></li> <li><a href="register.html">Privacy Policy</a></li> </ul> </div> </div> </div> <div class="col-lg-4 col-md-4 col-12"> <div class="single-footer xs-mb"> <div class="footer-title mb-20"> <h3>Categories</h3> </div> <div class="footer-mid-menu"> <ul> <li><a href="contact.html">Addresses</a></li> <li><a href="#">Credit slips </a></li> <li><a href="#"> Orders</a></li> <li><a href="#">Personal info</a></li> </ul> </div> </div> </div> </div> </div> </div> </div> </div> <!-- footer-mid-end --> <!-- footer-bottom-start --> <div class="footer-bottom"> <div class="container"> <div class="row bt-2 text-center"> <div class="col-lg-12 col-md-12 col-12"> <div class="copy-right-area"> <p>© 2022 <strong> All Right Reserved. </strong> Designed And Developed By <a href="https://digidotes.com/" target="_blank"><strong>Digidotes (A Digital Marketing Company)</strong></a></p> </div> </div> <!-- <div class="col-lg-6 col-md-6 col-12"> <div class="payment-img text-end"> <a href="#"><img src="img/1.png" alt="payment" /></a> </div> </div> --> </div> </div> </div> <!-- footer-bottom-end --> </footer> <!-- footer-area-end --> <!-- all js here --> <!-- jquery latest version --> <script src="js/vendor/jquery-1.12.4.min.js"></script> <!-- bootstrap js --> <script src="js/bootstrap.min.js"></script> <!-- owl.carousel js --> <script src="js/owl.carousel.min.js"></script> <!-- meanmenu js --> <script src="js/jquery.meanmenu.js"></script> <!-- wow js --> <script src="js/wow.min.js"></script> <!-- jquery.parallax-1.1.3.js --> <script src="js/jquery.parallax-1.1.3.js"></script> <!-- jquery.countdown.min.js --> <script src="js/jquery.countdown.min.js"></script> <!-- jquery.flexslider.js --> <script src="js/jquery.flexslider.js"></script> <!-- chosen.jquery.min.js --> <script src="js/chosen.jquery.min.js"></script> <!-- jquery.counterup.min.js --> <script src="js/jquery.counterup.min.js"></script> <!-- waypoints.min.js --> <script src="js/waypoints.min.js"></script> <!-- plugins js --> <script src="js/plugins.js"></script> <!-- main js --> <script src="js/main.js"></script> <!-- googleapis --> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBMlLa3XrAmtemtf97Z2YpXwPLlimRK7Pk"></script> <script> /* Google Map js */ function initialize() { var mapOptions = { zoom: 15, scrollwheel: false, center: new google.maps.LatLng(40.740610, -73.935242) }; var map = new google.maps.Map(document.getElementById('googleMap'), mapOptions); var marker = new google.maps.Marker({ position: map.getCenter(), animation: google.maps.Animation.BOUNCE, icon: 'img/map.png', map: map }); } google.maps.event.addDomListener(window, 'load', initialize); </script> <script type="text/javascript" src="js/language.js?cb=googleTranslateElementInit"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script> <script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> <script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'en', includedLanguages: 'hi' }, 'google_translate_element'); }; </script> <script> $('.responsive').slick({ dots: false, infinite: true, autoplay: true, autoplaySpeed: 3000, speed: 300, slidesToShow: 6, slidesToScroll: 1, responsive: [{ breakpoint: 1024, settings: { slidesToShow: 5, slidesToScroll: 1, infinite: true, dots: true } }, { breakpoint: 600, settings: { slidesToShow: 3, slidesToScroll: 2 } }, { breakpoint: 480, settings: { slidesToShow: 1, slidesToScroll: 1 } } // You can unslick at a given breakpoint now by adding: // settings: "unslick" // instead of a settings object ] }); </script> <script> $('.responsive1').slick({ dots: false, infinite: true, autoplay: true, autoplaySpeed: 3000, speed: 300, slidesToShow: 3, slidesToScroll: 1, responsive: [{ breakpoint: 1024, settings: { slidesToShow: 3, slidesToScroll: 1, infinite: true, dots: true } }, { breakpoint: 600, settings: { slidesToShow: 2, slidesToScroll: 2 } }, { breakpoint: 480, settings: { slidesToShow: 1, slidesToScroll: 1 } } // You can unslick at a given breakpoint now by adding: // settings: "unslick" // instead of a settings object ] }); </script> <script> function add_to_wishlist(product_id, user_id) { console.log(product_id, user_id); $.ajax({ url: "ajax.php", method: "POST", data: { user_id: user_id, product_id: product_id, add_to_wishlist: "add_to_wishlist" }, success: function(data) { console.log(data); alert(data); window.location.reload(); } }); } function delete_wishlist_item(product_id, user_id) { console.log(product_id, user_id); jQuery.ajax({ url: "ajax.php", method: "POST", data: { product_id: product_id, user_id: user_id, delete_wishlist_item: "delete_wishlist_item" }, success: function(data) { alert(data); window.location.reload(); } }) } function remove_item_from_cart(product_id, product_name) { console.log(product_id, product_name) jQuery.ajax({ url: 'ajax.php', method: 'post', data: { product_id: product_id, product_name: product_name, remove_item_from_cart: "remove_item_from_cart", }, success: function(data) { window.location.reload(); } }) } function cash_on_delivery(total_price, addCash) { if (addCash) { // Calculate the new total price by adding Rs. 20 const cash = total_price + 20; // Assuming "final_price" is a span element, update its content var finalPriceSpan = document.getElementById("final_price"); const finalPriceInput = document.getElementById("final_price"); if (finalPriceSpan) { finalPriceSpan.textContent = cash; } if (finalPriceInput) { finalPriceInput.value = cash; } // Assuming "price_after_cash" is a container for displaying the price, update its content var finalPriceContainer = document.getElementById("price_after_cash"); if (finalPriceContainer) { finalPriceContainer.innerHTML = 'Rs. ' + cash; } // Log the calculated value for debugging console.log(cash); } else { const cash = total_price; // Assuming "final_price" is a span element, update its content var finalPriceSpan = document.getElementById("final_price"); const finalPriceInput = document.getElementById("final_price"); if (finalPriceSpan) { finalPriceSpan.textContent = cash; } if (finalPriceInput) { finalPriceInput.value = cash; } // Assuming "price_after_cash" is a container for displaying the price, update its content var finalPriceContainer = document.getElementById("price_after_cash"); if (finalPriceContainer) { finalPriceContainer.innerHTML = 'Rs. ' + cash; } // Log the calculated value for debugging console.log(cash); } } function addtocart(product_id, product_name, product_image, product_price, url) { console.log("My id is " + product_id); var product_quantity = jQuery('#qty').val(); console.log("Product quantity is " + product_quantity); if (product_quantity > 0) { jQuery.ajax({ url: "ajax.php", method: "POST", data: { product_id: product_id, product_name: product_name, product_image: product_image, product_price: product_price, url: url, add_to_cart: "add_to_cart", product_quantity: product_quantity }, success: function(result) { alert(result); console.log("New Cart is " + result); window.location.reload(); } }); } else { jQuery.ajax({ url: "ajax.php", method: "POST", data: { product_id: product_id, product_name: product_name, product_image: product_image, product_price: product_price, url: url, add_to_cart: "add_to_cart", product_quantity: 1 }, success: function(result) { alert(result); console.log("New Cart is " + result); window.location.reload(); } }); } } function DeleteCart(id) { console.log("Delete Cart is " + id); jQuery.ajax({ url: "/DeleteCart", method: "POST", dataType: "JSON", data: { product_id: id }, success: function(result) { console.log(result.success) window.location.reload(); } }) } </script> <script> function setcategory(name, id) { $.ajax({ type: 'POST', url: 'ajax.php', data: { category: name, }, success: function(html) { var data1 = JSON.parse(html); console.log(data1); var htmldiv = ''; if (data1.length > 0) { for (let i = 0; i < data1.length; i++) { const element = data1[i]; const $image = JSON.parse(element.image); const imageSource = $image && $image.length > 0 ? $image[0] : ''; htmldiv += ` <div class="product-wrapper col-lg-2 col-md-3 col-sm-4 col-6"> <div class="product-img"> <a href="product.php?url=${element.book_url}"> <img src="Uploads/Products/${imageSource}" alt="${element.image_alt_tag}" class="primary" /> </a> <div class="quick-view"> <a class="action-view" href="product.php?url=${element.book_url}" title="Quick View"> <i class="fa fa-search-plus"></i> </a> </div> </div> <div class="product-details text-center"> <h4><a href="product.php?url=${element.book_url}">${element.book_title}</a></h4> <div class="product-price"> <ul> <li>Rs. ${element.discounted_price}</li> <li class="old-price">Rs. ${element.base_price}</li> </ul> </div> </div> <div class="product-link"> <div class="product-button"> <a onclick="addtocart('${element.id}','${element.book_title}','${imageSource}','${element.discounted_price}','${element.book_url}')" title="Add to cart"><i class="fa fa-shopping-cart"></i>Add to cart</a> </div> <div class="add-to-link"> <ul> <li><a href="product.php?url=${element.book_url}" title="Details"><i class="fa fa-external-link"></i></a></li> </ul> </div> </div> </div> `; } } else { htmldiv += `<h3>No Record Found</h3` } document.getElementById('jquery_data').innerHTML = htmldiv; $('.nav.justify-content-center li a').removeClass('active'); // Add the 'active' class to the selected tab $(`a[href="#${id}"]`).addClass('active'); } }) } </script> <script> function setcategory1(name, id) { $.ajax({ type: 'POST', url: 'ajax.php', data: { state: name, }, success: function(html) { var data11 = JSON.parse(html); console.log(data11); var htmldiv = ''; if (data11.length > 0) { for (let i = 0; i < data11.length; i++) { const element = data11[i]; const $image = JSON.parse(element.image); const imageSource = $image && $image.length > 0 ? $image[0] : ''; htmldiv += ` <div class="product-wrapper col-lg-2 col-md-3 col-sm-4 col-6"> <div class="product-img"> <a href="product.php?url=${element.book_url}"> <img src="Uploads/Products/${imageSource}" alt="${element.image_alt_tag}" class="primary" /> </a> <div class="quick-view"> <a class="action-view" href="product.php?url=${element.book_url}" title="Quick View"> <i class="fa fa-search-plus"></i> </a> </div> </div> <div class="product-details text-center"> <h4><a href="product.php?url=${element.book_url}">${element.book_title}</a></h4> <div class="product-price"> <ul> <li>Rs. ${element.discounted_price}</li> <li class="old-price">Rs. ${element.base_price}</li> </ul> </div> </div> <div class="product-link"> <div class="product-button"> <a onclick="addtocart('${element.id}','${element.book_title}','${imageSource}','${element.discounted_price}','${element.book_url}')" title="Add to cart"><i class="fa fa-shopping-cart"></i>Add to cart</a> </div> <div class="add-to-link"> <ul> <li><a href="product.php?url=${element.book_url}" title="Details"><i class="fa fa-external-link"></i></a></li> </ul> </div> </div> </div> `; } } else { htmldiv += `<h3>No Record Found</h3` } document.getElementById('jquery_data1').innerHTML = htmldiv; $('.nav.justify-content-center li a').removeClass('active'); // Add the 'active' class to the selected tab $(`a[href="#${id}"]`).addClass('active'); } }) } </script> </body>
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.61 |
proxy
|
phpinfo
|
Settings