% if ( $m->comp_exists ("/comps/$prj/header.msn") ) { <& "/comps/$prj/header.msn" &> % } else { <& "/comps/header.msn" &> % } % ### контент
<% $section->name %>
% if ( ref $desc && $desc->abstr ) {
<% $desc->abstr %>
% }
% my ($wday, $wcount) = (0,0); % foreach my $event (@$documents) { % my $date = Contenido::DateTime->new( postgres => $event->start ); % my $dw = $date->wday; % if ($dw != $wday) { % if ( $wcount && !($wcount % 4) && 1==0 ) { % } % $wcount++; % $wday = $dw;
<% $date->day.' '.Encode::encode('utf-8', $date->month_name) %>, <% $wdays{$dw} %>
% }
<% $date->hour %>.<% sprintf("%02d",$date->min) %> <% $event->name %> <% $event->abstr %>
% }
Показы дизайнеров RFW вне основного расписания:
% if ( ref $desc && $desc->body ) {
<% $desc->body %>
% }
% ### Футер % ############################################## % if ( $m->comp_exists ("/comps/$prj/footer.msn") ) { <& "/comps/$prj/footer.msn" &> % } else { <& "/comps/footer.msn" &> % } % ### /Футер <%once> my %wdays = ( 1 => 'понедельник', 2 => 'вторник', 3 => 'среда', 4 => 'четверг', 5 => 'пятница', 6 => 'суббота', 7 => 'воскресенье', ); <%args> $p => 1 $id => undef <%init> my $prj = $request->{project}; my $profile = $request->{project_profile}; my $root = $request->{project_section}; &abort404 if $id && $id !~ /^\d+$/; my $documents; my ($section) = $keeper->get_sections ( s => $root->id, class => 'promosuite::EventSection', limit => 1, status => 1, ); my $desc; if ( ref $section ) { $documents = $keeper->get_documents ( s => $section->id, class => 'promosuite::Event', status => 1, order_by => 'start', return_mode => 'array_ref', ); ($desc) = $keeper->get_documents ( s => $section->id, class => 'promosuite::Article', status => 'positive', limit => 1, ); }