% if ($total > $size) {
Страницы: <& /inc/pages_.msn, p => $p, n => $size, total => $total, delimiter => ' ' &>
% }\
% ##### Картинко
% my $img = $doc->get_image('icon');
% if (ref $img && exists $img->{filename}) {
% if ( $doc->abstr ) { <% $doc->abstr %> % } % if ( $doc->country ) { Страна: <% $doc->country %> % } % if ($doc->rating) {
% } подробнее >> |
% unless ($i++ % 2) {
% } |
Страницы: <& /inc/pages_.msn, p => $p, n => $size, total => $total, delimiter => ' ' &>
% } <%args> $p => 1 $size => 4 $section => undef %args> <%init> my $prj = $request->{project}; my $profile = $request->{project_profile}; my $root = $request->{project_section}; ($section) = $keeper->get_sections ( s => $root->id, class => 'promosuite::AnnoSection', limit => 1, status => 1, ) unless ref $section; my $total = $keeper->get_documents ( s => $section->id, class => 'promosuite::Anons', count => 1, ); my @docs; if ($p <= (int($total/$size) + ($total % $size ? 1 : 0)) ) { if ( $section->_sorted ) { @docs = $keeper->get_sorted_documents ( s => $section->id, class => 'promosuite::Anons', limit => $size, offset => ($p-1)*$size, ); }else{ @docs = $keeper->get_documents ( s => $section->id, class => 'promosuite::Anons', limit => $size, offset => ($p-1)*$size, ); } } %init>