</div>
            <div id="container">
            </div>
        </div>
        <div id="footer">© Copyright <?php 
echo date('Y');
?>
 UE-CCSS Research & Development Unit 2013</div>
    </div>
    <div class="special">
        <?php 
if (isset($_POST['status'])) {
    $status = $_POST['status'];
    switch ($status) {
        case $mods->getError(0):
            $mods->showDialog('prompt', 'Login Status', 'You may now start voting.', 'precinct.php');
            break;
        case $mods->getError(1):
            $mods->showDialog('prompt', 'Login Status', 'You\'re not logged in or session has expired. Please login to continue.');
            break;
        case $mods->getError(2):
            $mods->showDialog('prompt', 'Login Status', 'Voter not found.');
            break;
        case $mods->getError(3):
            $mods->showDialog('prompt', 'Login Status', 'Voter not registered.');
            break;
        case $mods->getError(4):
            $mods->showDialog('prompt', 'System Error', 'Voter has already voted.');
            break;
        case $mods->getError(5):
            $mods->showDialog('prompt', 'System Error', 'The system failed to record your vote. Please login to continue.');
            </div>
            <div id="container">
            </div>
        </div>
        <div id="footer">© Copyright <?php 
echo date('Y');
?>
 UE-CCSS Research & Development Unit 2013</div>
    </div>
    <div class="special">
        <?php 
if (isset($_POST['status'])) {
    $status = $_POST['status'];
    switch ($status) {
        case $mods->getError(0):
            $mods->showDialog('prompt', 'Login Status', 'You will now be redirected to the Dashboard.', 'dashboard.php');
            break;
        case $mods->getError(1):
            $mods->showDialog('prompt', 'Login Status', 'You\'re not logged in or session has expired. Please login to continue.');
            break;
        case $mods->getError(6):
            $mods->showDialog('prompt', 'Login Status', 'Account doesn\'t exist.');
            break;
        default:
            break;
    }
} else {
    $mods->logout();
}
?>
    </div>