learn = $GLOBALS["system"]->getSingleton("learn"); } /** * Anzeige */ function show() { $t = $this->learn->getLearned($_REQUEST["pages_id"],$_REQUEST["mb_id"]); if(!is_array($t)) $t = $_REQUEST; include("com_scorm/show.html"); } function save() { $t = $_POST["input"]; $_REQUEST = $_POST["input"]; if($t["learned"] >= 0) $this->learn->savePage($t["pages_id"], $t["mb_id"],$t["learned"],$t["data"]); else $this->learn->resetPage($t["pages_id"], $t["mb_id"]); } } $m = new scorm(); if ($_POST['action'] == "save") $m->save(); $m->show(); ?>