//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"]); //Assigns date visited $hdlTpl->setVariable("page_name", $value["pagename"]); //Assigns page name $hdlTpl->setVariable("course_name", $strQuizTitle); //Assigns course name $hdlTpl->setVariable("tspent", $tspent); //Assigns time spend $hdlTpl->parse("managefiles");
//Fetches footer template $strLmenu = $hldGlobal->fnMenu("quizzes", $arrMpage); //Fetches left menu $hdlTpl->setVariable("metatag", $strMetatag); //Assigns Metatag $hdlTpl->setVariable("header", $strHeader); //Assigns header $hdlTpl->setVariable("footer", $strFooter); //Assigns footer $hdlTpl->setVariable("menu", $strLmenu); //Assigns left menu $hldGlobal->fnTrackUser("Quiz title", $_SESSION["MaInId"], $_GET["cid"]); $arrCourseName = $hldGlobal->fnFetchCourse($_GET["cid"]); $hdlTpl->setVariable("cname", $arrCourseName[0]["cname"]); //Assigns course name $arrQuizQuestion = $hldGlobal->fnGetQuizTitle($_GET["cid"]); if (is_array($arrQuizQuestion) && count($arrQuizQuestion) > 0) { $intCnt = 1; foreach ($arrQuizQuestion as $key => $value) { $hdlTpl->setVariable("qid", $value["id"]); //Assign qid $hdlTpl->setVariable("cid", $_GET["cid"]); //Assign cid $hdlTpl->setVariable("srno", $intCnt); //Assigns serial number $hdlTpl->setVariable("quiz_title", $value["quiz_title"]); //Assigns quiz title $intCheckQuiz = $hldGlobal->fnCheckQuizExist(0, $value["id"], $_SESSION["UID"]); $strTake = ""; if ($intCheckQuiz) { $arrResult = $hldGlobal->fnFetchQuizResult(0, $value["id"], $_SESSION["UID"]);