• sections.html

    117 118  
    69 69 % } else {
    70 70 в разделе\
    71 71 % }
    72 % if ($total > 0) {
    72 % if (!$owner->no_count && $total > 0) {
    73 73 (всего: <% $total %>, показано с <% $first + 1 %> по <% ($first + $n > $total) ? $total : $first + $n %>)
    74 % } elsif ( $owner->no_count ) {
    75 (<span style="color:yellow">без пересчета</span>, показано с <% $first + 1 %> по <% $first + scalar @documents %>)
    74 76 % }
    75 77 </legend>
    76 78
    77 % if ($total or defined($alpha) or defined($search) ) {
    79 % if ($total || scalar @documents || defined($alpha) || defined($search) ) {
    78 80 % if ($section_access == 2) {
    79 81 <& "/contenido/components/new_objects_form.msn", proto => 'documents',
    80 82 sect_id => $owner->id,
     
    121 123 % }
    122 124
    123 125 <div style="height:5px"><spacer type="block" height="5"></div>
    126 % if ( $owner->no_count ) {
    127 <& /inc/pages_nocount.msn, p=>$p, n=>$n, found=> scalar @documents, href=>'sections.html', params=>\%ARGS, size => 15 &>
    128 % } else {
    124 129 <& /inc/pages_.msn, p=>$p, n=>$n, total=>$total, href=>'sections.html', params=>\%ARGS, &>
    130 % }
    125 131 </div>
    126 132
    127 133 <& /contenido/components/section_browse.msn, documents => \@documents, columns => \@columns, section => $owner, filter => \%filter_params, %ARGS &>
    128 134
    129 135 <div style="font-size:12px; font-family:Arial;">
    136 % if ( $owner->no_count ) {
    137 <& /inc/pages_nocount.msn, p=>$p, n=>$n, found=> scalar @documents, href=>'sections.html', params=>\%ARGS, size => 15 &>
    138 % } else {
    130 139 <& /inc/pages_.msn, p=>$p, n=>$n, total=>$total, href=>'sections.html', params=>\%ARGS, &>
    140 % }
    131 141 <div style="height:5px"><spacer type="block" height="5"></div>
    132 142 </div>
    133 143
     
    326 336 }
    327 337 }
    328 338
    329 $total = $keeper->get_documents(%filter, count=>1);
    339 $total = $keeper->get_documents(%filter, count=>1) unless $owner->no_count;
    330 340
    331 341 my $n = 40;
    332 342 my $first = $n * ($p - 1);
    333 ($first,$p)=(0,0) if ($first>$total);
    343 ($first,$p)=(0,0) if (!$owner->no_count && $first>$total);
    334 344
    335 345 if ($class && !$use_section) {
    336 346 @documents = $keeper->get_documents(%filter, %order, limit=>$n, offset=>$first);