Line # Revision Author
1 195 ahitrov <& "/contenido/components/title.msn" &>
2 % if ($document) {
3 <& "/contenido/components/document_links.msn", document => $document &>
4 % } else {
5 <p><font color="red">�� ���� �������� �������� �� ������ id=<% $id %> � class=<% $class %></font></p>
6 % }
7 </body>
8 </html>
9
10 <%ARGS>
11 $class => undef
12 $id => undef
13 </%ARGS>
14
15 <%INIT>
16 return unless ($state->{available_links} and @{$state->{available_links}});
17 my $document;
18 if ($id && ($id !~ /\D/) && ($id > 0)) {
19 $document = $keeper->get_document_by_id($id, class=>$class);
20 }
21 </%INIT>
22