$strMetatag = $hldGlobal->fnGetMetatag(); //Fetches Metatag template $strFooter = $hldGlobal->fnGetFooter(); //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 $arrStats = $hldGlobal->fnGetStats(); $arrModule = $hldGlobal->fnGetPagerArr($arrStats); if (is_array($arrModule) && count($arrModule) > 0) { foreach ($arrModule as $key => $value) { if (is_numeric($key)) { if ($value["isactive"]) { $intstatus = 0; $hdlTpl->setVariable("status", "Active"); //Assigns status } else { $intstatus = 1; $hdlTpl->setVariable("status", "In Active"); //Assigns status } //$intTimeSpend = strtotime($value["timeout"]) - strtotime($value["timein"]); $intTimeSpend = $value["tout"] - $value["tin"]; $hdlTpl->setVariable("returnurl", $hldGlobal->fnEncodeURL($_SERVER["REQUEST_URI"]));
//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 $strCourse = $hldGlobal->fnGetCource($_POST["course_id"]); $hdlTpl->setVariable("coptval", $strCourse); //Assigns option $arrQuizzes1 = $hldGlobal->fnFetchQuizzes(0, $_POST["course_id"]); $arrQuizzes = $hldGlobal->fnGetPagerArr($arrQuizzes1); if (is_array($arrQuizzes) && count($arrQuizzes) > 0) { foreach ($arrQuizzes as $key => $value) { if (is_numeric($key)) { if ($value["isactive"]) { $intstatus = 0; $hdlTpl->setVariable("status", "Active"); //Assigns status } else { $intstatus = 1; $hdlTpl->setVariable("status", "In Active"); //Assigns status } $hdlTpl->setVariable("returnurl", $hldGlobal->fnEncodeURL($_SERVER["REQUEST_URI"])); //Assigns encode url $hdlTpl->setVariable("id", $value["id"]);
//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->fnGetStatsUser($_GET["i"]); $arrExtra = array("i" => $_GET["i"]); $arrModule = $hldGlobal->fnGetPagerArr($arrStats, $arrExtra); if (is_array($arrModule) && count($arrModule) > 0) { foreach ($arrModule as $key => $value) { if (is_numeric($key)) { if ($value["isactive"]) { $intstatus = 0; $hdlTpl->setVariable("status", "Active"); //Assigns status } else { $intstatus = 1; $hdlTpl->setVariable("status", "In Active"); //Assigns status } $hdlTpl->setVariable("returnurl", $hldGlobal->fnEncodeURL($_SERVER["REQUEST_URI"])); //Assigns encode url $intSecond = strtotime($value["timeout"]) - strtotime($value["timein"]);
//Assigns left menu if ($_POST["submit"] == "Go") { if ($_POST["status"] != "--") { $strSearch = $_POST["status"]; if ($strSearch) { $hdlTpl->setVariable("act", "selected='selected'"); } else { if (!$strSearch) { $hdlTpl->setVariable("inact", "selected='selected'"); } } } } $arrRecordSet = $hldGlobal->fnFetchManageusers(0, $strSearch); //Fetches left menu template $arrPagerData = $hldGlobal->fnGetPagerArr($arrRecordSet); if ($arrPagerData) { for ($i = 0; $i < count($arrPagerData) - 1; $i++) { $arrKeys = array_keys($arrPagerData); if ($arrPagerData[$arrKeys[$i]]["isactive"]) { $strStatus = "Active"; $intActiveFlg = 0; } else { $strStatus = "In Active"; $intActiveFlg = 1; } $hdlTpl->setVariable("uname", $arrPagerData[$arrKeys[$i]]["username"]); //Assigns title $hdlTpl->setVariable("email", $arrPagerData[$arrKeys[$i]]["email"]); //Assigns page name $hdlTpl->setVariable("utype", ucfirst($arrPagerData[$arrKeys[$i]]["usertype"]));
} if (is_array($arrPage) && count($arrPage) > 0) { $strOpt = ""; foreach ($arrPage as $key => $value) { if ($_POST["page_name"] == $key) { $strSel = "selected='selected'"; } else { $strSel = ""; } $strOpt .= "<option value='" . $key . "' " . $strSel . ">" . $value . "</option>"; } $hdlTpl->setVariable("optpagename", $strOpt); //Assigns option } $arrModule1 = $hldGlobal->fnFetchModule(0, $strSearch, $int); $arrModule = $hldGlobal->fnGetPagerArr($arrModule1); if (is_array($arrModule) && count($arrModule) > 0) { foreach ($arrModule as $key => $value) { if (is_numeric($key)) { if ($value["isactive"]) { $intstatus = 0; $hdlTpl->setVariable("status", "Active"); //Assigns status } else { $intstatus = 1; $hdlTpl->setVariable("status", "In Active"); //Assigns status } $hdlTpl->setVariable("returnurl", $hldGlobal->fnEncodeURL($_SERVER["REQUEST_URI"])); //Assigns encode url $sPattern = '/\\s/';
$hdlTpl->setVariable("leftmenu", $strLeftMenu); //Assigns left menu if ($_POST["submit"] == "Go") { if ($_POST["status"] != "--") { $strSearch = $_POST["status"]; if ($strSearch) { $hdlTpl->setVariable("act", "selected='selected'"); } else { if (!$strSearch) { $hdlTpl->setVariable("inact", "selected='selected'"); } } } } $arrCources1 = $hldGlobal->fnFetchCources(0, $strSearch); $arrCources = $hldGlobal->fnGetPagerArr($arrCources1); if (is_array($arrCources) && count($arrCources) > 0) { foreach ($arrCources as $key => $value) { if (is_numeric($key)) { if ($value["isactive"]) { $intstatus = 0; $hdlTpl->setVariable("status", "Active"); //Assigns status } else { $intstatus = 1; $hdlTpl->setVariable("status", "In Active"); //Assigns status } $hdlTpl->setVariable("returnurl", $hldGlobal->fnEncodeURL($_SERVER["REQUEST_URI"])); //Assigns encode url $hdlTpl->setVariable("id", $value["id"]);
$hdlTpl->setVariable("leftmenu", $strLeftMenu); //Assigns left menu if ($_POST["submit"] == "Go") { if ($_POST["status"] != "--") { $strSearch = $_POST["status"]; if ($strSearch) { $hdlTpl->setVariable("act", "selected='selected'"); } else { if (!$strSearch) { $hdlTpl->setVariable("inact", "selected='selected'"); } } } } $arrTechnique1 = $hldGlobal->fnFetchTechnique(0, $strSearch); $arrTechnique = $hldGlobal->fnGetPagerArr($arrTechnique1); if (is_array($arrTechnique) && count($arrTechnique) > 0) { foreach ($arrTechnique as $key => $value) { if (is_numeric($key)) { if ($value["isactive"]) { $intstatus = 0; $hdlTpl->setVariable("status", "Active"); //Assigns status } else { $intstatus = 1; $hdlTpl->setVariable("status", "In Active"); //Assigns status } $hdlTpl->setVariable("returnurl", $hldGlobal->fnEncodeURL($_SERVER["REQUEST_URI"])); //Assigns encode url $hdlTpl->setVariable("id", $value["id"]);