Exemple #1
0
$hdlTpl->setVariable("footer", $strFooter);
//Assigns footer
$hdlTpl->setVariable("menu", $strLmenu);
//Assigns left menu
$strSearch = $hldGlobal->fnGetSearch($_POST["search1"], "Curriculum", "curriculum");
$hdlTpl->setVariable("search", $strSearch);
//Assigns search
$strSearchTxt = "";
$intCid = 0;
if ($_POST["search"] == "Search") {
    $hdlTpl->setVariable("search1", $_POST["search1"]);
    //Assigns search text
    $strSearchTxt = $_POST["search1"];
    $intCid = $_POST["cid"];
}
$arrModule = $hldGlobal->fnGetModuleDesc($_GET["mid"]);
if (is_array($arrModule) && count($arrModule) > 0) {
    if ($arrModule[0]["img_path"]) {
        $hdlTpl->setVariable("site_name", SITE_NAME);
        //Assigns site name
        $hdlTpl->setVariable("img1", $arrModule[0]["img_path"]);
        //Assigns module image
        $hdlTpl->parse("module_image");
    }
    $hdlTpl->setVariable("cource_name", $arrModule[0]["cname"]);
    //Assign course name
    $hdlTpl->setVariable("mname", $arrModule[0]["mname"]);
    //Assign module name
    $hdlTpl->setVariable("desc", strip_tags($arrModule[0]["mdescription"]));
    //Assign description
    $hdlTpl->parse("module");