UnknownSec Bypass
403
:
/
var
/
www
/
jpsagrisolution
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
manage_product.php
<?php include "top.php";?> <script src="https://code.jquery.com/jquery-2.2.0.min.js"></script> <script type="text/javascript"> $(document).ready(function (e){ $("#uploadForm").on('submit',(function(e){ e.preventDefault(); var flag = true; var inputField1 = document.getElementById("productname"); if (inputField1.value == "") { flag = false; alert("Please enter product name"); document.getElementById("productname").focus(); return false; } var inputField2 = document.getElementById("price"); if (inputField2.value == "") { flag = false; alert("Please enter product price"); document.getElementById("price").focus(); return false; } var inputField3 = document.getElementById("long_desc"); if (inputField3.value == "") { flag = false; alert("Please enter product discription"); document.getElementById("long_desc").focus(); return false; } var inputField4 = document.getElementById("new-image"); if (inputField4.value == "-") { flag = false; alert("Please select peoduct image"); document.getElementById("new-image").focus(); return false; } var productname = document.getElementById("productname").value; var price = document.getElementById("price").value; var long_desc = document.getElementById("long_desc").value; var new_image = document.getElementById("new-image").value; var hdid = document.getElementById("hdid").value; var btnopration = document.getElementById("btnopration").innerHTML; var text = "Do you want " + btnopration + " peoduct?"; if (confirm(text) == false) { flag = false; return false; } try { if (flag == true) { $.ajax({ url: "operation_product.php", type: "POST", data: new FormData(this), contentType: false, cache: false, processData:false, success: function(data){ if (data == "1") { alert(data); alert("Save Successfully"); window.location.href="list_product.php"; } else if (msg == "2") { alert("user name already exist"); } }, error: function(){} }); } } catch (Error) { alert(Error); } return; })); }); </script> <div id="page-wrapper" class="gray-bg dashbard-1"> <div class="content-main"> <!--banner--> <div class="banner"> <table width="100%"> <tr> <td width="50%"><b><label name="headingtitle" id="headingtitle">Add Product</label></b></td> <td width="50%" align="right"><a class="btn btn-default" href="list_product.php">Product List</a></td> </tr> </table> </div> <!--//banner--> <!--grid--> <div class="validation-system"> <div class="validation-form"> <!----> <form enctype="multipart/form-data" id="uploadForm" action="operation_product.php" method="post"> <div class="vali-form"> <input type="hidden" id="hdid" name="hdid"> <div class="col-md-6 form-group1"> <label class="control-label">Product Name</label> <input type="text" name="productname" id="productname" placeholder="Product Name" required=""> </div> <div class="col-md-6 form-group1 form-last"> <label class="control-label">Price</label> <input type="text" name="price" id="price" placeholder="Price" required=""> </div> <div class="clearfix"> </div> </div> <div class="col-md-12 form-group1 "> <label class="control-label">Product Discription</label> <textarea id='short_desc' name='short_descqus' hidden="hidden"></textarea> <textarea id='long_desc' name='long_desc' ></textarea> </div> <div class="clearfix"> </div> <br> <div class="col-md-12 form-group1 group-mail"> <label for="exampleInputFile">Ashram Image</label> <input type="file" id="new-image" name="new-image"> <br> <img src="ashram_images/<?php echo $data['image_name']; ?>" height="100px"> <input type="hidden" name="old_image" value="<?php echo $data['image_name']; ?>"> <p class="help-block">Max. Size 200kb (only .jpg, .jpeg, .png files allow)</p> </div> <div class="clearfix"> </div> <div class="col-md-12 form-group"> <button type="submit" class="btn btn-primary" id="btnopration" onclick="managerecord();">Save</button> <button type="reset" class="btn btn-default">Reset</button> </div> <div class="clearfix"> </div> </form> <!----> </div> </div> <!--//grid--> <!-- Script --> <script type="text/javascript"> // Initialize CKEditor CKEDITOR.inline( 'short_desc'); CKEDITOR.replace('long_desc',{ width: "100%", height: "200px" }); </script> <?php include "footer.php";?>
Copyright © 2025 - UnknownSec