VarDbDsn = $MS_SP->Sp_DbConf['db']['DbDsn']; $ObjMenu->VarTable = $MS_SP->Sp_Config['DbPref'] .'_menu'; $ObjMenu->VarSmarty = $smarty; $ObjMenu->VarMenuName = 'MenuTop'; $ObjMenu->VarMenuVid = 'MenuTop'; $VarMenu = $ObjMenu->GetMenu(); $smarty->assign('VarMenu', $VarMenu); $ArrMenu = $ObjMenu->GetMenuArray(); $VarTitlePage = $MS_SP->GetTitleName($ArrMenu, $MS_SP->SP_CurrentHref); $smarty->assign('titlename', $VarTitlePage); require_once($_SERVER['DOCUMENT_ROOT'] .'/script/event.mod.php'); $ObjMod = new EventMod('event.table.php'); $ObjMod->VarDbDsn = $MS_SP->Sp_DbConf['db']['DbDsn']; $ObjMod->VarTable = $MS_SP->Sp_Config['DbPref'] .'_event'; $ObjMod->VarTable2 = $MS_SP->Sp_Config['DbPref'] .'_evsec'; $ObjMod->VarEventVid = 'EventByCommunity'; $ObjMod->VarSmarty = $smarty; $Arr = $ObjMod->GetEvent(); $smarty->assign('Arr', $Arr); $VarPagesTxt = $smarty->fetch('pages/community.tpl'); $smarty->assign('VarPagesTxt', @$VarPagesTxt); $smarty->display('Page_new.tpl'); ?>