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); $smarty->assign('titlename1', 'Author'); require_once($_SERVER['DOCUMENT_ROOT'] .'/script/content.mod.php'); $ObjContent = new MsContent('content.table.php'); $ObjContent->VarDbDsn = $MS_SP->Sp_DbConf['db']['DbDsn']; $ObjContent->VarTable = $MS_SP->Sp_Config['DbPref'] .'_content'; $ObjContent->VarTable2 = $MS_SP->Sp_Config['DbPref'] .'_author'; $ObjContent->VarSmarty = $smarty; $ObjContent->VarContentVid = 'ContentByAuthor'; $ArrContent = $ObjContent->GetContent($_GET['UrlRid']); require_once ('Pager/Pager.php'); $params = array( 'itemData' => $ArrContent, 'perPage' => $ArrContent, //$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/author.tpl'); $smarty->assign('VarPagesTxt', @$VarPagesTxt); $smarty->display('Page_new.tpl'); ?>