Exemplo n.º 1
0
    }
    $marksInsert = $marksResults . "/" . $totalmarks;
    // Results Update
    $q->courseUserTest($userId, $testId, $testType, 1, $questionResults, $marksInsert, $examStatus);
    // Marks Logic
}
if ($action == 'viewTestResults') {
    $q = new Questions();
    $userId = $_SESSION[constant("SESSION_USER_REGID")];
    $json = $q->getTestResults($userId);
    echo $json;
}
if ($action == 'viewFinalTestResults') {
    $q = new Questions();
    $userId = $_SESSION[constant("SESSION_USER_REGID")];
    $json = $q->getFinalTestResults($userId);
    echo $json;
}
if ($action == 'AdminViewTestResults') {
    $q = new Questions();
    $userId = $_SESSION[constant("SESSION_USER_REGID")];
    $json = $q->getAdminTestResults();
    echo $json;
}
if ($action == 'AdminAddQuestions') {
    $courseList = $_GET["courseList"];
    $testList = $_GET["testList"];
    $addQuestion = $_GET["addQuestion"];
    $t_option1 = $_GET["t_option1"];
    $t_option2 = $_GET["t_option2"];
    $t_option3 = $_GET["t_option3"];