Line # Revision Author
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 <script type="text/javascript">
8 var flashvars = {
9 % if ( $id && ref $doc ) {
10 id: "<% $id %>"
11 % }
12 };
13 var params = {
14 bgcolor: "#2b1104"
15 };
16
17 swfobject.embedSWF("/i/<% $prj %>/swf/card.swf", "myContent", "600", "520", "9.0.0", "/i/<% $prj %>/swf/expressInstall.swf",flashvars,params);
18 </script>
19
20 <div id="myContent">
21 <h1 style="color:red;">Для просмотра открытки Halloween, скачай Flash плеер</h1>
22 <p><a href="http://www.adobe.com/go/getflashplayer"><img
23 src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
24 alt="Get Adobe Flash player" border="0" /></a></p>
25 </div>
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 $id => undef
38
39 </%args>
40 <%init>
41
42 &abort404 if $id && $id =~ /\D/;
43 my $prj = $request->{project};
44 my $profile = $request->{project_profile};
45 my $root = $request->{project_section};
46
47 my $doc = $keeper->get_document_by_id ( $id,
48 class => 'promosuite::Postcard',
49 status => 1,
50 light => 1,
51 ) if $id;
52 $m->redirect("./") if $id && !ref $doc;
53
54 </%init>