File manager - Edit - /home/asiatechinc/public_html/asiatechinc-websites/dhyeyaprakashan.com/test.php
Back
<?php include 'core/init.php'; ?> <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> <script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script> </head> <body> <?php $srno = 1; $total = 0; foreach($_SESSION['cart'] as $keyval => $product){ $sql = mysqli_fetch_array(mysqli_query($mysqli, "SELECT * FROM `books_details`where id='$keyval'")); $srno++; $total +=($product*$sql['price']); ?> <?php }; ?> <h1>Show Checkboxes</h1> <div id="checkbox"> <input type="radio" id="vehicle1" name="vehicle1" value="Bike"> <label for="vehicle1"> I have a bike</label><br> </div> <div class="row" id="mainrow" style="padding: 0 15px;"> <div class="col-md-3 form-group"> <label>Payment Status</label> <select class="form-control" id="select"><option value="Prepaid">Prepaid</option><option value="Pay At Hotel">Pay At Hotel</option></select></div> <div class="col-md-3 form-group"> <select name="cars" class="form-control" id="cars" style="margin-right: 50px" id="second"> <option value="4">Bank Transfer</option> <option value="5">Bill To Company</option> <option value="6">Card Machine</option> <option value="7">Cash</option> <option value="7">Cheque Deposit</option> <option value="7">Credit</option> <option value="7">Credit Card</option> <option value="7">Debit Card</option> <option value="7">Discount</option> <option value="7">IMPS</option> <option value="7">Mobile Wallet</option> <option value="7">NEFT</option> <option value="7">OTA</option> <option value="7">Other</option> <option value="7">Payment Gateway</option> <option value="7">Paytm</option> <option value="7">Google Pay</option> <option value="7">POS</option> <option value="7">RTGS</option> <option value="7">Travel Agent</option> <option value="7">UPI</option> </select> </div> <div id="secondrow"> <select id="select1" name="cars" style="margin-right: 50px"> <option value="0">Full Amount</option> <option value="1">Partial Amount</option> </select> <label>Collected Amount</label> <input type="text" value="<?php echo $total ?>" id="collected_amount" disabled> </div> <input type="number" id="partial_amount" value="<?php echo $total ?>" min="0" step="5" max="<?php echo $total ?>" style="width: 200px;height: 30px"><br> <button type="button" class="btn btn-success" id="success_button" style="width: 200px;height: 50px">Success</button> </div> </body> </html> <script> $(document).ready(function(e){ $('#mainrow').hide(); }); </script> <script> $(document).ready(function(e){ $('#checkbox').click(function(e){ $('#mainrow').show(); $('#partial_amount').hide(); }); }); </script> <script> $(document).ready(function(e){ $('#select').on('change', function(){ var selectedCountry = $("#select option:selected").text(); if (selectedCountry == "Pay At Hotel") { $('#secondrow').hide(); } }); }); </script> <script> $(document).ready(function(e){ $('#select').on('change', function(){ var selectedCountry = $("#select option:selected").text(); /*alert(selectedCountry);*/ if (selectedCountry == "Prepaid") { /* alert('hy');*/ $('#secondrow').show(); } }); }); </script> <script> $(document).ready(function(e){ $('#select1').on('change', function(){ var selectedCountry = $("#select1 option:selected").val(); /*alert(selectedCountry);*/ if (selectedCountry == "0") { /* alert('hy');*/ $("input").prop('disabled', true); } }); }); </script> <script> /*$(document).ready(function(e){ $('#select1').on('change', function(){ var selectedCountry = $("#select1 option:selected").val(); /*alert(selectedCountry);*/ if (selectedCountry == "1") { /* alert('hy');*/ $("input").prop('disabled', false); } }); });*/ </script> <script> $(document).ready(function(e){ $('#select1').on('change', function(){ var selectedCountry = $("#select1 option:selected").val(); if (selectedCountry == "1") { $('#partial_amount').show(); $('#collected_amount').hide(); } }); }); </script> <script> $(document).ready(function(){ $("#partial_amount").keypress(function(){ $('#success_button').click(function(){ alert('Please enter a valid price'); }); }); }); </script> <!--<script> $(document).ready(function(e){ $('#select1').on('change', function(){ var selectedCountry = $("#select1 option:selected").val(); if (selectedCountry == "0") { echo''; } }); }); </script> --> <script> $(document).ready(function(e){ $('#select1').on('change', function(){ var selectedCountry = $("#select1 option:selected").val(); if (selectedCountry == "0") { $('#collected_amount').show(); $('#partial_amount').hide(); } }); }); </script>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.08 |
proxy
|
phpinfo
|
Settings