From: Banana Date: Sat, 3 Apr 2021 14:52:31 +0000 (+0200) Subject: fix bug #5 X-Git-Tag: 1.1~14 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=cc1273920a78799a985e75c367f190784a26fdb4;p=bibliotheca-php.git fix bug #5 --- diff --git a/webclient/view/default/advancedsearch/advancedsearch.html b/webclient/view/default/advancedsearch/advancedsearch.html index 18a07d9..b46a57a 100644 --- a/webclient/view/default/advancedsearch/advancedsearch.html +++ b/webclient/view/default/advancedsearch/advancedsearch.html @@ -76,9 +76,10 @@
diff --git a/webclient/view/default/collections/collections.html b/webclient/view/default/collections/collections.html index 1f4d5a6..edd562b 100644 --- a/webclient/view/default/collections/collections.html +++ b/webclient/view/default/collections/collections.html @@ -3,36 +3,35 @@
    1) { - echo '
  • -
  • '; - } + if($TemplateData['pagination']['curPage'] > 1) { + echo '
  • +
  • '; + } + $ellipsisShown = 0; - $ellipsisShown = 0; - for($i=1;$i<=$TemplateData['pagination']['pages'];$i++) { - $active = ''; - if($i == $TemplateData['pagination']['curPage']) $active = 'uk-active'; - - if(in_array($i,$TemplateData['pagination']['visibleRange'])) { - echo '
  • '.$i.'
  • '; - } - else { - if($i < $TemplateData['pagination']['currentRangeStart'] && $ellipsisShown == 0) { - echo '
  • '; - $ellipsisShown = 1; - } - if($i > $TemplateData['pagination']['currentRangeEnd'] && ($ellipsisShown == 0 || $ellipsisShown == 1)) { - echo '
  • '; - $ellipsisShown = 2; - } - } - } + for($i=1;$i<=$TemplateData['pagination']['pages'];$i++) { + $active = ''; + if($i == $TemplateData['pagination']['curPage']) $active = 'uk-active'; + if(in_array($i,$TemplateData['pagination']['visibleRange'])) { + echo '
  • '.$i.'
  • '; + } + else { + if($i < $TemplateData['pagination']['currentRangeStart'] && $ellipsisShown == 0) { + echo '
  • '; + $ellipsisShown = 1; + } + if($i > $TemplateData['pagination']['currentRangeEnd'] && ($ellipsisShown == 0 || $ellipsisShown == 1)) { + echo '
  • '; + $ellipsisShown = 2; + } + } + } - if($TemplateData['pagination']['curPage'] < $TemplateData['pagination']['pages']) { - echo '
  • -
  • '; - } + if($TemplateData['pagination']['curPage'] < $TemplateData['pagination']['pages']) { + echo '
  • +
  • '; + } ?>