File manager - Edit - /home/autoph/public_html/pms_v1/reports/MARComplianceReportBranch.php
Back
<?php include_once("../../../cfg/conn.php"); //error_reporting(0); //SAME CODE WHEN PRINTING. JUST COPY/PASTE THIS CODE AND USE GET INSTEAD OF POST if(isset($_POST['scr'])){ $titol = $_POST['titol']; $userID = $_POST['userID']; //============================================================================================================== //VALIDATE ACCESS ============================================================================================== //============================================================================================================== $roleID = userProfileID($userID); include ("../functions/users.php"); $roleID = userProfileID($userID); $moduleID = 45; $add =checkViewAccessM1024($roleID, $moduleID)[1]; $edit =checkViewAccessM1024($roleID, $moduleID)[2]; $delete =checkViewAccessM1024($roleID, $moduleID)[3]; $print =checkViewAccessM1024($roleID, $moduleID)[4]; $download =checkViewAccessM1024($roleID, $moduleID)[5]; echo "<input type='hidden' id='addAccess' value='$add'>"; echo "<input type='hidden' id='editAccess' value='$edit'>"; echo "<input type='hidden' id='deleteAccess' value='$delete'>"; echo "<input type='hidden' id='printAccess' value='$print'>"; echo "<input type='hidden' id='downloadAccess' value='$download'>"; if($add == 1){$addButton = '';}else{$addButton='Disabled';} if($edit == 1){$editButton = '';}else{$editButton='Disabled';} if($delete == 1){$deletButton = '';}else{$deletButton='Disabled';} if($print == 1){$printButton = '';}else{$printButton='Disabled';} if($download == 1){$downloadButton = '';}else{$downloadButton='Disabled';} if(checkViewAccessM1024($roleID, $moduleID)[0] == 0){ echo " <center><img src='./images/locked_out_icon.png' width='100' style='margin-top:100px'><img></center> "; echo "<h4 class='text-center text-danger align-middle pt-5'> Access Denied </h4>"; echo "<p class='display-5 text-center text-danger'> Sorry, you are not authorized to access this page. <br>Please contact your system support for assistance. <br><br>Thank you! <br><br> </p>"; exit(); } //============================================================================================================== //VALIDATE ACCESS ============================================================================================== //============================================================================================================== ?> <input type='hidden' id='searchID' placeholder='searchID'> <div class="pageSearchHeader bg-white p-1 pt-1 w-100"> <h5 class='p-1 text-left'>Search Section:</h5> <input class="form-control p-3 border-info" type="SEARCH..." placeholder="Search Department / Section" id="searchText" onKeyUp="searchSection()" style="border-radius:3px 0px 0px 3px;margin:0px;min-width:250px;width:75%;float:left"> <button type="button" class="btn btn-info text-light " onclick="searchSection()" style="float:rigth;width:20%;margin-left:0px;border-radius:0px 3px 3px 0px;height:40px">Search</button> </div> <div id='selectedRecord' class='content w-100' style='height:220px;overflow:auto;border:1px solid lightgray'> </div> <!--MODAL FORM VIEWING OF PCP--> <!-- The Modal --> <div class="content" id="kraModal"> <div class="modal-dialog modal-xl"> <!-- Modal Header --><h5 style='text-align:left;color:#535356;padding:3px'><?php echo $titol;?> </h5> <div class="modal-content"> <div class="modal-header"> <h5 id='rptTitle' class="modal-title">Filter Report</h5> </div> <!-- Modal body --> <form action='pdfViewer/compliance_cardBranchLevel.php' method='GET' target='_Blank'> <input type='hidden' id='userID' name='userID' value='<?php echo $userID;?>'> <div class="modal-body p-1" style="border:0px solid blue;overflow:auto"> <div class="form-group col-lg-2 col-md-12 float-left"> <label for="compName">Unit.ID:</label> <input locked type="text" readonly class="form-control radius-sm" id="unitID" name="unitID"> </div> <div class="form-group col-lg-4 col-md-12 float-left"> <label for="compName">Unit Name:</label> <input locked type="text" readonly class="form-control radius-sm" id="unitName" name="unitName"> </div> <div class="form-group col-lg-2 col-md-12 float-left"> <label for="compName">Year:</label> <input type="number" max=9999 min=2020 value='<?php echo date('Y');?>' class="form-control radius-sm" id="year" name="year"> </div> <div class="form-group col-lg-4 col-md-12 float-left"> <label for="compName">Period</label> <select name='sem' id='sem' class="form-select form-select-lg p-2 w-100 rounded-sm selectBG"> <option value='1'>1st Semester</option> <option value='2'>2nd Semester</option> <option value='0' selected>Yearly</option> </select> </div> </div> <!-- Modal footer --> <div class="modal-footer"> <input type='submit' id='loadReport' class="btn btn-danger pl-4 pr-4 m-0 fa fa-plus" value="Submit" style="display:none;height:40px"> <!-- <button type="button" class="btn btn-secondary m-0" data-dismiss="modal" style="border-radius:0px"> <span class="btn-label"><i class="fa fa-close"> Close</i></button> --> </div> </form> </div> </div> </div> <!-- The Modal PEF FORM--> <!-- The Modal --> <div class="modal" data-bs-toggle="modal" data-bs-target="#staticBackdrop" id="vewRPTPage" style='height:100%;width:100%;'> <div class="modal-fullscreen m-md-0 m-lg-0 h-100"> <div class="modal-content"> <!-- Modal Header --> <div class="modal-header"> <h4 id='rptViewTitle' class="modal-title">Employee Performance Report</h4> <button type="button" class="close" data-dismiss="modal">×</button> </div> <h6 class="text-success bold border text-right p-3" style='cursor:pointer;padding-right:20px;' onclick="javascript:loadData();"><i class="fa fa-refresh"> Refresh</i></h6> <!-- Modal body --> <div class="modal-body-scrollable w-100 h-auto"> <div id='chartA' class="form-group col-xl-12 col-lg-12 col-md-12 col-sm-12 float-left h-50 p-3" style='background:white'> </div> <div id='empKRAList' class="form-group col-xl-12 col-lg-12 col-md-12 col-sm-12 float-left h-100 p-10 text-center" style='overflow:auto'> </div> </div> <!-- Modal footer --> <div class="modal-footer"> <button type="button" class="btn btn-success m-0" onclick="javascript:loadData();" style="border-radius:0px"> <span class="btn-label"><i class="fa fa-refresh"> Refresh</i></button> <button type="button" class="btn btn-secondary m-0" data-dismiss="modal" style="border-radius:0px"> <span class="btn-label"><i class="fa fa-close"> Close</i></button> </div> </div> </div> </div> <!-- <div class="d-flex justify-content-center"> <div class="spinner-border" role="status"> <span class="visually-hidden"></span> </div> </div> --> <?php } $conn->close(); ?> <script> $(document).ready(function() { //alert('arnel'); searchSection(); }); function getInfo(row) { var x=row.cells; var myX = x[0].innerHTML; if(myX > 0){ document.getElementById("loadReport").style.display = "block"; }else{ document.getElementById("loadReport").style.display = "none"; } document.getElementById("searchID").value = x[0].innerHTML; document.getElementById("unitID").value = x[0].innerHTML; document.getElementById("unitName").value = x[2].innerHTML; //document.getElementById("t").value = x[3].innerHTML; document.getElementById("rptViewTitle").innerHTML = "Performance Review Report: [" + x[2].innerHTML + "]"; } function loadData(){ var searchID = $("#searchID").val(); var empID = $("#empID").val(); var rptYear = $("#rptYear").val(); var rptSemester = $("#rptSemester").val(); var empName = $("#empName").val(); var empPosition = $("#empPosition").val(); if(searchID==''){ Swal.fire({ icon: 'error', title: 'Invalid', text: 'No employee name has been selected.' }) return false; } //alert(searchID); ShowUploadBar(); $.ajax({ url: "./reports/loadDataReportA.php", type: "POST", async:true, data:{ "rptYear":rptYear, "rptSemester":rptSemester, "empName":empName, "empPosition":empPosition, "empID":empID, "searchID":searchID, "lDat":1 }, success: function(x){ $("#empKRAList").html(x); ShowUploadBar(); cloadChartA(); } }) } function searchSection(){ var searchText = $("#searchText").val(); //alert(searchText); //return false; ShowUploadBar(); $.ajax({ url: "./reports/searchBranches.php", type: "POST", async: true, data: { "searchText":searchText, "searchEmP": 1 }, success: function(d){ $("#selectedRecord").html(d); ShowUploadBar(); } }) } </script> <script type="text/javascript" src="https://canvasjs.com/assets/script/jquery-1.11.1.min.js"></script> <script type="text/javascript" src="https://cdn.canvasjs.com/jquery.canvasjs.min.js"></script>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings