EIOS/rabprog/tpl/mod_navpages.html

18 lines
707 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>