RESULTS CONFIGURATION DISPLAY FIX
Date: 2026-10-02

What was fixed
- The View Results / full report table now loads the same Result Configuration used by the teacher score-entry page.
- Term-result columns are no longer hard-coded to CA / EXAM / TOTAL.
- Enabled teacher input fields are shown using the configured labels and precision.
- ST1 / ST2 / CAT are shown as calculated output columns when formulas are configured, matching teacher input behavior.
- TOTAL, grades, remarks, averages, positions and displayed marks use the configured result calculation and grade bands for term results.
- The correct Secondary / Primary / Play configuration is selected from the chosen class.
- FCA and cumulative layouts remain separate so their existing special reports are not broken.
- The same results-page behavior was updated for Admin, Principal, HOS, Vice Principal and the shared Results page.

Backend check
- No backend change was required for this fix. The current results.php already returns wk1-wk4, ca1, wk6-wk9, ca2, st1, st2, cat, exam, pl, total and grade.
