From 91a601f23513e519ce3dbdb4f7706863f0fee019 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 21 Oct 2021 23:21:32 +0200 Subject: [PATCH] upgrade to dcPager --- index.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/index.php b/index.php index 3666b68..50e675a 100644 --- a/index.php +++ b/index.php @@ -316,11 +316,8 @@ if (isset($filters_id[$default_part])) { '&part=' . $default_part . '#record'; - $pager = new pager($sorts->page, $counter->f(0), $sorts->nb, 10); - $pager->html_prev = __('«prev.'); - $pager->html_next = __('next»'); + $pager = new dcPager($sorts->page, $counter->f(0), $sorts->nb, 10); $pager->base_url = sprintf($pager_url, $sorts->sortby, $sorts->order, '%s'); - $pager->var_page = 'page'; } catch (Exception $e) { $core->error->add($e->getMessage()); } @@ -332,8 +329,10 @@ if (isset($filters_id[$default_part])) { echo '

' . __('No record') . '

'; } else { echo ' -
-

' . __('Page(s)') . ' : ' . $pager->getLinks() . '

+ ' . + + $pager->getLinks() . ' +
'; @@ -369,8 +368,9 @@ if (isset($filters_id[$default_part])) { echo '
-

' . __('In order to remove a record, leave empty its key or value.') . '

-

' . __('Page(s)') . ' : ' . $pager->getLinks() . '

+

' . __('In order to remove a record, leave empty its key or value.') . '

' . + + $pager->getLinks() . '

' .