Esempio n. 1
0
//Fetches footer template
$strLeftMenu = $hldGlobal->fnGetLMenu();
//Fetches left menu template
$hdlTpl->setVariable("metatag", $strMetatag);
//Assigns Metatag
$hdlTpl->setVariable("header", $strHeader);
//Assigns Header
$hdlTpl->setVariable("footer", $strFooter);
//Assigns footer
$hdlTpl->setVariable("leftmenu", $strLeftMenu);
//Assigns left menu
$hdlTpl->setVariable("uname", $hldGlobal->fnGetUser($_GET["i"]));
//Assigns user name
$hdlTpl->setVariable("date1", base64_decode($_GET["d"]));
//Assigns module name
$arrStats = $hldGlobal->fnViewStats($_GET["mid"]);
$arrExtra = array("mid" => $_GET["mid"]);
$arrModule = $hldGlobal->fnGetPagerArr($arrStats, $arrExtra);
if (is_array($arrModule) && count($arrModule) > 0) {
    foreach ($arrModule as $key => $value) {
        if (is_numeric($key)) {
            $strQuizTitle = "";
            //$strCourseName = $hldGlobal->fnGetCourcesName($value["course_id"]);
            $strQuizTitle = $hldGlobal->fnGetQuizTitle($value["quiz_title_id"], $value["course_id"]);
            if ($value["timeout"] != 0) {
                $intSecond = strtotime($value["timeout"]) - strtotime($value["timein"]);
                $tspent = $hldGlobal->sec2hms($intSecond);
            } else {
                $tspent = "--";
            }
            $hdlTpl->setVariable("date", $value["dvisited"]);