Line # Revision Author
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 <div class="mt10"></div>
12 <a name="members"></a>
13 <table border="0" cellspacing="0" cellpadding="0" width="100%" class="infoblock">
14 <tr>
15 <td class="cc" width="100%">
16
17 % if ( $id && ref $document ) {
18 % ### Вывод документа
19 % #######################################################
20 % if ( $m->comp_exists ("/comps/$prj/article.msn") ) {
21 <& "/comps/$prj/article.msn", document => $document &>
22 % } else {
23 <& "/comps/article.msn", document => $document &>
24 % }
25 % } ### /Область документа
26
27 </td></tr>
28 </table>
29 </td>
30
31 % ### Правая колонка
32 % ###############################################
33 <td width="20%">
34 % if ( $m->comp_exists ("/comps/$prj/right.msn") ) {
35 <& "/comps/$prj/right.msn" &>
36 % }else{
37 <& /comps/right.msn &>
38 % }
39 </td>
40 % ### /Правая колонка
41
42 </tr>
43 </table>
44
45 % ### Футер
46 % ##############################################
47 % if ( $m->comp_exists ("/comps/$prj/footer.msn") ) {
48 <& "/comps/$prj/footer.msn" &>
49 % } else {
50 <& "/comps/footer.msn" &>
51 % }
52 % ### /Футер
53 <%args>
54
55 $id => undef
56
57 </%args>
58 <%init>
59
60 &abort404 unless $id;
61 &abort404 unless $id =~ /^\d+$/;
62 my $prj = $request->{project};
63 my $profile = $request->{project_profile};
64 my $root = $request->{project_section};
65
66 my $document;
67 $document = $keeper->get_document_by_id ($id,
68 s => $root->id,
69 # class => 'promosuite::Article',
70 class => 'promosuite::News',
71 status => 1,
72 );
73 </%init>