UnknownSec Bypass
403
:
/
var
/
www
/
zenithentcare
/
stmedicosoftware
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
mst_financial_year.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 Financial Year</li> </ul> </div> </div> <!-- //breadcrumbs --> <div class="inner_content_w3_agile_info two_in"> <h2 class="w3_inner_tittle">Manage Financial Year</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">Financial Year </h3> <div class="form-body"> <input type="hidden" class="form-control1" id="hdid" name="hdid"> <div class="form-group"> <label for="testBeginingDate">Begining Date</label> <input type="date" class="form-control1" id="beginingdate" name="beginingdate" style="font-size: 14px; width: 100%;"> </div> <div class="form-group"> <label for="testClosingDate">Closing Date</label> <input type="date" class="form-control1" id="closingdate" name="closingdate" style="font-size: 14px; width: 100%;"> </div> <button type="submit" class="btn btn-default" id="btnsave" name="btnsave" onclick="curdfinyear();">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">Financial Year List </h3> <div class="form-body" style="overflow-x:auto;"> <?php $sql= "SELECT * from financialyear where isdeleted='".$gnotdeleted."' order by financialyearid 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>Beginning Date</th> <th>Closing Date</th> <th>Fin Year</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['financialyearid']; ?> </td> --> <td> <?php echo $row['beginningdate']; ?> </td> <td> <?php echo $row['closingdate']; ?> </td> <td> <?php echo $row['finyear']; ?> </td> <td><button onclick="edit(<?php echo $row['financialyearid']; ?>);"><i class=" glyphicon glyphicon-pencil"></i></button></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); $('#testname').val(data.subtestname); $('#tamount').val(data.amount); $('#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_financialyear_details.php'; $.ajax({ method: 'POST', url: urlgetcode, data: '&id=' + id, dataType: 'json', async: true, cache: false, success: function(data) { $('#hdid').val(data.id); $('#beginingdate').val(data.begdate); $('#closingdate').val(data.closedate); document.getElementById("btnsave").innerHTML = "UPDATE"; document.getElementById("beginingdate").focus(); }, error: function(request) { alert(request.responseText); } }); } catch (Error) { alert(Error); } return; } function clear1() { $('#hdid').val(""); $('#beginingdate').val(""); $('#closingdate').val(""); document.getElementById("btnsave").innerHTML = "SAVE"; } function curdfinyear() { var flag = true; var inputField2 = document.getElementById("beginingdate"); if (inputField2.value == "") { flag = false; alert("Please select begining date."); document.getElementById("beginingdate").focus(); return false; } var inputField3 = document.getElementById("closingdate"); if (inputField3.value == "") { flag = false; alert("Please select closing date."); document.getElementById("closingdate").focus(); return false; } var beginingdate = document.getElementById("beginingdate").value; var closingdate = document.getElementById("closingdate").value; var id = document.getElementById("hdid").value; var btnopration = document.getElementById("btnsave").innerHTML; try { if (flag == true) { var urlgetcode = 'mst_curd_financialyear.php'; $.ajax({ method: 'POST', url: urlgetcode, data: '&beginingdate=' + beginingdate + '&closingdate=' + closingdate + '&btnopration=' + btnopration + '&id=' + id, dataType: 'json', async: true, cache: false, success: function(data) { alert(data); window.location.href = "mst_financial_year.php"; $('#hdid').val(""); $('#beginingdate').val(""); $('#closingdate').val(""); }, 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