| 1 |
296 |
ahitrov |
% if ( $m->comp_exists ("/comps/$prj/header.msn") ) { |
| 2 |
|
|
<& "/comps/$prj/header.msn" &> |
| 3 |
|
|
% } else { |
| 4 |
|
|
<& "/comps/header.msn" &> |
| 5 |
|
|
% } |
| 6 |
|
|
|
| 7 |
|
|
<table border="0" cellspacing="0" cellpadding="10" width="100%"> |
| 8 |
|
|
<tr valign="top"> |
| 9 |
|
|
<td width="80%"> |
| 10 |
|
|
|
| 11 |
|
|
% |
| 12 |
|
|
% ### Аннотация проекта |
| 13 |
|
|
% ############################################################ |
| 14 |
|
|
% if ( $p == 1 && !ref $document ) { |
| 15 |
|
|
% if ( $m->comp_exists ("/comps/$prj/block_project_anno.msn") ) { |
| 16 |
|
|
<& "/comps/$prj/block_project_anno.msn" &> |
| 17 |
|
|
% } else { |
| 18 |
|
|
<& "/comps/block_project_anno.msn" &> |
| 19 |
|
|
% } |
| 20 |
|
|
% } |
| 21 |
|
|
% ### /Аннотация проекта |
| 22 |
|
|
% |
| 23 |
|
|
|
| 24 |
|
|
<div class="mt10"></div> |
| 25 |
|
|
<a name="members"></a> |
| 26 |
|
|
<table border="0" cellspacing="0" cellpadding="0" width="100%" class="infoblock"> |
| 27 |
|
|
<tr> |
| 28 |
|
|
<td class="cc" width="100%"> |
| 29 |
|
|
|
| 30 |
|
|
% if ( $id && ref $document ) { |
| 31 |
|
|
% ### Один участник |
| 32 |
|
|
% ####################################################### |
| 33 |
|
|
% if ( $m->comp_exists ("/comps/$prj/announce.msn") ) { |
| 34 |
|
|
<& "/comps/$prj/announce.msn", document => $document &> |
| 35 |
|
|
% } else { |
| 36 |
|
|
<& "/comps/announce.msn", document => $document &> |
| 37 |
|
|
% } |
| 38 |
|
|
% |
| 39 |
|
|
% }else{ |
| 40 |
|
|
% ### Список участников |
| 41 |
|
|
% ####################################################### |
| 42 |
|
|
% if ( ref $section ) { |
| 43 |
|
|
<div class="text"> |
| 44 |
|
|
<h2><% $section->name %></h2> |
| 45 |
|
|
% if ( $m->comp_exists ("/comps/$prj/announce_list.msn") ) { |
| 46 |
|
|
<& "/comps/$prj/announce_list.msn", section => $section, p => $p, size => $profile->anno_count &> |
| 47 |
|
|
% } else { |
| 48 |
|
|
<& "/comps/announce_list.msn", p => $p, size => $profile->anno_count &> |
| 49 |
|
|
% } |
| 50 |
|
|
</div> |
| 51 |
|
|
% } |
| 52 |
|
|
% } ### /Область участников |
| 53 |
|
|
|
| 54 |
|
|
</td></tr> |
| 55 |
|
|
</table> |
| 56 |
|
|
</td> |
| 57 |
|
|
|
| 58 |
|
|
% ### Правая колонка |
| 59 |
|
|
% ############################################### |
| 60 |
|
|
<td width="20%"> |
| 61 |
|
|
% ### Блок внешнего анонса |
| 62 |
|
|
% ################################ |
| 63 |
|
|
% if ( $m->comp_exists ("/comps/$prj/block_contest.msn") ) { |
| 64 |
|
|
<& "/comps/$prj/block_contest.msn" &> |
| 65 |
|
|
% } else { |
| 66 |
|
|
<& "/comps/block_contest.msn" &> |
| 67 |
|
|
% } |
| 68 |
|
|
% ### /Блок внешнего анонса |
| 69 |
|
|
% |
| 70 |
|
|
% |
| 71 |
|
|
% ### Блок трансляций |
| 72 |
|
|
% ################################ |
| 73 |
|
|
% if ( $m->comp_exists ("/comps/$prj/block_translation.msn") ) { |
| 74 |
|
|
<& "/comps/$prj/block_translation.msn" &> |
| 75 |
|
|
% } else { |
| 76 |
|
|
<& /comps/block_translation.msn &> |
| 77 |
|
|
% } |
| 78 |
|
|
% ### /Блок трансляций |
| 79 |
|
|
% |
| 80 |
|
|
% |
| 81 |
|
|
<div class="mt10"></div> |
| 82 |
|
|
% |
| 83 |
|
|
% |
| 84 |
|
|
% ### Блок новостей |
| 85 |
|
|
% ################################ |
| 86 |
|
|
% if ( $profile->news ) { |
| 87 |
|
|
% if ( $m->comp_exists ("/comps/$prj/block_news.msn") ) { |
| 88 |
|
|
<& "/comps/$prj/block_news.msn" &> |
| 89 |
|
|
% } else { |
| 90 |
|
|
<& /comps/block_news.msn &> |
| 91 |
|
|
% } |
| 92 |
|
|
% } |
| 93 |
|
|
% ### /Блок новостей |
| 94 |
|
|
% |
| 95 |
|
|
% |
| 96 |
|
|
|
| 97 |
|
|
</td> |
| 98 |
|
|
% ### /Правая колонка |
| 99 |
|
|
|
| 100 |
|
|
</tr> |
| 101 |
|
|
</table> |
| 102 |
|
|
|
| 103 |
|
|
% ### Футер |
| 104 |
|
|
% ############################################## |
| 105 |
|
|
% if ( $m->comp_exists ("/comps/$prj/footer.msn") ) { |
| 106 |
|
|
<& "/comps/$prj/footer.msn" &> |
| 107 |
|
|
% } else { |
| 108 |
|
|
<& "/comps/footer.msn" &> |
| 109 |
|
|
% } |
| 110 |
|
|
% ### /Футер |
| 111 |
|
|
<%args> |
| 112 |
|
|
|
| 113 |
|
|
$p => 1 |
| 114 |
|
|
$id => undef |
| 115 |
|
|
|
| 116 |
|
|
</%args> |
| 117 |
|
|
<%init> |
| 118 |
|
|
|
| 119 |
|
|
my $prj = $request->{project}; |
| 120 |
|
|
my $profile = $request->{project_profile}; |
| 121 |
|
|
my $root = $request->{project_section}; |
| 122 |
|
|
&abort404 if $id && $id !~ /^\d+$/; |
| 123 |
|
|
|
| 124 |
|
|
my $document; |
| 125 |
|
|
my ($section) = $keeper->get_sections ( |
| 126 |
|
|
s => $root->id, |
| 127 |
|
|
class => 'promosuite::AnnoSection', |
| 128 |
|
|
limit => 1, |
| 129 |
|
|
status => 1, |
| 130 |
|
|
); |
| 131 |
|
|
if ( $id && ref $section ) { |
| 132 |
|
|
$document = $keeper->get_document_by_id ($id, |
| 133 |
|
|
s => $section->id, |
| 134 |
|
|
class => 'promosuite::Anons', |
| 135 |
|
|
status => 1, |
| 136 |
|
|
); |
| 137 |
|
|
} |
| 138 |
|
|
</%init> |