Revision 296 (by ahitrov, 2013/03/26 17:59:01) |
Promosite (anthill) project source
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
% if ( ref $images && $images->{maxnumber} ) {
<td><div style="padding:0px 15px;">
% foreach ( 1..$images->{maxnumber} ) {
% my $img = $images->{"image_$_"};
% my $mini = $img->{mini};
% if ( ref $mini && exists $mini->{filename} && $photo_href ) {
<a href="slide_show.html?id=<% $doc->id %>&num=<% $_ %>&class=<% $doc->class %>"
onclick="openWin('Photo','slide_show.html?id=<% $doc->id %>&num=<% $_ %>&class=<% $doc->class %>',550,590); return false;"><img
src="<% $mini->{filename} %>" width="<% $mini->{width} %>" height="<% $mini->{height} %>"
style="margin-bottom:10px; border:0; margin-top:13px;"><br>
% } elsif ( ref $img && exists $img->{filename} ) {
<img src="<% $img->{filename} %>" width="<% $img->{width} %>" height="<% $img->{height} %>"
style="margin-bottom:10px; border:0; margin-top:13px;"><br>
% }
% }
</div></td>
% }
<td width="100%">
% if ( $show_header ) {
<div style="background:#333333; padding:10px 15px; margin-top:13px" class="hdr" ><% $doc->name %></div>
% }
% if ( $show_dtime || $doc->source ) {
<div class="about">\
% if ($show_dtime) {
% my $date = Contenido::DateTime::new ( postgres => $doc->dtime );
<% $date->dmy('.').sprintf(" %02d:%02d", $date->hour, $date->min).($doc->source ? ' | ' : '') %>
% }
% if ( $doc->source ) {
<% $a1.$doc->source.$a2 %>
% }
</div>
% }
<div class="about" ><div style="width: 600px;">
<& /inc/text_format.msn, doc => $doc &></div>
</div>
</td>
</tr>
</table>
<%args>
$doc => undef
$show_header => undef
$show_dtime => undef
$photo_href => 1
</%args>
<%init>
return unless ref $doc;
my $prj = $request->{project};
my $images = $doc->get_image('pictures');
my ($a1, $a2) = $doc->url ? ('<a href="http://www.rambler.ru/click?from=market_'.$prj.'&_URL='.$doc->url.'" target="_blank">','</a>') : ('','');
</%init>