Check_Auth(); if ($_SESSION['Access_Level'] < 1) { header('Location: Voting_Screen.php'); exit; } $db = db(); // Fetch all completed elections $history = $db->query("SELECT * FROM Election_History ORDER BY Year DESC")->fetchAll(); // For each election, we might want to fetch more detailed stats if they were stored. // Since it's a history page, we'll mock some of the breakdown data if it's not in the DB, // or calculate it based on current voters if we assume the voter list represents the latest. // In a real system, these would be snapshots. ?> Election History | Online School Election System

Election History

Voter turnout and candidate results per election year

No Election History Found

Completed elections will appear here once they are finalized.

$item): ?>

School Year

Total Voters
100%
Have Voted
%
Did Not Vote
%

Voters by Track / Strand

STEM
60
ABM
40
HUMSS
45
TVL
35

Voters by Grade Level

Grade 11
95
Grade 12
85

Candidate Results

Detailed candidate performance data for this year.