uawdijnntqw1x1x1
IP : 216.73.216.26
Hostname : server.wtmmart.in
Kernel : Linux server.wtmmart.in 4.18.0-553.45.1.el8_10.x86_64 #1 SMP Wed Mar 19 09:44:46 EDT 2025 x86_64
Disable Function : exec,passthru,shell_exec,system
OS : Linux
PATH:
/
home2
/
wtmwscom
/
public_html
/
admin
/
images
/
..
/
..
/
admin
/
product_sale.php
/
/
<?php $title= "Product Sale"; include 'header.php'; ?> <div class="wrapper_cls"> <h1>Product Sale</h1> <?php echo getMessage(); ?> <form action="product_sale_model.php" method="post" onsubmit="check_uid($('uid').val());" > <table border="1"> <tr> <td>Enter User ID</td> <td><input type="text" name="uid" id="uid" onblur="check_uid(this.value)" required="required" /><div id="myDiv"></div></td> </tr> <tr> <td>Product Category</td> <td> <select name="product_category_id" required="required"> <option value="">-- Select Product Category --</option> <?php $result = mysqli_query($connection, "SELECT `product_category_id`, `name` FROM `product_category`"); while ($rowpc = mysqli_fetch_object($result)) : ?> <option value="<?= $rowpc->product_category_id;?>"><?= $rowpc->name;?></option> <?php endwhile;?> </select> </td> </tr> <tr> <td>Enter Amount</td> <td><input type="text" name="amount" id="amount" onblur="check_amount(this.value)" required="required" /><span id="myDiv1"></span></td> </tr> <tr> <td> </td> <td><input type="submit" value="submit" name="submit" id="submit" /></td> </tr> </table> </form> </div> <script type="text/javascript"> function check_uid(uid){ $.get("get_sponser.php",{'sid':uid},function(data,status){ if(data.invalid){ $("#submit").attr("disabled", "true"); $("#myDiv").html("Invalid sponser ID"); } else{ $("#myDiv").html(data.name+" - Valid sponser id"); $("#submit").removeAttr("disabled"); } },"json"); } function check_amount(amount){ if(amount <= 0 || amount == null ){ $("#submit").attr("disabled", "true"); $("#myDiv1").html("Invalid amount"); } else{ $("#myDiv1").html("OK"); $("#submit").removeAttr("disabled"); } } </script> <?php include('footer.php'); ?>
/home2/wtmwscom/public_html/admin/images/../../admin/product_sale.php