//Fetches header template $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"];