[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: school-admin.php
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Schools List</title> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 20px; background: #f9fafb; } h2 { text-align: center; margin-bottom: 10px; color: #1e293b; } .search-container { max-width: 900px; margin: 0 auto 15px auto; text-align: right; } .search-container input { padding: 10px 12px; width: 220px; max-width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; } .table-container { max-width: 900px; margin: auto; overflow-x: auto; background: white; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); padding: 10px; } table { width: 100%; border-collapse: collapse; min-width: 400px; } thead { background: #1e40af; color: white; } th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #e2e8f0; } tr:hover { background: #f1f5f9; } .school-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: #f1f5f9; } </style> </head> <body> <h2>IT/SYSTEMS ADMINISTRATORS CONTACT</h2> <div class="search-container"> <input type="text" id="searchInput" placeholder="Search school..."> </div> <div class="table-container"> <table id="schoolTable"> <thead> <tr> <th>Logo</th> <th>School Name</th> <th>Phone Number</th> </tr> </thead> <tbody></tbody> </table> </div> <script> function loadSchools() { $.getJSON('schools-data.php', function(data) { let rows = ''; data.forEach(function(school) { rows += ` <tr> <td>${school.logo ? `<img class="school-logo" src="uploads/${school.logo}" alt="Logo">` : '<span style="color:#94a3b8;">No Logo</span>'}</td> <td>${school.school_name}</td> <td>${school.phone_num}</td> </tr> `; }); $('#schoolTable tbody').html(rows); }); } function filterTable() { const filter = $('#searchInput').val().toLowerCase(); $('#schoolTable tbody tr').filter(function() { $(this).toggle($(this).find('td:nth-child(2)').text().toLowerCase().indexOf(filter) > -1); }); } $(document).ready(function() { loadSchools(); // Load data on page load $('#searchInput').on('keyup', filterTable); }); </script> </body> </html>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.8 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002