/
home
/
techb158
/
workloadmatch.com
/
workloadmatch.com
/
BackUp
/
Manager
/
/home/techb158/workloadmatch.com/workloadmatch.com/BackUp/Manager
mkdir
upload
Name
Size
Mode
Actions
core/
-
0755
rm
css/
-
0755
rm
data/
-
0755
rm
fonts/
-
0755
rm
Inc/
-
0755
rm
js/
-
0755
rm
php/
-
0755
rm
accesscontrol.php
16039
0644
edit
dl
rm
AddClient.php
3930
0644
edit
dl
rm
addcourse.php
17736
0644
edit
dl
rm
addcoursesession.php
20528
0644
edit
dl
rm
addcoursetime.php
17305
0644
edit
dl
rm
addgroup - Copy.php
21212
0644
edit
dl
rm
addgroup.php
22999
0644
edit
dl
rm
addgroup1.php
20667
0644
edit
dl
rm
addholiday.php
18019
0644
edit
dl
rm
addmanager.php
18765
0644
edit
dl
rm
addremediation.php
17877
0644
edit
dl
rm
addretake.php
21914
0644
edit
dl
rm
adduser.php
30079
0644
edit
dl
rm
adduser1.php
23527
0644
edit
dl
rm
Add_Course_Session.php
6529
0644
edit
dl
rm
add_event.php
1960
0644
edit
dl
rm
Add_Teacher_Unavailability.php
1746
0644
edit
dl
rm
adminreports.php
16219
0644
edit
dl
rm
AI_Generate_Schedule - Copy.php
12217
0644
edit
dl
rm
AI_Generate_Schedule.php
10731
0644
edit
dl
rm
ajax_course_group_Backup.php
17270
0644
edit
dl
rm
ajax_course_group_Backup_1.php
18742
0644
edit
dl
rm
ajax_fetch_schedule.php
3760
0644
edit
dl
rm
ajax_get_group_slots.php
872
0644
edit
dl
rm
ajax_replace_saturday -Completed.php
18739
0644
edit
dl
rm
ajax_replace_saturday - Copy (2).php
18739
0644
edit
dl
rm
ajax_replace_saturday - Copy (3).php
26554
0644
edit
dl
rm
ajax_replace_saturday - Copy (4).php
26615
0644
edit
dl
rm
ajax_replace_saturday - Copy (5).php
28374
0644
edit
dl
rm
ajax_replace_saturday - Copy.php
13452
0644
edit
dl
rm
ajax_replace_saturday - Good.php
17270
0644
edit
dl
rm
ajax_replace_saturday.php
30779
0644
edit
dl
rm
ajax_swap_courses.php
4279
0644
edit
dl
rm
assign_course_group-BackUp.php
21331
0644
edit
dl
rm
assign_course_group - Copy (BackUp).php
18315
0644
edit
dl
rm
assign_course_group - Copy.php
21318
0644
edit
dl
rm
assign_course_group.php
18315
0644
edit
dl
rm
assign_course_group1.php
20962
0644
edit
dl
rm
Assign_Course_Report.php
1375
0644
edit
dl
rm
assign_teacher_manual-1.php
21095
0644
edit
dl
rm
assign_teacher_manual - Copy (2).php
22328
0644
edit
dl
rm
assign_teacher_manual - Copy.php
22388
0644
edit
dl
rm
assign_teacher_manual-Not work.php
20585
0644
edit
dl
rm
assign_teacher_manual.php
22328
0644
edit
dl
rm
assign_teacher_manual_force_conflicts.php
22359
0644
edit
dl
rm
availableteacherreport.php
13718
0644
edit
dl
rm
Available_Teacher_Report - Copy.php
2236
0644
edit
dl
rm
Available_Teacher_Report.php
7691
0644
edit
dl
rm
brokerreports.php
16318
0644
edit
dl
rm
calendar - Copy (2).php
16891
0644
edit
dl
rm
calendar - Copy.php
23193
0644
edit
dl
rm
calendar.php
30653
0644
edit
dl
rm
changestatus.php
865
0644
edit
dl
rm
Check_if_Teacher_Report.php
1587
0644
edit
dl
rm
complete_schedule_report_by_teacher.php
19312
0644
edit
dl
rm
courseflagtime.php
3411
0644
edit
dl
rm
Create_Group_Schedule_Algorithm.php
3828
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (2).php
41412
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (3).php
46352
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (4).php
53569
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (5).php
67956
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (6).php
71134
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (7).php
72529
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (8).php
73084
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (9).php
73577
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (10).php
76505
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (11).php
76764
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (12).php
86324
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (13).php
83133
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (14).php
87274
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (get info only).php
69747
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy (with 2 course 2nd SPECIAL ).php
82314
0644
edit
dl
rm
Create_Schedule_Algorithm - Copy.php
40581
0644
edit
dl
rm
Create_Schedule_Algorithm.php
88276
0644
edit
dl
rm
Create_Schedule_Algorithm_1.php
41412
0644
edit
dl
rm
Create_Schedule_Algorithm_2.php
76505
0644
edit
dl
rm
Create_Schedule_Algorithm_2_combined.php
89764
0644
edit
dl
rm
Create_Schedule_Algorithm_2_combined_both_slots.php
91932
0644
edit
dl
rm
Create_Schedule_Algorithm_2_fixed.php
76829
0644
edit
dl
rm
Create_Schedule_Algorithm_3.php
87274
0644
edit
dl
rm
Create_Schedule_Algorithm_4.php
87274
0644
edit
dl
rm
dashboard-BackUp.php
18806
0644
edit
dl
rm
dashboard.php
22507
0644
edit
dl
rm
deleteschedulefromgroup.php
16819
0644
edit
dl
rm
delete_course.php
580
0644
edit
dl
rm
delete_course_from_teacher.php
4990
0644
edit
dl
rm
delete_course_from_teacher_backup.php
3094
0644
edit
dl
rm
delete_event.php
1212
0644
edit
dl
rm
delete_group.php
1858
0644
edit
dl
rm
delete_holiday.php
715
0644
edit
dl
rm
delete_retake.php
1276
0644
edit
dl
rm
delete_schedule_from_group-1.php
1870
0644
edit
dl
rm
delete_schedule_from_group.php
1850
0644
edit
dl
rm
delete_teacher_level.php
798
0644
edit
dl
rm
delete_teacher_unavailability.php
1347
0644
edit
dl
rm
delete_timeslot.php
597
0644
edit
dl
rm
display_schedule-1.php
18846
0644
edit
dl
rm
display_schedule.php
18846
0644
edit
dl
rm
do_remove_saturday.php
6170
0644
edit
dl
rm
edit_event.php
1612
0644
edit
dl
rm
error_log
74070
0644
edit
dl
rm
examschedulereport.php
16267
0644
edit
dl
rm
Exam_Schedule_Report.php
2677
0644
edit
dl
rm
export_absences.php
1221
0644
edit
dl
rm
fetch_all_scheduled_courses.php
6318
0644
edit
dl
rm
fetch_courses - BackUp.php
9711
0644
edit
dl
rm
fetch_courses - Copy.php
7719
0644
edit
dl
rm
fetch_courses.php
9167
0644
edit
dl
rm
fetch_courses_for_program.php
788
0644
edit
dl
rm
fetch_courses_for_program_by_schedule - Copy.php
2297
0644
edit
dl
rm
fetch_courses_for_program_by_schedule.php
3935
0644
edit
dl
rm
fetch_courses_teacher_preference.php
3852
0644
edit
dl
rm
fetch_course_for_added_group.php
897
0644
edit
dl
rm
fetch_course_hours.php
691
0644
edit
dl
rm
fetch_disabled_dates.php
518
0644
edit
dl
rm
fetch_events.php
975
0644
edit
dl
rm
fetch_exist_dates.php
1099
0644
edit
dl
rm
fetch_groups_exist_in_schedule.php
956
0644
edit
dl
rm
fetch_groups_for_program.php
843
0644
edit
dl
rm
fetch_group_timeslot.php
847
0644
edit
dl
rm
fetch_reserve_courses.php
7429
0644
edit
dl
rm
fetch_retake_courses.php
923
0644
edit
dl
rm
fetch_scheduled_courses.php
2178
0644
edit
dl
rm
fetch_schedule_report_by_group.php
5440
0644
edit
dl
rm
fetch_teachers_by_group.php
4421
0644
edit
dl
rm
fetch_teachers_by_program.php
1821
0644
edit
dl
rm
fetch_teachers_for_group.php
3170
0644
edit
dl
rm
fetch_teacher_assignment.php
24776
0644
edit
dl
rm
fetch_teacher_by_course.php
3880
0644
edit
dl
rm
fetch_teacher_conflicts.php
5682
0644
edit
dl
rm
fetch_teacher_conflicts_only.php
7665
0644
edit
dl
rm
fetch_teacher_conflicts_only_force_conflicts.php
7114
0644
edit
dl
rm
fetch_teacher_conflicts_showonly.php
10447
0644
edit
dl
rm
fetch_teacher_load.php
1482
0644
edit
dl
rm
fetch_teacher_prefrence_courses_accounting.php
1606
0644
edit
dl
rm
find_replacement-1.php
16075
0644
edit
dl
rm
find_replacement.php
18161
0644
edit
dl
rm
followup.php
16160
0644
edit
dl
rm
Generate Group Schedule.php
16987
0644
edit
dl
rm
Generate Group Schedule 1.php
18121
0644
edit
dl
rm
generateschedule.php
15706
0644
edit
dl
rm
Generate_Schedule.php
33620
0644
edit
dl
rm
generate_schedule_handler.php
7095
0644
edit
dl
rm
Generate_Schedule_Script.php
29731
0644
edit
dl
rm
getlang.php
326
0644
edit
dl
rm
getrefer.php
4349
0644
edit
dl
rm
getstatus.php
1260
0644
edit
dl
rm
get_groups_by_program.php
608
0644
edit
dl
rm
get_schedule_ai-1.php
37755
0644
edit
dl
rm
get_schedule_ai - Copy.php
36459
0644
edit
dl
rm
get_schedule_ai.php
36855
0644
edit
dl
rm
get_schedule_report.php
2393
0644
edit
dl
rm
group_schedule_form - Copy.php
16994
0644
edit
dl
rm
group_schedule_form.php
16994
0644
edit
dl
rm
main-header-inc.php
1196
0644
edit
dl
rm
main-header.php
16671
0644
edit
dl
rm
managecategory.php
9233
0644
edit
dl
rm
managerreports.php
25056
0644
edit
dl
rm
Preference_Accounting.php
22503
0644
edit
dl
rm
profile.php
20680
0644
edit
dl
rm
reference_list.php
8207
0644
edit
dl
rm
remove_saturday_course.php
19503
0644
edit
dl
rm
report_absence.php
19287
0644
edit
dl
rm
report_absence_1.php
6160
0644
edit
dl
rm
reserve_course.php
18957
0644
edit
dl
rm
rewrite_ajax_replace_saturday.php
12800
0644
edit
dl
rm
rewrite_Create_Schedule_Algorithm.php
88318
0644
edit
dl
rm
rewrite_Create_Schedule_Algorithm_2.php
88900
0644
edit
dl
rm
save_schedule.php
2970
0644
edit
dl
rm
save_schedule_group_course.php
25367
0644
edit
dl
rm
schedulereportbygroup.php
17731
0644
edit
dl
rm
schedulereportbyteacher.php
19111
0644
edit
dl
rm
scheduleteacherbygroupreport - Copy.php
31986
0644
edit
dl
rm
scheduleteacherbygroupreport.php
36556
0644
edit
dl
rm
scheduleteacherreport.php
28150
0644
edit
dl
rm
schedule_report.php
17664
0644
edit
dl
rm
Schedule_Report_by_Group.php
3647
0644
edit
dl
rm
Schedule_Report_by_Teacher.php
92433
0644
edit
dl
rm
selectuser.php
1172
0644
edit
dl
rm
swapcourses.php
19469
0644
edit
dl
rm
teacher_preference.php
18182
0644
edit
dl
rm
teacher_preference_by_course.php
19244
0644
edit
dl
rm
teacher_unavailability.php
17835
0644
edit
dl
rm
test.php
13895
0644
edit
dl
rm
test1.php
21837
0644
edit
dl
rm
transfer_reference.php
27288
0644
edit
dl
rm
unassigncoursereport.php
16029
0644
edit
dl
rm
unassign_course.php
19011
0644
edit
dl
rm
Unassign_Course_Report.php
1697
0644
edit
dl
rm
unscheduledgroupreport.php
15675
0644
edit
dl
rm
Unscheduled_Group_Report.php
2007
0644
edit
dl
rm
updateclient.php
14765
0644
edit
dl
rm
updatecourse.php
21626
0644
edit
dl
rm
updatecoursesessionhours.php
18197
0644
edit
dl
rm
updatecoursetime.php
21831
0644
edit
dl
rm
updategroup - Copy.php
24534
0644
edit
dl
rm
updategroup.php
18001
0644
edit
dl
rm
updateholiday.php
22493
0644
edit
dl
rm
updateteacherlevel.php
24532
0644
edit
dl
rm
updateteacherunavailability.php
14184
0644
edit
dl
rm
UpdateUser.php
18214
0644
edit
dl
rm
Update_Course_Hours.php
2135
0644
edit
dl
rm
Update_Follow_Up.php
4618
0644
edit
dl
rm
update_reserve_course.php
1934
0644
edit
dl
rm
update_teacher_level
2508
0644
edit
dl
rm
update_teacher_level.php
2430
0644
edit
dl
rm
useraccesslist.php
12875
0644
edit
dl
rm
users.php
9049
0644
edit
dl
rm
view_swap_log.php
894
0644
edit
dl
rm
Edit:
/home/techb158/workloadmatch.com/workloadmatch.com/BackUp/Manager/Exam_Schedule_Report.php
(2677B)
<?php include_once '../includes/db_connect.php'; include_once '../includes/functions.php'; sec_session_start(); if (isset($_POST["Program_ID"])) { $Program_ID = (int)$_POST['Program_ID']; if ($Program_ID <= 0) { die("Invalid Program."); } // Final optimized query using Time_Slot_ID linked to Group_Slot_ID $query = " SELECT p.Program_Name, g.Group_Name, c.Course_Name, tp.First_Name, tp.Last_Name, gsm.Time_Slot AS Slot_Label, s.End_Date AS Exam_Date, s.Start_Time, s.End_Time FROM course_group_schedule_main s JOIN Programs p ON s.Program_ID = p.Program_ID JOIN manager_group_name g ON s.Group_ID = g.Group_ID JOIN Courses c ON s.Course_ID = c.Course_ID LEFT JOIN teacher_course_assignments tca ON s.Schedule_ID = tca.Schedule_ID LEFT JOIN teacher_profile tp ON tca.Teacher_ID = tp.Teacher_ID LEFT JOIN Group_Slot_Mapping gsm ON gsm.Group_Slot_ID = s.Time_Slot_ID WHERE s.Program_ID = ? ORDER BY s.End_Date, gsm.Time_Slot "; $stmt = $mysqli->prepare($query); if (!$stmt) { die("Prepare failed: " . $mysqli->error); } $stmt->bind_param("i", $Program_ID); $stmt->execute(); $result = $stmt->get_result(); /* echo "<table class='table table-bordered table-striped'>"; echo "<thead> <tr> <th>Program Name</th> <th>Group Name</th> <th>Course Name</th> <th>Teacher Name</th> <th>Time Slot</th> <th>Exam Time</th> <th>Exam Day</th> </tr> </thead><tbody>"; */ while ($row = $result->fetch_assoc()) { $teacherName = ($row['First_Name'] && $row['Last_Name']) ? htmlspecialchars($row['First_Name'] . ' ' . $row['Last_Name']) : '-'; $examTime = ($row['Start_Time'] && $row['End_Time']) ? date("h:i A", strtotime($row['Start_Time'])) . ' - ' . date("h:i A", strtotime($row['End_Time'])) : '-'; echo "<tr> <td>" . htmlspecialchars($row['Program_Name']) . "</td> <td>" . htmlspecialchars($row['Group_Name']) . "</td> <td>" . htmlspecialchars($row['Course_Name']) . "</td> <td>" . $teacherName . "</td> <td>" . htmlspecialchars($row['Slot_Label']) . "</td> <td>" . $examTime . "</td> <td>" . htmlspecialchars($row['Exam_Date']) . "</td> </tr>"; } /* echo "</tbody></table>"; */ $stmt->close(); } ?>
Save
cmd:
run