//Loads the template from template folder $hdlTpl->loadTemplateFile("viewcontact.htm", TRUE, TRUE); $strHeader = $hldGlobal->fnGetHeader(); //Fetches header template $strMetatag = $hldGlobal->fnGetMetatag(); //Fetches Metatag template $strFooter = $hldGlobal->fnGetFooter(); //Fetches footer template $strLeftMenu = $hldGlobal->fnGetLMenu(); //Fetches left menu template //$strOption = $hldGlobal->fnGetCource($_POST["course_id"]);//Fetches options $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 $arrModule1 = $hldGlobal->fnFetchContact($_GET["id"]); if (is_array($arrModule1) && count($arrModule1) > 0) { $hdlTpl->setVariable("name", $arrModule1[0]["name"]); //Assigns name $hdlTpl->setVariable("emailaddress", $arrModule1[0]["email"]); //Assigns email address $hdlTpl->setVariable("message", nl2br($arrModule1[0]["briefmessage"])); //Assigns message } $hdlTpl->parse("ADMIN_INNER_PAGE"); $hdlTpl->parse("INNER_PAGE"); echo $hdlTpl->get();
//Assigns Header $hdlTpl->setVariable("footer", $strFooter); //Assigns footer $hdlTpl->setVariable("leftmenu", $strLeftMenu); //Assigns left menu $strSearch = ""; $int = 0; if ($_POST["submit"] == "Go") { if ($_POST["nsearch"] != "") { $strSearch = $_POST["nsearch"]; if ($strSearch) { $hdlTpl->setVariable("nsearch", $strSearch); } } } $arrModule1 = $hldGlobal->fnFetchContact(0, $strSearch); $arrModule = $hldGlobal->fnGetPagerArr($arrModule1); if (is_array($arrModule) && count($arrModule) > 0) { foreach ($arrModule as $key => $value) { if (is_numeric($key)) { $hdlTpl->setVariable("returnurl", $hldGlobal->fnEncodeURL($_SERVER["REQUEST_URI"])); //Assigns encode url $hdlTpl->setVariable("id", $value["id"]); //Assigns id $hdlTpl->setVariable("name", $value["name"]); //Assigns name $hdlTpl->setVariable("email", $value["email"]); //Assigns email address $hdlTpl->parse("managefiles"); } else { $strPaging = $value;