UnknownSec Bypass
403
:
/
var
/
www
/
jpsagrisolution
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
edit_faq.php
<?php include "top.php"; if(isset($_GET['id'])) { $id = $_GET['id']; $sql = "select * from faqtb where id='".$id."'"; $result = mysqli_query($conn,$sql); $data=mysqli_fetch_array($result); } ?> <script type="text/javascript"> $(document).ready(function (e){ $("#uploadForm").on('submit',(function(e){ e.preventDefault(); var flag = true; var inputField1 = document.getElementById("long_descqus"); if (inputField1.value == "") { flag = false; alert("Please enter question?"); document.getElementById("long_descqus").focus(); return false; } var inputField2 = document.getElementById("long_desc"); if (inputField2.value == "") { flag = false; alert("Please enter answer"); document.getElementById("long_desc").focus(); return false; } var long_descqus = document.getElementById("long_descqus").value; var long_desc = document.getElementById("long_desc").value; try { if (flag == true) { var result = confirm("Do you want to update record?"); if (result == true) { $.ajax({ url: "update_faq.php", type: "POST", data: new FormData(this), contentType: false, cache: false, processData:false, success: function(data){ window.location.href="list_faq.php"; }, error: function(){} }); } } } catch (Error) { alert(Error); } return; })); }); </script> <script> function reset(){ alert("text"); } </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">Edit Faq</label></b></td> <td width="50%" align="right"><a class="btn btn-default" href="list_faq.php">Faq List</a></td> </tr> </table> </div> <!--//banner--> <!--grid--> <div class="validation-system"> <div class="validation-form"> <!----> <form enctype="multipart/form-data" id="uploadForm"> <div class="vali-form"> <input type="hidden" id="hdid" name="hdid" value="<?php echo $_GET['id'];?>"> <div class="col-md-12 form-group1"> <label class="control-label">Question</label> <textarea id='short_descqus' name='short_descqus' hidden="hidden"></textarea> <textarea id='long_descqus' name='long_descqus' ><?php echo $data['qus'];?></textarea> </div> <div class="clearfix"> </div> </div> <div class="col-md-12 form-group1 "> <label class="control-label">Answer</label> <textarea id='short_desc' name='short_desc' hidden="hidden"></textarea> <textarea id='long_desc' name='long_desc' ><?php echo $data['ans'];?></textarea> </div> <div class="clearfix"> </div> <br> <div class="col-md-12 form-group"> <input type="submit" class="btn btn-primary" id="btnopration" onclick="data();" value="Submit"/> <!--<input type="reset" class="btn btn-default" onclick="reset()" value="Reset"/>--> </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" }); // Initialize CKEditor CKEDITOR.inline( 'short_descqus'); CKEDITOR.replace('long_descqus',{ width: "100%", height: "100px" }); </script> <?php include "footer.php";?>
Copyright © 2025 - UnknownSec