$hdlTpl->setVariable("footer", $strFooter); //Assigns footer $hdlTpl->setVariable("menu", $strLmenu); //Assigns left menu $arrQuizAnswer = $hldGlobal->fnGetResult($_GET["cid"], $_SESSION["UID"]); $arrCorrect = $hldGlobal->fnGetQuizResult($_GET["cid"], $_SESSION["UID"], $_SESSION["StRuNiQuE"]); $intCid = $hldGlobal->fnGetCourseId($_GET["cid"]); $arrCourseName = $hldGlobal->fnFetchCourse($intCid); $hdlTpl->setVariable("cname", $arrCourseName[0]["cname"]); //Assigns course name $hdlTpl->setVariable("outof", $arrCorrect[0]["correct"]); //Assigns out of $hdlTpl->setVariable("howmany", $hldGlobal->fnCountQuestion($_GET["qid"], $_GET["cid"])); //Assigns howmany $hdlTpl->parse("quiz_question"); $arrList = $hldGlobal->fnListQuestion($arrCorrect[0]["question"], $_GET["cid"]); if (is_array($arrList) && count($arrList) > 0) { $intCnt = 1; foreach ($arrList as $key => $value) { $hdlTpl->setVariable("srno", $intCnt); //Assigns sr no $hdlTpl->setVariable("question", $value["question"]); //Assigns question $hdlTpl->setVariable("mid", $value["module_id"]); //Assigns module id $hdlTpl->setVariable("site_name", SITE_NAME); //Assigns site name $hdlTpl->parse("wrong_quiz_question"); $intCnt++; } }