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->VarSmarty = $smarty; $ObjMod->VarEventVid = 'EventIdByTitle'; $_GET['UrlRid'] = $ObjMod->GetEvent('Collection'); $ObjMod->VarEventVid = 'EventById'; $ArrEventRow = $ObjMod->GetEvent($_GET['UrlRid']); $smarty->assign('EventTitle', $ArrEventRow['event_title']); require_once($_SERVER['DOCUMENT_ROOT'] .'/script/ead.mod.php'); $ObjMod = new EadMod('ead.table.php'); $ObjMod->VarDbDsn = $MS_SP->Sp_DbConf['db']['DbDsn']; $ObjMod->VarTableEad = $MS_SP->Sp_Config['DbPref'] .'_ead'; $ObjMod->VarTableEvent = $MS_SP->Sp_Config['DbPref'] .'_event'; $ObjMod->VarTableAuthor = $MS_SP->Sp_Config['DbPref'] .'_author'; $ObjMod->VarTableContent = $MS_SP->Sp_Config['DbPref'] .'_content'; $ObjMod->VarSmarty = $smarty; $ObjMod->VarVid = 'ById'; $ArrContent = $ObjMod->GetEad($_GET['UrlRid'], $_GET['UrlGid'], $_GET['UrlId']); require_once ('Pager/Pager.php'); $params = array( 'itemData' => $ArrContent, 'perPage' => $MS_SP->Sp_Config['LimitOnPage'], 'delta' => 5, // for 'Jumping'-style a lower number is better 'linkClass' => 'pagenumlink', 'prevImg' => 'back', 'nextImg' => 'next', 'append' => true, 'clearIfVoid' => false, 'urlVar' => 'entrant', 'useSessions' => true, 'closeSession' => true, //'mode' => 'Sliding', //try switching modes 'mode' => 'Jumping', ); $pager = & Pager::factory($params); $page_data = $pager->getPageData(); $pager->getPageData(); $links = $pager->getLinks(); $links['numPages'] = $pager->numPages(); $links['prevImg'] = $params['prevImg']; $links['nextImg'] = $params['nextImg']; $links['currentPage'] = $pager->_currentPage; //print_r($links); $ArrPager = array( // 'LimitFirst' => current($page_data), 'Links' => $links, // 'CountTotal' => $CountArrContent ); $smarty->assign('ArrPager', $ArrPager); $smarty->assign('RowLimit', $MS_SP->Sp_Config['LimitOnRow']); $smarty->assign('Arr', $page_data); $VarPagesTxt = $smarty->fetch('pages/EventId_col.tpl'); $smarty->assign('VarPagesTxt', @$VarPagesTxt); $smarty->display('Page_new.tpl'); ?>