Example #1
0
    if ($action == "showTable") {
        $progress->setTopic($topic);
        $progress->getProgress();
        $progress->showTable();
    }
    // als Liniendiagramm anzeigen
    if ($action == "showGraph") {
        $progress->setTopic($topic);
        $progress->getProgress();
        $progress->showGraph();
    }
    // als Balkendiagramm anzeigen
    if ($action == "showBalken") {
        $progress->setTopic($topic);
        $progress->getProgress();
        $progress->showBalken();
    }
    if ($action == "showIncorrectAnswers") {
        // Überprüfung / Wertzuweisung
        $lp_id = 0;
        if ($_REQUEST["lp_id"]) {
            $lp_id = abs(intval($_REQUEST["lp_id"]));
        }
        $progress->setTopic($topic);
        $progress->getProgress();
        $progress->setLp_id($lp_id);
        $progress->getIncorrectAnswers();
    }
} else {
    echo "<h5 class='centered'>" . Global_01 . '</h5>';
}