| @@ 179-183 (lines=5) @@ | ||
| 176 | $accountsCriteria->setStart($start); |
|
| 177 | $accountsCriteria->setLimit($limit); |
|
| 178 | $accountsAll = $helper->getHandler('Accounts')->getAll($accountsCriteria); |
|
| 179 | if ($accountsCount > $limit) { |
|
| 180 | require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 181 | $pagenav = new \XoopsPageNav($accountsCount, $limit, $start, 'start', 'op=list'); |
|
| 182 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
|
| 183 | } |
|
| 184 | ||
| 185 | if ($accountsCount > 0) { |
|
| 186 | $GLOBALS['xoopsTpl']->assign('accountsCount', $accountsCount); |
|
| @@ 59-63 (lines=5) @@ | ||
| 56 | $attachmentCriteria->setStart($start); |
|
| 57 | $attachmentCriteria->setLimit($limit); |
|
| 58 | $attachmentsAll = $helper->getHandler('Attachment')->getAll($attachmentCriteria); |
|
| 59 | if ($attachmentCount > $limit) { |
|
| 60 | require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 61 | $pagenav = new \XoopsPageNav($attachmentCount, $limit, $start, 'start', 'op=list'); |
|
| 62 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
|
| 63 | } |
|
| 64 | ||
| 65 | if ($attachmentCount > 0) { |
|
| 66 | $GLOBALS['xoopsTpl']->assign('attachmentCount', $attachmentCount); |
|
| @@ 234-238 (lines=5) @@ | ||
| 231 | $bhmCriteria->setStart($start); |
|
| 232 | $bhmCriteria->setLimit($limit); |
|
| 233 | $bhmObjs = $helper->getHandler('Bmh')->getAll($bhmCriteria); |
|
| 234 | if ($bhmCount > $limit) { |
|
| 235 | require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 236 | $pagenav = new \XoopsPageNav($bhmCount, $limit, $start, 'start', 'op=list'); |
|
| 237 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
|
| 238 | } |
|
| 239 | ||
| 240 | //form to filter result |
|
| 241 | $form_filter = "<form id='form_filter' enctype='multipart/form-data' method='post' action='{$currentFile}' name='form_filter'>"; |
|
| @@ 62-66 (lines=5) @@ | ||
| 59 | $catCriteria->setStart($start); |
|
| 60 | $catCriteria->setLimit($limit); |
|
| 61 | $catAll = $helper->getHandler('Cat')->getAll($catCriteria); |
|
| 62 | if ($catsCount > $limit) { |
|
| 63 | require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 64 | $pagenav = new \XoopsPageNav($catsCount, $limit, $start, 'start', 'op=list'); |
|
| 65 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
|
| 66 | } |
|
| 67 | ||
| 68 | if ($catsCount > 0) { |
|
| 69 | $GLOBALS['xoopsTpl']->assign('categories_count', $catsCount); |
|
| @@ 60-64 (lines=5) @@ | ||
| 57 | $catCriteria->setStart($start); |
|
| 58 | $catCriteria->setLimit($limit); |
|
| 59 | $catAll = $helper->getHandler('Cat')->getAll($catCriteria); |
|
| 60 | if ($catCount > $limit) { |
|
| 61 | require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 62 | $pagenav = new \XoopsPageNav($catCount, $limit, $start, 'start', 'op=list'); |
|
| 63 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
|
| 64 | } |
|
| 65 | ||
| 66 | if ($catCount > 0) { |
|
| 67 | $GLOBALS['xoopsTpl']->assign('categories_count', $catCount); |
|
| @@ 92-96 (lines=5) @@ | ||
| 89 | $catsubscrCriteria->setStart($start); |
|
| 90 | $catsubscrCriteria->setLimit($limit); |
|
| 91 | $catsubscrAll = $helper->getHandler('Catsubscr')->getAll($catsubscrCriteria); |
|
| 92 | if ($catsubscrCount > $limit) { |
|
| 93 | require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 94 | $pagenav = new \XoopsPageNav($catsubscrCount, $limit, $start, 'start', 'op=list_cat&cat_id=' . $cat_id); |
|
| 95 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
|
| 96 | } |
|
| 97 | $cat = $helper->getHandler('Cat')->get($cat_id); |
|
| 98 | $cat_name = $cat->getVar('cat_name'); |
|
| 99 | ||
| @@ 136-141 (lines=6) @@ | ||
| 133 | $letterCriteria->setLimit($limit); |
|
| 134 | $lettersAll = $helper->getHandler('Letter')->getAll($letterCriteria); |
|
| 135 | ||
| 136 | if ($letterCount > $limit) { |
|
| 137 | // pagenav |
|
| 138 | require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 139 | $pagenav = new \XoopsPageNav($letterCount, $limit, $start, 'start', 'op=list'); |
|
| 140 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
|
| 141 | } |
|
| 142 | ||
| 143 | if ($letterCount > 0) { |
|
| 144 | $GLOBALS['xoopsTpl']->assign('letterCount', $letterCount); |
|
| @@ 65-69 (lines=5) @@ | ||
| 62 | $mailinglistCriteria->setStart($start); |
|
| 63 | $mailinglistCriteria->setLimit($limit); |
|
| 64 | $mailinglistsAll = $helper->getHandler('Mailinglist')->getAll($mailinglistCriteria); |
|
| 65 | if ($mailinglistCount > $limit) { |
|
| 66 | require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 67 | $pagenav = new \XoopsPageNav($mailinglistCount, $limit, $start, 'start', 'op=list'); |
|
| 68 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
|
| 69 | } |
|
| 70 | ||
| 71 | if ($mailinglistCount > 0) { |
|
| 72 | $GLOBALS['xoopsTpl']->assign('mailinglistCount', $mailinglistCount); |
|
| @@ 132-136 (lines=5) @@ | ||
| 129 | } |
|
| 130 | } |
|
| 131 | } |
|
| 132 | if ($protocol_letters_total > $limit) { |
|
| 133 | require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 134 | $pagenav = new \XoopsPageNav($protocol_letters_total, $limit, $start, 'start', 'op=list'); |
|
| 135 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
|
| 136 | } |
|
| 137 | break; |
|
| 138 | case 'list_letter': |
|
| 139 | $GLOBALS['xoopsTpl']->assign('list_letter', true); |
|
| @@ 158-162 (lines=5) @@ | ||
| 155 | $protocolCriteria->setStart($start); |
|
| 156 | $protocolCriteria->setLimit($limit); |
|
| 157 | $protocolsAll = $helper->getHandler('Protocol')->getAll($protocolCriteria); |
|
| 158 | if ($protocolCount > $limit) { |
|
| 159 | require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 160 | $pagenav = new \XoopsPageNav($protocolCount, $limit, $start, 'start', 'op=list_letter&letter_id=' . $letter_id); |
|
| 161 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
|
| 162 | } |
|
| 163 | ||
| 164 | // View Table |
|
| 165 | $letterObj = $helper->getHandler('Letter')->get($letter_id); |
|
| @@ 95-99 (lines=5) @@ | ||
| 92 | $templateCriteria->setSort('template_type ASC, template_id'); |
|
| 93 | $templateCriteria->setOrder('DESC'); |
|
| 94 | $templatesCount = $helper->getHandler('Template')->getCount(); |
|
| 95 | if ($templatesCount > $limit) { |
|
| 96 | require_once XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
| 97 | $pagenav = new \XoopsPageNav($templatesCount, $limit, $start, 'start', 'op=list'); |
|
| 98 | $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4)); |
|
| 99 | } |
|
| 100 | if ($templatesCount > 0) { |
|
| 101 | $templateCriteria->setStart($start); |
|
| 102 | $templateCriteria->setLimit($limit); |
|