UnknownSec Bypass
403
:
/
var
/
www
/
zenithentcare
/
stmedicosoftware
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
mst_holiday.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>Manage Holiday</li> </ul> </div> </div> <!-- //breadcrumbs --> <div class="inner_content_w3_agile_info two_in"> <h2 class="w3_inner_tittle">Manage Holiday</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">Holiday </h3> <div class="form-body"> <input type="hidden" class="form-control1" id="hdid" name="hdid"> <div class="form-group"> <label for="testHolidayDate">Date</label> <input type="text" class="form-control" id="testHolidayDate" name="testHolidayDate" placeholder=""> </div> <div class="form-group"> <label for="testHolidayDescription">Holiday Description</label> <input type="text" class="form-control" id="testHolidayDescription" name="testHolidayDescription" placeholder="Please enter holiday description here..."> </div> <button type="submit" class="btn btn-default" id="btnsave" name="btnsave" onclick="curdholiday();">SAVE</button> <button type="submit" class="btn btn-default" id="btnclear1" onclick="clear1()" name="btnclear1">CLEAR</button> </div> </div> <div class="col-md-8 graph-form general agile_info_shadow"> <h3 class="w3_inner_tittle two">Holiday List </h3> <?php $sql= "SELECT * from masterappointmenttb where identifier='1' and isdeleted='".$gnotdeleted."' order by id 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>Date</th> <th>Holiday</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['id']; ?></td> <td> <?php echo $row['holidaydate']; ?> </td> <td> <?php echo $row['holidaydescription'];?> </td> <td align="center"> <a href="#" onclick="edit(<?php echo $row['id']; ?>);" style="corsor:pointer"><i class=" glyphicon glyphicon-pencil"></i></a> <a </td> <td align="center"> <a href="#" onclick="remove(<?php echo $row['id']; ?>);"><i class="glyphicon glyphicon-trash"></i></a> </td> </tr> <?php $serial++; } } ?> </tbody> </table> <div class="tables"> <div class="table-responsive bs-example widget-shadow" id="dynamic_content"></div> </div> </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"> $(document).ready(function() { $("#testHolidayDate").datepicker({ dateformat: "dd-MM-yyyy" }); $("#studtable").DataTable({ bLengthChange: true, "iDisplayLength": 10, bInfo: false, responsive: true, "bAutoWidth": false }); }); function remove(id) { var depid = id; try { var urlgetcode = 'get_deparment_list.php'; $.ajax({ method: 'POST', url: urlgetcode, data: '&depid=' + depid, dataType: 'json', async: true, cache: false, success: function(data) { $('#hdid').val(data.parcode); $('#testdepartmentname').val(data.parname); document.getElementById("btnsave").innerHTML = "REMOVE"; }, error: function(request) { alert(request.responseText); } }); } catch (Error) { alert(Error); } return; } function edit(id) { var id = id; try { var urlgetcode = 'get_holiday.php'; $.ajax({ method: 'POST', url: urlgetcode, data: '&id=' + id, dataType: 'json', async: true, cache: false, success: function(data) { $('#hdid').val(data.id); $('#testHolidayDate').val(data.holidaydate); $('#testHolidayDescription').val(data.holidaydescription); document.getElementById("btnsave").innerHTML = "UPDATE"; }, error: function(request) { alert(request.responseText); } }); } catch (Error) { alert(Error); } return; } function clear1() { $('#hdid').val(""); $('#testHolidayDate').val(""); $('#testHolidayDescription').val(""); document.getElementById("btnsave").innerHTML = "SAVE"; } function curdholiday() { var flag = true; var inputField1 = document.getElementById("testHolidayDate"); if (inputField1.value == "") { flag = false; alert("Please enter holiday."); document.getElementById("testHolidayDate").focus(); return false; } var inputField2 = document.getElementById("testHolidayDescription"); if (inputField2.value == "") { flag = false; alert("Please enter holiday description."); document.getElementById("testHolidayDescription").focus(); return false; } var holidaydate = document.getElementById("testHolidayDate").value; var holidaydescription = document.getElementById("testHolidayDescription").value; var id = document.getElementById("hdid").value; var btnopration = document.getElementById("btnsave").innerHTML; var identifier = 1; try { if (flag == true) { var urlgetcode = 'mst_curdholiday.php'; $.ajax({ method: 'POST', url: urlgetcode, data: '&holidaydate=' + holidaydate + '&holidaydescription=' + holidaydescription + '&id=' + id + '&btnopration=' + btnopration + '&identifier=' + identifier, dataType: 'json', async: true, cache: false, success: function(data) { alert(data); window.location.href = "mst_holiday.php"; $('#hdid').val(""); $('#testHolidayDate').val(""); $('#testHolidayDescription').val(""); }, error: function(request) { alert(request.responseText); } }); } } catch (Error) { alert(Error); } return; } </script> <?php include "footer.php";?>
Copyright © 2025 - UnknownSec