| 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 |
|
|
|
| 8 |
|
|
% ### контент |
| 9 |
|
|
|
| 10 |
|
|
<table cellspacing="0" cellpadding="0" width="100%" border="0"> |
| 11 |
|
|
<tr><td width="4%"><div style="width: 10px; height: 1px"><spacer height="1" width="10" type="block"></div></td> |
| 12 |
|
|
<td width="92%" valign="top" style="padding-top:11px;" align="left"><div |
| 13 |
|
|
style="padding:14px 15px; width:890px;" class="hdr"><% $document->name %></div> |
| 14 |
|
|
% |
| 15 |
|
|
% if ( $m->comp_exists ("/comps/$prj/article.msn") ) { |
| 16 |
|
|
<& "/comps/$prj/article.msn", doc => $document, photo_href => undef &> |
| 17 |
|
|
% } else { |
| 18 |
|
|
<& "/comps/article.msn", doc => $document, photo_href => undef &> |
| 19 |
|
|
% } |
| 20 |
|
|
% |
| 21 |
|
|
</td> |
| 22 |
|
|
<td width="4%"><div style="width: 10px; height: 1px"><spacer height="1" width="10" type="block"></div></td> |
| 23 |
|
|
</tr> |
| 24 |
|
|
</table> |
| 25 |
|
|
|
| 26 |
|
|
|
| 27 |
|
|
% ### Футер |
| 28 |
|
|
% ############################################## |
| 29 |
|
|
% if ( $m->comp_exists ("/comps/$prj/footer.msn") ) { |
| 30 |
|
|
<& "/comps/$prj/footer.msn" &> |
| 31 |
|
|
% } else { |
| 32 |
|
|
<& "/comps/footer.msn" &> |
| 33 |
|
|
% } |
| 34 |
|
|
% ### /Футер |
| 35 |
|
|
<%args> |
| 36 |
|
|
|
| 37 |
|
|
|
| 38 |
|
|
</%args> |
| 39 |
|
|
<%init> |
| 40 |
|
|
|
| 41 |
|
|
my $prj = $request->{project}; |
| 42 |
|
|
my $profile = $request->{project_profile}; |
| 43 |
|
|
my $root = $request->{project_section}; |
| 44 |
|
|
|
| 45 |
|
|
my $document; |
| 46 |
|
|
($document) = $keeper->get_documents ( |
| 47 |
|
|
s => $root->id, |
| 48 |
|
|
class => 'promosuite::Article', |
| 49 |
|
|
status => 'positive', |
| 50 |
|
|
limit => 1, |
| 51 |
|
|
); |
| 52 |
|
|
&abort404 unless ref $document; |
| 53 |
|
|
my $images = $document->get_image('pictures'); |
| 54 |
|
|
|
| 55 |
|
|
</%init> |