Index: sections.html =================================================================== --- sections.html (revision 623) +++ sections.html (revision 624) @@ -69,7 +69,7 @@ в разделе\ % } % if (!$owner->no_count && $total > 0) { - (всего: <% $total %>, показано с <% $first + 1 %> по <% ($first + $n > $total) ? $total : $first + $n %>) + (всего: <% $total %>, показано с <% $first + 1 %> по <% $sorted ? $total : ($first + $n > $total) ? $total : $first + $n %>) % } elsif ( $owner->no_count ) { (без пересчета, показано с <% $first + 1 %> по <% $first + scalar @documents %>) % } @@ -133,6 +133,7 @@
% if ( $owner->no_count ) { <& /inc/pages_nocount.msn, p=>$p, n=>$n, found=> scalar @documents, href=>'sections.html', params=>\%ARGS, size => 15 &> +% } elsif ( $sorted ) { % } else { <& /inc/pages_.msn, p=>$p, n=>$n, total=>$total, href=>'sections.html', params=>\%ARGS, &> % } @@ -143,6 +144,7 @@
% if ( $owner->no_count ) { <& /inc/pages_nocount.msn, p=>$p, n=>$n, found=> scalar @documents, href=>'sections.html', params=>\%ARGS, size => 15 &> +% } elsif ( $sorted ) { % } else { <& /inc/pages_.msn, p=>$p, n=>$n, total=>$total, href=>'sections.html', params=>\%ARGS, &> % }