Esempio n. 1
0
//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
$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"]));