$strMetatag = $hldGlobal->fnMetaTag(); //Fetches Metatag template $strFooter = $hldGlobal->fnGetFooter(); //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 $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