| 1 |
296 |
ahitrov |
% if ( $m->comp_exists ("/comps/$prj/header.msn") ) { |
| 2 |
|
|
<& "/comps/$prj/header.msn", alias => 'main' &> |
| 3 |
|
|
% } else { |
| 4 |
|
|
<& "/comps/header.msn", alias => 'main' &> |
| 5 |
|
|
% } |
| 6 |
|
|
|
| 7 |
|
|
|
| 8 |
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0"> |
| 9 |
|
|
<tr valign="top"><td style="padding:0 32px 0 18px;" width="1%" nowrap> |
| 10 |
|
|
<!--Menus--> |
| 11 |
|
|
% if ( $m->comp_exists ("/comps/$prj/left.msn") ) { |
| 12 |
|
|
<& "/comps/$prj/left.msn" &> |
| 13 |
|
|
% } |
| 14 |
|
|
<!--/Menus--> |
| 15 |
|
|
</td> |
| 16 |
|
|
|
| 17 |
|
|
<td width="1%"><img src="/i/<% $prj %>/diaton_device.png" width="84" height="334" alt="DIATON tonometer"></td> |
| 18 |
|
|
<td style="padding:0 30px 20px;" width="98%"> |
| 19 |
|
|
<!--Information--> |
| 20 |
|
|
|
| 21 |
|
|
<h2><% $section->name %></h2> |
| 22 |
|
|
|
| 23 |
|
|
% foreach my $cert ( @documents ) { |
| 24 |
|
|
% my $image = $cert->get_image('photo'); |
| 25 |
|
|
% next unless ref $image && exists $image->{filename}; |
| 26 |
|
|
% my $mini = $image->{mini}{'200x200'}; |
| 27 |
|
|
<div style="width:210px; height:210px; text-align:center; padding:5px;" class="fl"><a href="<% $image->{filename} %>" |
| 28 |
|
|
rel="lightbox" target="_blank"><image src="<% $mini->{filename} %>" |
| 29 |
|
|
width="<% $mini->{width} %>" height="<% $mini->{height} %>" border="0"></a></div> |
| 30 |
|
|
% } |
| 31 |
|
|
|
| 32 |
|
|
|
| 33 |
|
|
<!--/Information--> |
| 34 |
|
|
</td></tr> |
| 35 |
|
|
</table> |
| 36 |
|
|
|
| 37 |
|
|
|
| 38 |
|
|
|
| 39 |
|
|
% ### Футер |
| 40 |
|
|
% ############################################## |
| 41 |
|
|
% if ( $m->comp_exists ("/comps/$prj/footer.msn") ) { |
| 42 |
|
|
<& "/comps/$prj/footer.msn" &> |
| 43 |
|
|
% } else { |
| 44 |
|
|
<& "/comps/footer.msn" &> |
| 45 |
|
|
% } |
| 46 |
|
|
% ### /Футер |
| 47 |
|
|
<%args> |
| 48 |
|
|
|
| 49 |
|
|
$p => 1 |
| 50 |
|
|
$id => undef |
| 51 |
|
|
|
| 52 |
|
|
</%args> |
| 53 |
|
|
<%init> |
| 54 |
|
|
|
| 55 |
|
|
my $prj = $request->{project}; |
| 56 |
|
|
my $profile = $request->{project_profile}; |
| 57 |
|
|
my $root = $request->{project_section}; |
| 58 |
|
|
&abort404 if $id && $id !~ /^\d+$/; |
| 59 |
|
|
|
| 60 |
|
|
my @documents; |
| 61 |
|
|
my ($section) = $keeper->get_sections ( |
| 62 |
|
|
s => $root->id, |
| 63 |
|
|
class => 'promosuite::MultimediaSection', |
| 64 |
|
|
alias => 'cert', |
| 65 |
|
|
limit => 1, |
| 66 |
|
|
status => 1, |
| 67 |
|
|
); |
| 68 |
|
|
if ( ref $section ) { |
| 69 |
|
|
my $get_documents = $section->_sorted ? 'get_sorted_documents' : 'get_documents'; |
| 70 |
|
|
@documents = $keeper->$get_documents ( |
| 71 |
|
|
s => $section->id, |
| 72 |
|
|
class => 'promosuite::Multimedia', |
| 73 |
|
|
status => 1, |
| 74 |
|
|
); |
| 75 |
|
|
} |
| 76 |
|
|
</%init> |