UCBSMS

U-CBSMS v2 — Uganda Competency-Based School Management System

A clean, modern, modular web-based system for Ugandan secondary schools following the NCDC Competency-Based Curriculum (CBC).


Table of Contents

  1. System Overview
  2. Folder Structure
  3. Installation (XAMPP)
  4. Default Login Accounts
  5. User Roles & Access
  6. Core Modules
  7. Report Card
  8. CBC Grading System
  9. Bulk Operations
  10. Navigation Guide
  11. Troubleshooting

System Overview

U-CBSMS v2 manages the full academic lifecycle of a Ugandan secondary school:

Tech Stack

| Layer | Technology | |——-|———–| | Backend | PHP 7.4+ | | Database | MySQL 5.7+ / MariaDB 10.4+ | | Frontend | Bootstrap 5, DataTables, Select2 | | Server | Apache (XAMPP) |


Folder Structure

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

Installation (XAMPP)

Step 1 — Copy files

Copy the entire UCBSMS/ folder to:
  Windows:  C:\xampp\htdocs\UCBSMS\
  Linux:    /opt/lampp/htdocs/UCBSMS/

Step 2 — Create the database

  1. Open your browser → http://localhost/phpmyadmin
  2. Click New → name it ucbsms → click Create
  3. Select the ucbsms database → click Import
  4. Choose database/schema.sql → click Go

Step 3 — Configure the site URL

Open config/config.php and update:

define('SITE_URL', 'http://localhost/UCBSMS');

If your folder is named differently, change UCBSMS to match.

Step 4 — Set folder permissions (Linux only)

chmod -R 755 /opt/lampp/htdocs/UCBSMS/
chmod -R 777 /opt/lampp/htdocs/UCBSMS/public/assets/uploads/

Step 5 — Visit the site

Open: http://localhost/UCBSMS/login.php


Default Login Accounts

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

User Roles & Access

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

Core Modules

Academic Management

Assessment

Report Cards

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”


CBC Grading System

8-Level Grade Scale

| 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 |

Identifier (0–3)

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.


Bulk Operations

Bulk Student Import (CSV)

  1. Go to Students → Import Excel
  2. Click Download Template — this gives you a CSV with the correct column headers
  3. Fill in the CSV with your students (one per row)
  4. Upload the file — the system validates each row and shows a per-row import log

Required columns: first_name, last_name, gender
Optional: date_of_birth, class_name, stream_code, index_number, is_sne

Batch Report Card Printing

  1. Go to Reports → Report Cards
  2. Select a term and class (optionally filter by stream)
  3. Click Print All Report Cards — opens a print-ready page with every student’s card separated by page breaks

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.


Troubleshooting

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.


Security Notes


Built for Uganda Ministry of Education & Sports — NCDC Competency-Based Curriculum
© 2026 U-CBSMS. For support, contact your system administrator.