Esempio n. 1
0
//Fetches header template
$strMetatag = $hldGlobal->fnMetaTag();
//Fetches Metatag template
$strFooter = $hldGlobal->fnGetFooter();
//Fetches footer template
$strLmenu = $hldGlobal->fnMenu("", $arrMpage);
//Fetches left menu
$hdlTpl->setVariable("metatag", $strMetatag);
//Assigns Metatag
$hdlTpl->setVariable("header", $strHeader);
//Assigns header
$hdlTpl->setVariable("footer", $strFooter);
//Assigns footer
$hdlTpl->setVariable("menu", $strLmenu);
//Assigns left menu
$arrRecordSet = $hldGlobal->fnFetchNewsLeft();
if (is_array($arrRecordSet) && count($arrRecordSet) > 0) {
    for ($i = 0; $i < count($arrRecordSet); $i++) {
        $hdlTpl->setVariable("site_name", SITE_NAME);
        $hdlTpl->setVariable("left_link", $arrRecordSet[$i]["datecreate"]);
        //Assigns left link
        $arrNewsResult = $hldGlobal->fnGetLeftMonth($arrRecordSet[$i]["datecreate"]);
        if (is_array($arrNewsResult) && count($arrNewsResult)) {
            $strMonth = "";
            for ($j = 0; $j < count($arrNewsResult); $j++) {
                $hdlTpl->setVariable("site_name", SITE_NAME);
                //Assigns left link
                $hdlTpl->setVariable("intMonthId", $arrNewsResult[$j]["intMonthId"]);
                //Assigns left link
                $hdlTpl->setVariable("intYear", $arrNewsResult[$j]["intYear"]);
                //Assigns left link