ROCKVIEW SLPS — CAMPUS DIRECTOR STUDENT MANAGEMENT V19

Purpose
Adds a dedicated, read-only Student Management workspace for Campus Directors. It does not expose the existing Staff Student Management editor.

Permission
Staff grants the existing catalogue key: manage-all-students.
The shared Campus Director registry maps this key to the dedicated route:
campus-director-students.

Scope and security
- API authenticates the current user and requires role campus_director.
- API checks the active manage-all-students module grant through the shared alias mapping.
- Campus IDs are derived server-side from active campus_director_access assignments. No campus ID supplied by the browser is trusted for authorization.
- Every student list, statistic, and department filter query is scoped with students.campus_id IN the assigned campus IDs.
- GET only. POST and other methods are rejected.
- No NRC/passport/identity_number, account activation, blocking, editing, or deletion actions are exposed.
- Search, department, year, status and pagination operate only within the assigned campus scope.
- Existing Staff/HOD Student Management page and API remain unchanged.

Workspace features
- Total, active, inactive and deferred student counts.
- Search by name, student number or email.
- Department, year-of-study and status filters.
- Paginated student directory.
- Read-only student profile details.

Files in this package (cumulative source + V16 + V17 + V19)
slps/shared/lib/campus_director_access.php
slps/shared/views/module_shell.php
slps/shared/views/modules/campus-director-students.php
slps/shared/api/campus_director_students.php
slps/shared/views/campus_director_students_workspace.php
slps/shared/js/campus-director-students.js
slps/shared/css/campus-director-students.css
slps/docs/CAMPUS_DIRECTOR_STUDENT_MANAGEMENT_V19.txt

Installation
1. Back up the current SLPS files and database.
2. Upload the files in this package to the exact paths, preserving folder structure and overwriting matching files.
3. No database migration is required; this uses the existing students, users, departments, campuses, campus_director_access and campus_director_module_grants tables.
4. In Staff > Campus Director Access, grant Student Management (manage-all-students) to the intended Director and save.
5. Sign out and sign back in as Campus Director; hard-refresh the browser.
6. Open Student Management and test search, filters, pagination and student details.

Validation
Local PHP syntax, JavaScript syntax and ZIP integrity checks are performed. Live DB/browser integration testing has not been performed.
