5 - Enrollments Page
This Enrollments Dashboard displays a table with information about each enrollment, including enrollment ID, student name, course name, enrollment date, enrollment status, and action buttons for editing, deleting, and marking.
Users can add new enrollments, edit existing enrollments, and remove enrollments using modal forms.
It displays total enrollments, active enrollments, and inactive enrollments in separate cards.
Add Enrollment.
To add a new course, click on the 'Add New Enrollment' button.
A modal will appear to collect the enrollment's information.
If the insertion is successful, a message will appear to notify the user using PHP cookies.
Enrollement Already Exists:
Before adding a new enrollment, we will verify that an active enrollment for the same student and course does not already exist in the records.
Edit Enrollement.
To edit a enrollment, click the edit button in the table corresponding to the enrollment you want to edit.
A modal will appear to collect the new enrollment's information.
If the update is successful, a message will appear to notify the user using PHP cookies.
Remove Enrollement.
Like for the edit, click the 'Delete' button to remove an enrollment.
Add Enrollement Mark.
To set a mark for an enrollment, click on the 'Set Mark' button in the table.
If an enrollment already has a mark, the 'Set Mark' button will be disabled.
Search Enrollement.
To search for enrollments, you can utilize the search bar.
Users can search by status (acive, inactive), a specific value, or both.
6 - Marks Page
This Marks Dashboard displays a table with information about each Mark.
Users can edit existing marks, and remove marks using modal forms.
It also display statistics such as the highest mark, lowest mark, and average mark based on the retrieved marks data.
To add a mark you can use the Student, Course, Enrollment Dashboard.
Edit Mark.
To edit a mark, click the edit button in the table corresponding to the mark you want to edit.
A modal will appear to collect the information for the new mark.
Users can only edit the mark value, status, and remark; the enrollment ID remains the same
Remove Mark.
To remove a mark, simply click the 'Delete' button in the table next to the mark you wish to remove.
Search Mark.
You can search by status (pass or fail) or by a specific value.
8 - Users Page
Users are redirected to this page only if they are logged in as an administrator (admin role).
All users stored in the database are retrieved and displayed in a table format.
Administrators can add new users by filling out a form.
They need to provide the user's name, email, phone number, password, confirm password, and user type (admin or user).
When adding or editing a user, the system checks if the entered password and confirm password fields match before submission.
Administrators cannot add or edit a user email address with one that already exists.
Existing users can be edited by clicking the "Edit" button next to their details in the table.
This opens a form with pre-filled fields, allowing administrators to modify the user's information.
Remove User:
Administrators can remove users by clicking the "Delete" button next to their details in the table.
A confirmation modal appears before deleting the user.
Users can search for specific users by name and user type (admin or user).
The search results are displayed dynamically on the page.