X7ROOT File Manager
Current Path:
/home/u126090504/domains/sistsoro.com/public_html/admin
home
/
u126090504
/
domains
/
sistsoro.com
/
public_html
/
admin
/
📁
..
📄
achievers.php
(21.44 KB)
📄
achv_cat_manage.php
(7.99 KB)
📄
achv_edit.php
(9.58 KB)
📄
achv_list.php
(8.08 KB)
📄
achv_upload.php
(13.39 KB)
📄
admin-academic-calendar.php
(20.41 KB)
📄
admin-public-disclosure.php
(18.36 KB)
📄
admissions.php
(28.76 KB)
📄
admissions_error.log
(56 KB)
📁
assets
📄
banners.php
(9.78 KB)
📄
branding_settings.php
(5.93 KB)
📄
change_password.php
(3.01 KB)
📄
class_master.php
(4.32 KB)
📄
contacts.php
(3.79 KB)
📄
dashboard.php
(27.78 KB)
📄
downloads.php
(4.91 KB)
📄
edit_faculty.php
(6.85 KB)
📄
export_franchise.php
(930 B)
📄
faculty.php
(8.36 KB)
📄
fees_list.php
(8.48 KB)
📄
fees_upload.php
(6.19 KB)
📄
forgot_password.php
(6.39 KB)
📄
franchise.php
(7.28 KB)
📄
gallery.php
(3.08 KB)
📄
grievance-update.php
(1003 B)
📄
grievance-view.php
(8.51 KB)
📄
grievances.php
(9.55 KB)
📄
homework_add.php
(5.98 KB)
📄
homework_delete.php
(543 B)
📄
homework_edit.php
(9.39 KB)
📄
homework_list.php
(2.24 KB)
📁
img
📁
includes
📄
index.php
(82 B)
📄
login.php
(13.47 KB)
📄
logout.php
(102 B)
📄
manage_albums.php
(10.82 KB)
📄
manage_media.php
(11.77 KB)
📄
manage_photos.php
(6.35 KB)
📄
manage_videos.php
(18.38 KB)
📄
managing-committee.php
(13.64 KB)
📄
master_menu.php
(5.75 KB)
📄
master_menu_debug.php
(3.73 KB)
📄
new_password.php
(3.9 KB)
📄
non_academic_achievers.php
(21.2 KB)
📄
notice.php
(15.52 KB)
📄
notice_error.log
(38.45 KB)
📄
notices.php
(8.24 KB)
📄
payments.php
(14.96 KB)
📁
phpmailer
📄
popup.php
(14.07 KB)
📄
reset_password.php
(2.27 KB)
📄
section_master.php
(6.59 KB)
📄
sections_by_class.php
(346 B)
📄
secure_session.php
(1000 B)
📄
settings.php
(8.35 KB)
📄
student_photo_update.php
(1.8 KB)
📄
subject_master.php
(6.16 KB)
📄
submit-grievance.php
(4.97 KB)
📄
testimonials.php
(15.15 KB)
📄
update_status.php
(1.66 KB)
📄
upi_settings.php
(1.52 KB)
Editing: homework_list.php
<?php include 'secure_session.php'; include 'includes/auth.php'; require_once '../config.php'; include 'includes/header.php'; $date = $_GET['date'] ?? ''; $q = "SELECT h.*, c.name AS class_name, s.name AS section_name, sub.name AS subject_name FROM homework h JOIN classes c ON c.id=h.class_id JOIN subjects sub ON sub.id=h.subject_id LEFT JOIN sections s ON s.id=h.section_id WHERE h.status <> 'deleted' "; $params = []; if ($date) { $q .= " AND h.assign_date=? "; $params[]=$date; } $q .= " ORDER BY h.assign_date DESC, h.id DESC"; $stmt = $conn->prepare($q); if ($params) { $stmt->bind_param("s", $params[0]); } $stmt->execute(); $res = $stmt->get_result(); ?> <div class="container mt-4"> <h3>Homework List</h3> <form class="row g-2 mb-3"> <div class="col-auto"> <input type="date" name="date" class="form-control" value="<?= htmlspecialchars($date) ?>"> </div> <div class="col-auto"> <button class="btn btn-secondary">Filter</button> </div> </form> <table class="table table-striped"> <thead><tr> <th>Date</th><th>Class</th><th>Section</th><th>Subject</th><th>Title</th><th>File</th><th>Actions</th> </tr></thead> <tbody> <?php while($r=$res->fetch_assoc()): ?> <tr> <td><?= htmlspecialchars($r['assign_date']) ?></td> <td><?= htmlspecialchars($r['class_name']) ?></td> <td><?= htmlspecialchars($r['section_name'] ?? 'All') ?></td> <td><?= htmlspecialchars($r['subject_name']) ?></td> <td><?= htmlspecialchars($r['title']) ?></td> <td><?php if($r['file_path']): ?><a href="../<?= htmlspecialchars($r['file_path']) ?>" target="_blank">View</a><?php endif; ?></td> <td> <a class="btn btn-sm btn-primary" href="homework_edit.php?id=<?= $r['id'] ?>">Edit</a> <a class="btn btn-sm btn-warning" href="homework_archive.php?id=<?= $r['id'] ?>" onclick="return confirm('Archive this?')">Archive</a> <a class="btn btn-sm btn-danger" href="homework_delete.php?id=<?= $r['id'] ?>" onclick="return confirm('Delete permanently?')">Delete</a> </td> </tr> <?php endwhile; ?> </tbody> </table> </div> <?php include 'includes/footer.php'; ?>
Upload File
Create Folder