A clean, modern, modular web-based system for Ugandan secondary schools following the NCDC Competency-Based Curriculum (CBC).
U-CBSMS v2 manages the full academic lifecycle of a Ugandan secondary school:
| Layer | Technology | |——-|———–| | Backend | PHP 7.4+ | | Database | MySQL 5.7+ / MariaDB 10.4+ | | Frontend | Bootstrap 5, DataTables, Select2 | | Server | Apache (XAMPP) |
UCBSMS/
├── app/
│ ├── models/ # Database logic (PHP classes)
│ │ ├── AuthModel.php # Login, logout, session
│ │ ├── StudentModel.php # Student CRUD, import
│ │ └── MarksModel.php # Marks entry, grade calc, report data
│ └── views/
│ ├── layouts/
│ │ ├── main.php # Master page wrapper (sidebar + header)
│ │ └── sidebar.php # Role-based navigation sidebar
│ └── pages/
│ ├── academic/ # Subjects, Classes, Streams, Years, Terms
│ ├── assessment/ # Marks entry, structure, validation
│ ├── attendance/ # Take attendance, view records
│ ├── finance/ # Payments, fee structure, balances
│ ├── reports/ # Report cards, performance, batch print
│ ├── settings/ # Users, school info, system settings
│ ├── staff/ # Staff list, teacher assignments
│ └── students/ # List, add, edit, import
├── config/
│ ├── config.php # Constants, session_start, paths
│ ├── database.php # PDO connection + helper functions
│ ├── helpers.php # Utility functions (grade calc, flash, etc.)
│ └── bootstrap.php # Single include for every page
├── database/
│ └── schema.sql # Full database schema + sample data
├── public/
│ └── assets/
│ ├── css/app.css # All styles
│ ├── js/app.js # DataTables, grade preview, etc.
│ ├── images/ # Logos and static images
│ └── uploads/ # Student photos, school logos, reports
├── dashboard.php # Role-aware dashboard
├── login.php # Login page
├── logout.php # Session destroy + redirect
├── unauthorized.php # 403 page
├── .htaccess # Apache security rules
└── README.md # This file
Copy the entire UCBSMS/ folder to:
Windows: C:\xampp\htdocs\UCBSMS\
Linux: /opt/lampp/htdocs/UCBSMS/
http://localhost/phpmyadminucbsms → click Createucbsms database → click Importdatabase/schema.sql → click GoOpen config/config.php and update:
define('SITE_URL', 'http://localhost/UCBSMS');
If your folder is named differently, change UCBSMS to match.
chmod -R 755 /opt/lampp/htdocs/UCBSMS/
chmod -R 777 /opt/lampp/htdocs/UCBSMS/public/assets/uploads/
Open: http://localhost/UCBSMS/login.php
All passwords are:
password
Change them immediately after first login via Settings → Users.
| Username | Role | Access |
|---|---|---|
admin |
Super Admin | Full system access |
headteacher |
Head Teacher | Academic overview, approvals |
dos |
Director of Studies | Curriculum management |
teacher1 |
Class Teacher | Marks, attendance, class management |
bursar |
Bursar | Fee collection and finance |
okello.john |
Student | View own results and report card |
| Role | What they can do |
|---|---|
| super_admin | Everything — users, settings, all modules |
| head_teacher | Students, staff, reports, approvals, A-level oversight |
| deputy | Analytics, discipline, communications |
| dos | Subjects, strands, competencies, teacher assignments |
| class_teacher | Take attendance, enter marks, class reports |
| subject_teacher | Enter marks for their subjects only |
| exams_officer | Exam setup, marks validation, report card generation |
| bursar | Fee structures, payments, receipts |
| student | View own results, report card, attendance |
| parent | View child’s results, fees, attendance |
The report card matches the official NCDC format exactly (see PDF sample):
| Field | Source |
|---|---|
| Student bio (name, class, index no., DOB) | students table |
| Subject rows (A1, A2, X/20, X/80, X/100) | marks table (computed columns) |
| DES column | Grade label from 8-level scale |
| IDENT column | Identifier badge (0–3) |
| GRD column | Letter grade (A*–G) |
| Teacher initials | Entered during marks entry |
| C/Teacher comment | report_cards.class_teacher_comment |
| H/Teacher comment | report_cards.head_teacher_comment |
| Identifier legend | Built in from IDENTIFIERS constant |
| Next term date | terms.next_term_starts |
Print single: Reports → Report Cards → click the eye icon → Print button
Print batch: Reports → Report Cards → filter by class → “Print All Report Cards”
| Grade | Score Range | Meaning | |——-|————-|———| | A* | 90–100 | Outstanding | | A | 80–89 | Excellent | | B | 70–79 | Very Good | | C | 60–69 | Satisfactory | | D | 50–59 | Basic | | E | 40–49 | Elementary | | F | 30–39 | Below Standard | | G | 0–29 | Insufficient |
Based on the average of A1 + A2 continuous assessments:
| Identifier | Score Range | Achievement |
|---|---|---|
| 3 | 2.5–3.0 | Outstanding |
| 2 | 1.5–2.49 | Moderate |
| 1 | 0.9–1.49 | Basic |
| 0 | 0–0.89 | Insufficient |
Grades and identifiers are automatically computed by the database (stored generated columns) — you never enter them manually.
Required columns: first_name, last_name, gender
Optional: date_of_birth, class_name, stream_code, index_number, is_sne
The sidebar is role-based — each role only sees what they need.
Dashboard
├── Students → List, Add, Import
├── Academic → Subjects, Classes, Streams, Years, Terms
├── Assessment → Structure, Marks Entry, Validate
├── Reports → Report Cards, Performance, Mark Sheets
├── Attendance → Take Attendance, Records
├── Finance → Payments, Fee Structure, Balances, Receipts
├── Staff → Staff List, Teacher Assignments
├── Discipline → Behaviour Records, Clubs
└── System (super_admin only) → Users, School Info, Settings, Logs
There are no tabs — every section is its own page with a clean URL.
Login redirects back to login.php
→ Check that session_start() runs before any output. This is handled in config/config.php. Ensure no whitespace or BOM before <?php.
“Database connection error”
→ Confirm XAMPP MySQL is running. Check config/config.php — DB_NAME must be ucbsms.
Report card shows blank student info
→ Ensure the student has current_class_id and current_stream_id set. Go to Students → Edit Student.
Batch print shows empty pages
→ Marks have not been entered for those students for the selected term.
“Only CSV files are supported” on student import
→ Save your Excel file as CSV (File → Save As → CSV UTF-8) before uploading.
Images not showing
→ Confirm SITE_URL in config/config.php matches your XAMPP folder name exactly.
PASSWORD_BCRYPTconfig/ and database/ directories are blocked from direct browser access via .htaccesse() (htmlspecialchars) before outputBuilt for Uganda Ministry of Education & Sports — NCDC Competency-Based Curriculum
© 2026 U-CBSMS. For support, contact your system administrator.