⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.37
Server IP:
15.235.14.176
Server:
Linux server2.ihostph.com 4.18.0-553.30.1.el8_10.x86_64 #1 SMP Tue Nov 26 02:30:26 EST 2024 x86_64
Server Software:
Apache
PHP Version:
8.1.34
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
gracious
/
faithforcehr.graciousphils.com
/
View File Name :
requestlist.php
<?php error_reporting(0); include('includes/config.php'); if(strlen($_SESSION['alogin'])==0) { header('location:index.php'); } else{ ?> <!DOCTYPE html> <html lang="en"> <head> <!-- Title --> <title>List of Request</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/> <meta charset="UTF-8"> <meta name="description" content="Responsive Admin Dashboard Template" /> <meta name="keywords" content="admin,dashboard" /> <meta name="author" content="Steelcoders" /> <!-- Styles --> <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.1.3/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdn.datatables.net/2.3.2/css/dataTables.dataTables.css" rel="stylesheet"> <link href="https://cdn.datatables.net/fixedcolumns/5.0.4/css/fixedColumns.dataTables.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/@sweetalert2/theme-dark@4/dark.css" rel="stylesheet"> <link rel="stylesheet" href="https://cdn.datatables.net/fixedcolumns/5.0.4/css/fixedColumns.dataTables.min.css"> <link rel = "stylesheet" type = "text/css" href = "https://cdn.datatables.net/1.13.7/css/jquery.dataTables.min.css"> <link rel = "stylesheet" type = "text/css" href = "https://cdn.datatables.net/buttons/2.4.2/css/buttons.dataTables.min.css"> <link rel="stylesheet" href="https://cdn.datatables.net/searchbuilder/1.7.0/css/searchBuilder.dataTables.min.css"> <link rel = "stylesheet" type = "text/css" href = "https://cdn.datatables.net/datetime/1.5.1/css/dataTables.dateTime.min.css"> <link rel="stylesheet" type="text/css" href=" https://cdn.datatables.net/colreorder/1.7.0/css/colReorder.dataTables.min.css"/> <link rel="stylesheet" type="text/css" href="css/data_table.css"/> <style> .table-active { background-color: #ffc107 !important; color: #000 !important; } </style> </head> <body class="bg-dark"> <?php include('header.php'); ?> <div class="container-fluid mt-3"> <div class="row"> <div class="col-md-8"> <div class="card bg-primary"> <div class="card-header bg-primary"> </div> <div class="card-body bg-primary"> <div class="table-responsive"> <?php include('requestlist_ext/request_table_ext.php'); ?> </div> </div> </div> </div> <div class="col-md-4"> <div class="card bg-primary"> <div class="card-header bg-primary"> <small class="text-warning">Ticket #:</small> <span class="badge bg-warning" id="ticketnum"></span> </div> <div class="card-body bg-primary"> <div class="row"> <div class="col-md-3"> <div class="form-floating mb-2"> <input type="text" name="requestid" id="requestid" class="form-control bg-dark text-white" placeholder="Request ID" readonly> <label class="form-label text-warning" for="requestid">Request ID</label> </div> </div> <div class="col-md-3"> <div class="form-floating mb-2"> <input type="text" name="biocode" id="biocode" class="form-control bg-dark text-white" placeholder="Biocode" readonly> <label class="form-label text-warning" for="biocode">Biocode</label> </div> </div> <div class="col-md-6"> <div class="form-floating mb-2"> <input type="text" name="dateofrequest" id="dateofrequest" class="form-control bg-dark text-white" placeholder="Request Remarks" readonly> <label class="form-label text-warning" for="dateofrequest">Date Request</label> </div> </div> <div class="col-md-6"> <div class="form-floating mb-2"> <input type="text" name="category" id="category" class="form-control bg-dark text-white" placeholder="Request Category" readonly> <label class="form-label text-warning" for="category">Request Category</label> </div> </div> <div class="col-md-6"> <div class="form-floating mb-2"> <input type="text" name="subcategory" id="subcategory" class="form-control bg-dark text-white" placeholder="Category Information" readonly> <label class="form-label text-warning" for="subcategory">Category Information</label> </div> </div> <div class="col-md-12"> <div class="form-floating mb-2"> <input type="text" name="current" id="current" class="form-control bg-dark text-white" placeholder="Current Information" readonly> <label class="form-label text-warning" for="current">Current Information</label> </div> </div> <div class="col-md-12"> <div class="form-floating mb-2"> <input type="text" name="requestednew" id="requestednew" class="form-control bg-dark text-white" placeholder="Requested New Information" readonly> <label class="form-label text-warning" for="requestednew">Requested New Information</label> </div> </div> <div class="col-md-12"> <div class="form-floating mb-2"> <input type="text" name="requestremarks" id="requestremarks" class="form-control bg-dark text-white" placeholder="Request Remarks" readonly> <label class="form-label text-warning" for="requestremarks">Request Remarks</label> </div> </div> </div> </div> <div class="card-header bg-primary mt-2 text-warning"> <small>Change Details Here</small> </div> <div class="card-body bg-primary"> <div class="row"> <div class="col-md-6"> <div class="form-floating mb-2"> <select id="newcategory" name="newcategory" class="form-select bg-dark text-white"> <option value="Personal">Personal Information</option> <option value="Education">Education Information</option> <option value="Family">Family Information</option> <option value="Government">Government Information</option> </select> <label class="form-label text-warning" for="newcategory">Select Category</label> </div> </div> <div class="col-md-6"> <div class="form-floating mb-2"> <select id="newsubcategory" name="newsubcategory" class="form-select bg-dark text-white"> <!-- Will be populated dynamically --> </select> <label class="form-label text-warning" for="newsubcategory">Select Subcategory</label> </div> </div> <div class="col-md-6"> <div class="form-floating mb-2"> <select id="typeSelect" class="form-select bg-dark text-white"> <option selected>Choose type</option> <option value="date">Date</option> <option value="text">Text</option> <option value="number">Number (Max 11)</option> </select> <label class="form-label text-warning" for="typeSelect">Select a type</label> </div> </div> <div class="col-md-6"> <div class="form-floating mb-2"> <input type="text" name="thisvalue" id="thisvalue" class="form-control bg-dark text-white"> <label class="form-label text-warning" for="thisvalue">Place the new details here</label> </div> </div> <div class="col-md-6"> <button type="button" class="btn btn-warning form-control" id="savechanges" name="savechanges">Update Information</button> </div> <div class="col-md-6"> <button type="button" class="btn btn-danger form-control" id="deleterequest" name="deleterequest">Delete Request</button> </div> </div> </div> </div> </div> </div> </div> <script src = "https://code.jquery.com/jquery-3.7.1.js"></script> <script src = "https://cdn.datatables.net/2.3.2/js/dataTables.js"></script> <script src = "https://cdn.datatables.net/fixedcolumns/5.0.4/js/dataTables.fixedColumns.js"></script> <script src = "https://cdn.datatables.net/fixedcolumns/5.0.4/js/fixedColumns.dataTables.js"></script> <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.js"></script> <script src="https://cdn.datatables.net/1.13.7/js/jquery.dataTables.min.js"></script> <script src="https://cdn.datatables.net/buttons/2.4.2/js/dataTables.buttons.min.js"></script> <script src="https://cdn.datatables.net/searchbuilder/1.7.0/js/dataTables.searchBuilder.min.js"></script> <script src="https://cdn.datatables.net/datetime/1.5.1/js/dataTables.dateTime.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script> <script src="https://cdn.datatables.net/buttons/2.4.2/js/buttons.html5.min.js"></script> <script src="https://cdn.datatables.net/buttons/2.4.2/js/buttons.print.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script> <script src="https://cdn.datatables.net/buttons/2.4.2/js/buttons.colVis.min.js"></script> <script src="requestlist_js/request_data.js"></script> <script src="requestlist_js/delete_request.js"></script> <script src="requestlist_js/approve_request.js"></script> <script type="text/javascript"> // $('select[id=company]').change(function(){ // $('input[id=comp]').val($('option:selected',this).text()); // }); // $('select[id=comp_area]').change(function(){ // $('input[id=area]').val($('option:selected',this).text()); // }); // $('select[id=department]').change(function(){ // $('input[id=dept]').val($('option:selected',this).text()); // }); // $('select[id=poslevel]').change(function(){ // $('input[id=position]').val($('option:selected',this).text()); // }); // </script> // <script> // // Function to fetch fromdate and todate values and set them in textInput[] and textInput2[] // function convertDatesToText() { // // Get the fromdate input field // const fromdateInput = document.getElementById("fromdate"); // // Get the todate input field // const todateInput = document.getElementById("todate"); // // Get all text input fields with the name "textInput[]" // const textInputs = document.querySelectorAll('input[name="textInput[]"]'); // // Get all text input fields with the name "textInput2[]" // const textInputs2 = document.querySelectorAll('input[name="textInput2[]"]'); // // Get the values from the fromdate and todate input fields // const fromdateValue = fromdateInput.value; // const todateValue = todateInput.value; // // Set the value of each text input field in textInput[] with the fromdate value // textInputs.forEach(textInput => { // textInput.value = fromdateValue; // }); // // Set the value of each text input field in textInput2[] with the todate value // textInputs2.forEach(textInput2 => { // textInput2.value = todateValue; // }); // } // // Attach an event listener to both fromdate and todate input fields // const fromdateInput = document.getElementById("fromdate"); // const todateInput = document.getElementById("todate"); // fromdateInput.addEventListener("change", convertDatesToText); // todateInput.addEventListener("change", convertDatesToText); </script> </body> </html> <?php } ?>