File manager - Edit - /home/autoph/public_html/pms_v1/reports/PCPComplianceReportDivision.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 = 62; $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){ include '../accessDenied.php'; 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_pcpByDivision.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" 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> <?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 searchSection(){ var searchText = $("#searchText").val(); //alert(searchText); //return false; ShowUploadBar(); $.ajax({ url: "./reports/searchDivision.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