EIOS/integration/tpl/mod_navpages.html

18 lines
707 B
HTML
Raw Permalink Normal View History

2023-12-28 15:39:22 +03:00
<div class="row">
<div class="col-md-2">
<span>Всего записей: {$nav.all}</span> |
</div>
<div class="col-md-10">
{if $nav.pages>24}
<select class="form-select form-control-sm navpage_select" data-url="{$url}">
{for $i=1 to $nav.pages}
<option value="{$i}" {if $i==$nav.curpage}SELECTED{/if}>{$i} {if $i==$nav.curpage}текущая{/if}</option>
{/for}
</select>
{else}
{for $i=1 to $nav.pages}
<a href="{$url}p{$i}/" class="btn btn-sm {if $i==$nav.curpage}btn-success{else}btn-secondary{/if}" style="padding-bottom: 0;padding-top: 0;">{$i}</a>
{/for}
{/if}
</div>
</div>