Revision 296 (by ahitrov, 2013/03/26 17:59:01) Promosite (anthill) project source
% if ( $m->comp_exists ("/comps/$prj/popup_header.msn") ) {
<& "/comps/$prj/popup_header.msn" &>
% } else {
<& "/comps/popup_header.msn" &>
% }
<br>
<table border="0" cellspacing="0" cellpadding="0" align="center" width="320">
<tr><td style="border:1px solid gray;">
%#<iframe id="player" src="<% $doc->url %>" width="700" height="380" frameborder="0" scrolling="no"></iframe>
<object width="390" height="370">
	<param name="movie" value="<% $doc->url %>"></param>
	<embed width="390" height="370" src="<% $doc->url %>" type="application/x-shockwave-flash" allowScriptAccess="never"></embed>
</object>

</td></tr>
<tr>
<td style="padding:5px;">
<b><% $doc->name %></b>
</td></tr>
<tr><td style="padding:5px;">
<& /inc/text_format.msn, doc => $doc, field => 'abstr' &>
</td></tr>
</table>
% if ( $m->comp_exists ("/comps/$prj/popup_footer.msn") ) {
<& "/comps/$prj/popup_footer.msn" &>
% } else {
<& "/comps/popup_footer.msn" &>
% }
<%args>

	$id	=> undef

</%args>
<%init>

  &abort404	unless $id && $id =~ /^\d+$/;
  my $prj = $request->{project};
  my $doc = $keeper->get_document_by_id ( $id,
		class	=> 'promosuite::Promoblock',
		status	=> 1,
	);
  &abort404	unless ref $doc;

</%init>