Example #1
0
            $hdlTpl->setVariable("returnurl", $hldGlobal->fnEncodeURL($_SERVER["REQUEST_URI"]));
            //Assigns encode url
            $intSecond = strtotime($value["timeout"]) - strtotime($value["timein"]);
            $hdlTpl->setVariable("ipaddress", $value["ipaddress"]);
            //Assigns encode ip
            $hdlTpl->setVariable("mid", $value["id"]);
            //Assigns encode ip
            $hdlTpl->setVariable("date", $value["dvisited"]);
            //Assigns encode ip
            $hdlTpl->setVariable("country", $value["cname"]);
            //Assigns module order
            $hdlTpl->setVariable("reqion", $value["rname"]);
            //Assigns cources name
            $hdlTpl->setVariable("city", $value["city"]);
            //Assigns cources name
            $hdlTpl->setVariable("tspent", $hldGlobal->sec2hms($intSecond));
            //Assigns cources name
            $hdlTpl->parse("managefiles");
        } else {
            $strPaging = $value;
        }
    }
    $hdlTpl->setVariable("paging", $strPaging);
    //Assigns Paging
    $hdlTpl->parse("StartManageFiles");
} else {
    $hdlTpl->setVariable("space", " ");
    //Assigns space
    $hdlTpl->parse("NoManageFiles");
}
$hdlTpl->parse("ADMIN_INNER_PAGE");
Example #2
0
                $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"]));
            //Assigns encode url
            $hdlTpl->setVariable("uid", $value["userid"]);
            //Assigns encode ip
            $hdlTpl->setVariable("udate", base64_encode($value["datecreated"]));
            //Assigns encode ip
            $hdlTpl->setVariable("uname", $hldGlobal->fnGetUser($value["userid"]));
            //Assigns module name
            $hdlTpl->setVariable("date", $value["dvisited"]);
            //Assigns date visited
            $hdlTpl->setVariable("totspendtime", $hldGlobal->sec2hms($intTimeSpend));
            //Assigns time spend
            $hdlTpl->setVariable("country", $value["cname"]);
            //Assigns country name
            $hdlTpl->parse("managefiles");
        } else {
            $strPaging = $value;
        }
    }
    $hdlTpl->setVariable("paging", $strPaging);
    //Assigns Paging
    $hdlTpl->parse("StartManageFiles");
} else {
    $hdlTpl->setVariable("space", " ");
    //Assigns space
    $hdlTpl->parse("NoManageFiles");
Example #3
0
$hdlTpl->setVariable("uname", $hldGlobal->fnGetUser($_GET["i"]));
//Assigns user name
$hdlTpl->setVariable("date1", base64_decode($_GET["d"]));
//Assigns module name
$arrStats = $hldGlobal->fnViewStats($_GET["mid"]);
$arrExtra = array("mid" => $_GET["mid"]);
$arrModule = $hldGlobal->fnGetPagerArr($arrStats, $arrExtra);
if (is_array($arrModule) && count($arrModule) > 0) {
    foreach ($arrModule as $key => $value) {
        if (is_numeric($key)) {
            $strQuizTitle = "";
            //$strCourseName = $hldGlobal->fnGetCourcesName($value["course_id"]);
            $strQuizTitle = $hldGlobal->fnGetQuizTitle($value["quiz_title_id"], $value["course_id"]);
            if ($value["timeout"] != 0) {
                $intSecond = strtotime($value["timeout"]) - strtotime($value["timein"]);
                $tspent = $hldGlobal->sec2hms($intSecond);
            } else {
                $tspent = "--";
            }
            $hdlTpl->setVariable("date", $value["dvisited"]);
            //Assigns date visited
            $hdlTpl->setVariable("page_name", $value["pagename"]);
            //Assigns page name
            $hdlTpl->setVariable("course_name", $strQuizTitle);
            //Assigns course name
            $hdlTpl->setVariable("tspent", $tspent);
            //Assigns time spend
            $hdlTpl->parse("managefiles");
        } else {
            $strPaging = $value;
        }