• sections.html

    615 616  
    76 76 </legend>
    77 77
    78 78 % if ($total || scalar @documents || defined($alpha) || defined($search) ) {
    79 <table border="0" cellspacing="0" cellpadding="2" width="100%">
    80 <tr>
    79 81 % if ($section_access == 2) {
    82 <td width="99%">
    80 83 <& "/contenido/components/new_objects_form.msn", proto => 'documents',
    81 sect_id => $owner->id, section => $owner,
    82 default => ($owner->default_document_class ? $owner->default_document_class : undef) &>
    84 sect_id => $owner->id, section => $owner,
    85 default => ($owner->default_document_class ? $owner->default_document_class : undef) &>
    86 </td>
    83 87 % }
    88 <td width="1%">
    89 <& "/contenido/components/section_page_size.msn", section => $owner &>
    90 </td>
    91 </tr>
    92 </table>
    84 93 <div style="font-size:12px; font-family:Arial;">
    85 94 <table border="0" cellspacing="0" cellpadding="2" width="100%" style="margin:4px 0 0; border:1px solid gray;">
    86 95 <tr bgcolor="#e0e0e0"><th colspan="4">Поиск по букве:&nbsp;&nbsp;[<a href="?id=<% $id %>" style="font-weight:normal;">сброс фильтра</a>]</th></tr>
     
    479 488
    480 489 $total = $keeper->get_documents(%filter, count=>1) unless $owner->no_count;
    481 490
    482 my $n = 40;
    491 my $n = ref $owner && $owner->_page_size ? $owner->_page_size : 40;
    483 492 my $first = $n * ($p - 1);
    484 493 ($first,$p)=(0,0) if (!$owner->no_count && $first>$total);
    485 494