Revision 296 (by ahitrov, 2013/03/26 17:59:01) Promosite (anthill) project source
% if ( $m->comp_exists ("/comps/$prj/header.msn") ) {
<& "/comps/$prj/header.msn", alias => 'main' &>
% } else {
<& "/comps/header.msn", alias => 'main' &>
% }

<script type="text/javascript">
	var flashvars = {
% if ( $id && ref $doc ) {
	  id: "<% $id %>"
% }
	};
	var params = {
	  bgcolor: "#2b1104"
	};

	swfobject.embedSWF("/i/<% $prj %>/swf/card.swf", "myContent", "600", "520", "9.0.0", "/i/<% $prj %>/swf/expressInstall.swf",flashvars,params);
</script>

<div id="myContent">
	<h1 style="color:red;">Для просмотра открытки Halloween, скачай Flash плеер</h1>
	<p><a href="http://www.adobe.com/go/getflashplayer"><img
 src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
 alt="Get Adobe Flash player" border="0" /></a></p>
</div>

% ### Футер
% ##############################################
% if ( $m->comp_exists ("/comps/$prj/footer.msn") ) {
<& "/comps/$prj/footer.msn" &>
% } else {
<& "/comps/footer.msn" &>
% }
% ### /Футер
<%args>

	$id	=> undef

</%args>
<%init>

  &abort404	if $id && $id =~ /\D/;
  my $prj = $request->{project};
  my $profile = $request->{project_profile};
  my $root = $request->{project_section};

  my $doc = $keeper->get_document_by_id ( $id,
			class	=> 'promosuite::Postcard',
			status	=> 1,
			light	=> 1,
		)				if $id;
  $m->redirect("./")	if $id && !ref $doc;

</%init>