Ejemplo n.º 1
0
<?php

require_once "../config.php";
verify_access($list_modules);
$emailSent = false;
$lessApr = false;
$lessRej = false;
$dash = new dashboard();
$lesson = new lesson();
$list_last_pend_lessons = $lesson->list_last_pend_lessons($user->id);
if ($_POST['action'] == 'Submit') {
    $dash->sendEmail($user->name, $user->email, $_POST['reseiver'], $_POST['subject'], $_POST['message']);
    $emailSent = true;
} else {
    if ($_POST['action'] == 'Eval') {
        if (isset($_POST['hdIdAR'])) {
            $lesson->change_status($_POST['hdIdAR'], $_POST['hdEval'], $_POST['obs']);
            if ($_POST['hdEval'] == '2') {
                $lessApr = true;
            } else {
                if ($_POST['hdEval'] == '3') {
                    $lessRej = true;
                }
            }
            $list_last_pend_lessons = $lesson->list_last_pend_lessons($user->id);
        }
    }
}
?>

<!DOCTYPE html>