File manager - Edit - /home/autoph/public_html/pms_v1/main.php
Back
<?php session_start(); $time = 3600; // Set expire time with secends. // Star session here //error_reporting(0); if (isset($_SESSION['userID']) && (time() - $_SESSION['time']) > $time) { // Your Code Here to logout header("location: logout.php"); session_destroy(); exit(); } if (isset($_SESSION['compID'])){ $companyID = $_SESSION['compID']; $uID = $_SESSION['userID']; echo "<input type='hidden' id='companyID' value=$companyID>"; $_SESSION['time'] = time(); }else{ header("location: logout.php"); } include_once("./functions/menuScript.php"); include_once("../../cfg/conn.php"); include_once("../../cfg/connasa.php"); include ("./functions/users.php"); date_default_timezone_set('Asia/Singapore'); //$myTimeStamp = date_create() ->format("Y-m-d h:i:sa"); WITH AM/PM note //$myTimeStamp = date_create() ->format("Y-m-d h:i:s"); $imgF= getEmployeeEmpInformation($uID)[4]; //echo $imgF; // $imgF="aee_a.png"; // if(isset($_SESSION['userID'])) { // // echo "Session ID is '" . $_SESSION['userID']; // //`echo "<br>Session Name id " . $_SESSION['userID']; // $uID = $_SESSION['userID']; // $imgF= $_SESSION['profilePic']; // } else { // header("location: index.php"); // } //CHECK if ACCOUNT STILL ACTIVE $uPro ="SELECT `account_status` FROM `pms_employee_data` WHERE `id`='$uID'"; $quPro = mysqli_query($conn,$uPro); while($acc = mysqli_fetch_array($quPro)){ $accStatus = $acc['account_status']; } if($accStatus == 0){ header("location: logout.php"); exit(); } //echo "Value is: " . $_COOKIE['pms_cook']; $queryUName = "SELECT * FROM `pms_employee_data` WHERE `id`='$uID'"; $result = mysqli_query($conn,$queryUName); while($row=mysqli_fetch_array($result)){ $uFname = $row['first_name']; $uLname = $row['last_name']; $uPosition = $row['position']; $compID= $row['comp_id']; } ?> <input type='hidden' id='userID' value="<?php echo $uID;?>" > <html> <head> <meta charset="UTF-8"> <!-- http://frontendfreecode.com/hidden-sidebar-with-toggle-button-using-bootstrap--> <!-- https://getbootstrap.com/docs/4.1/components/buttons/ --> <!-- Gradient Background Creator https://cssgradient.io/ --> <!-- https://getbootstrap.com/docs/5.2/content/images/ https://www.iconarchive.com/ https://www.iconarchive.com/show/ionicons-icons-by-ionic.4.html https://fontawesome.com/v4/icons/ https://fontawesome.com/v4/icons/#web-application https://themewagon.github.io/Breeze-Free-Bootstrap-Admin-Template/index.html https://getbootstrap.com/docs/5.0/components/badge/ w https://www.w3schools.com/bootstrap4/bootstrap_modal.asp - source of bootstrap 4 use http://talkerscode.com/webtricks/convert-html-to-pdf-using-php.php - PDF Generator Guide https://mdbootstrap.com/docs/standard/extended/modal-size/ sizing https://getbootstrap.com/docs/5.0/components/modal/ MISC` https://getbootstrap.com/docs/5.0/utilities/position/ --> <!-- START OF MENU PMS ADMINISTRATION TABS SCRIPT --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://getbootstrap.com/docs/5.2/assets/css/docs.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script> <!-- END OF MENU PMS ADMINISTRATION TABS SCRIPT --> <link rel="stylesheet" type="text/css" href="./css/sidebarmain.css?v=<?php echo time(); ?>"/> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800,900"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <?php include './css/mainCSS.php'; ?> </head> <body onload = "loadPersonalDashboard()" oncontextmenu="return false;"> <!-- START OF SWEETALERT SCRIPT--> <script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script> <script src="script/sweetalert2.all.min.js"></script> <!-- END OF SWEETALERT SCRIPT--> <script type="text/javascript" src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> <!--SCRIPT FOR DASHBOARD USE--> <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> <!--<script src="http://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> --> <?php include './pages/topHeader.php'; include './pages/loadergif.php'; ?> <div class="wrapper d-flex align-items-stretch"> <?php include './pages/navigation.php';?> <!-- Page Content --> <div id="content" class="p-lg-5 p-md-5 p-sm-4 p-xs-2 bg-light"> <div class="subDashA p-3"> <h6> <?php echo date("l jS \of F"); echo "</h6><br><h1>".date("Y")."</h1>";?></h1> </div> <div class="subDashB">B</div> <div class="mainDash">C</div> <div class="subDashC">D</div> </div> </div> <script> //================================================ (function ($) { //Swal.fire('Changes are not saved', '', 'info') "use strict"; var fullHeight = function () { $(".js-fullheight").css("height", $(window).height()); $(window).resize(function () { $(".js-fullheight").css("height", $(window).height()); }); }; fullHeight(); $("#sidebarCollapse").on("click", function () { $("#sidebar").toggleClass("active"); //$("#topLogo").toggleClass("active"); }); $("#smallBars").on("click", function () { $("#sidebar").toggleClass("active"); //$("#topLogo").toggleClass("active"); }); // $("#dashboard").on("click", function () { // $("#sidebar").toggleClass("active"); // //$("#topLogo").toggleClass("active"); // }); //$("#opsGroup").on("click", function () { // $("#sidebar").toggleClass("active"); //$("#topLogo").toggleClass("active"); // }); //$("#opsArea").on("click", function () { // $("#sidebar").toggleClass("active"); //$("#topLogo").toggleClass("active"); // }); //$("#opsBrand").on("click", function () { // $("#sidebar").toggleClass("active"); //$("#topLogo").toggleClass("active"); // }); })(jQuery); $(document).ready(function () { document.getElementById("dasPeronal").click(); }); </script> <script type="text/javascript" src="https://code.jquery.com/jquery-3.6.3.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script> <script type="text/javascript" src="https://code.jquery.com/jquery-2.2.1.js"></script> <script language="javascript" type="text/javascript"> //======================================================== $("#dasSales").click(function(){ var userID = $("#userID").val(); ShowUploadBar(); $.ajax({ url: "./dashboard/salesDash.php", type: "POST", async: true, data: { "userID":userID, "dasales": 1 }, success: function(d){ $("#content").html(d); ///$("#sidebar").toggleClass("active"); funcShowHideBars(); //chart.render(); ShowUploadBar(); } }) }); $("#dasGlobal").click(function(){ ShowUploadBar(); //setTimeout(function() { loadSupportDashboard(); }, 2000); var userID = $("#userID").val(); $.ajax({ url: "./dashboard/globalDashboard.php", type: "POST", async: true, data: { "userID":userID, "das": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); //$("#sidebar").toggleClass("active"); funcShowHideBars(); } }) }); //setTimeout(function() { loadDataDashbaord(); }, 1000); //========================================================== $("#dasPeronal").click(function(){ //setTimeout(function() { loadPersonalDashboard(); }, 1000); var userID = $("#userID").val(); //alert(userID); ShowUploadBar(); $.ajax({ url: "./dashboard/personalDashboard.php", type: "POST", async: true, data: { "userID":userID, "das": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); //$("#sidebar").toggleClass("active"); //funcShowHideBars(); } }) }); //========================================================= $("#smButtonAlertA").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsNotification.php", type: "POST", async: true, data: { "done": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#smButtonMailB").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsInbox.php", type: "POST", async: true, data: { "done": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); updateInboxCount(); } }) }); $("#stpArea").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsArea.php", type: "POST", async: true, data: { "done": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#stpGroup").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsAutohub.php", type: "POST", async: true, data: { "grp": 1 }, success: function(d){ $("#content").html(d); $("#sidebar").toggleClass("Inactive"); ShowUploadBar(); } }) }); $("#stpBrand").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsBrand.php", type: "POST", async: true, data: { "brd": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#stpCompany").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsCompany.php", type: "POST", async: true, data: { "cmp": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#stpBranch").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsBranch.php", type: "POST", async: true, data: { "cmp": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#stpSubGroup").click(function(){ // alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsGroup.php", type: "POST", async: true, data: { "sgrp": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#stpDivision").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsDivision.php", type: "POST", async: true, data: { "pmsdiv": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#stpDepartment").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsDepartment.php", type: "POST", async: true, data: { "pmsdiv": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#stpUnit").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsUnit.php", type: "POST", async: true, data: { "pmsdiv": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#stpPosition").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsPositions.php", type: "POST", async: true, data: { "pmsdiv": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#stpEmployee").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsEmployees.php", type: "POST", async: true, data: { "pmsdiv": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#kraGroup").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsKRAGroup.php", type: "POST", async: true, data: { "kraGrp": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#kraCompany").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsKRACompany.php", type: "POST", async: true, data: { "kraCompany": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#kraBranch").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsKRABranch.php", type: "POST", async: true, data: { "kraBranch": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#kraGrpDivision").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsGroupDivisionKRA.php", type: "POST", async: true, data: { "kraGroupDivision": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#kraDivision").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/pmsDivisionKRA.php", type: "POST", async: true, data: { "kraDivision": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#pmsReports").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./reports/pmsReports.php", type: "POST", async: true, data: { "reports": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#manCom").click(function(){ var companyID = $("#companyID").val(); //alert(companyID); ShowUploadBar(); $.ajax({ url: "./mancom/MANCOM_DataEntry.php", type: "POST", async: true, data: { "companyID":companyID, "reports": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#rptDesign").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./reports/rptDesigner.php", type: "POST", async: true, data: { "reports": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#opsGroup").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./opsPlan/opsAutohub.php", type: "POST", async: true, data: { "grp": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#opsArea").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./opsPlan/opsArea.php", type: "POST", async: true, data: { "grp": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#opsBrand").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./opsPlan/opsBrand.php", type: "POST", async: true, data: { "grp": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#opsCompany").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./opsPlan/opsCompany.php", type: "POST", async: true, data: { "grp": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#opsBranch").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./opsPlan/opsBranch.php", type: "POST", async: true, data: { "grp": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#opsMainDivision").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./opsPlan/opsMainDivision.php", type: "POST", async: true, data: { "grp": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#opsDivision").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./opsPlan/opssubDivision.php", type: "POST", async: true, data: { "grp": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#opsDepartment").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./opsPlan/opsDepartment.php", type: "POST", async: true, data: { "grp": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#pcpEmployee").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pcpDocuments/pcpEmployeeList.php", type: "POST", async: true, data: { "grp": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#marEmpLevel").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./mar/marEmployeeLevel.php", type: "POST", async: true, data: { "grp": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#marUnitLevel").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./mar/marUnitLevel.php", type: "POST", async: true, data: { "grp": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#approverSetup").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./apr/ApproverSetup.php", type: "POST", async: true, data: { "apr": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#pmsOfficers").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./apr/pmsOfficers.php", type: "POST", async: true, data: { "apr": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#empPEFEmp").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pef/pefEmployeeLevel.php", type: "POST", async: true, data: { "pef": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#saGroupSetup").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./sales/salesGroupSetup.php", type: "POST", async: true, data: { "grp": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#usrImport").click(function(){ var userID = $("#userID").val(); ShowUploadBar(); $.ajax({ url: "./config/systemManagement.php", type: "POST", async: true, data: { "userID":userID, "usr": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); function updateInboxCount(){ var userID = $("#userID").val(); //alert(userID); ShowUploadBar(); $.ajax({ url: "./notify/updateInboxCount.php", type: "POST", async: true, data: { "userID":userID, "con": 1 }, success: function(d){ $("#inboxCount").html(d); ShowUploadBar(); } }) } $("#chatMyGPT").click(function(){ var userID = $("#userID").val(); ShowUploadBar(); $.ajax({ url: "./chatGPTv1/askGPT.php", type: "POST", async: true, data: { "userID":userID, "gpt": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#ahgEvent").click(function(){ var userID = $("#userID").val(); ShowUploadBar(); $.ajax({ url: "./events/myEvents.php", type: "POST", async: true, data: { "userID":userID, "event": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#userGuide").click(function(){ var userID = $("#userID").val(); ShowUploadBar(); $.ajax({ url: "./userguide/user_guide.php", type: "POST", async: true, data: { "userID":userID, "ug": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#adminGuide").click(function(){ var userID = $("#userID").val(); ShowUploadBar(); $.ajax({ url: "./userguide/admin_guide.php", type: "POST", async: true, data: { "userID":userID, "ug": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#ahgCOC").click(function(){ var userID = $("#userID").val(); ShowUploadBar(); $.ajax({ url: "./userguide/ahgCOC.php", type: "POST", async: true, data: { "userID":userID, "ug": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); $("#carModel").click(function(){ //alert('test'); ShowUploadBar(); $.ajax({ url: "./pages/carModels.php", type: "POST", async: true, data: { "crd": 1 }, success: function(d){ $("#content").html(d); ShowUploadBar(); } }) }); function clickProfileImage(){ document.getElementById("ProfileImage").click(); } </script> </body> </html>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings