Revision 296 (by ahitrov, 2013/03/26 17:59:01) |
Promosite (anthill) project source
|
<table border="0" cellspacing="0" cellpadding="0" width="100%" class="infoblock">
<tr>
<td class="cc" width="100%">
<div class="text">
% if ( ref $img && exists $img->{filename} ) {
<img src="<% $img->{filename} %>" border="0" align="left" class="imageBorder1">
% }
% if ($profile->header) {
<h2><% $profile->header %></h2>
% }
% if ($profile->abstr) {
<div id="intro_anounce" style="display:inline;">
<p><& /inc/text_format.msn, doc => $profile, field => 'abstr' &></p>
% if ( $profile->body ) {
<a href="" onClick="document.getElementById('intro_full').style.display='inline';document.getElementById('intro_anounce').style.display='none';return false;">Подробнее…</a>
% }
</div>
% }
% if ( $profile->body ) {
<div id="intro_full" style="display:none;">
<p><& /inc/text_format.msn, doc => $profile, field => 'body' &></p>
<p><a href="" onClick="document.getElementById('intro_anounce').style.display='inline';document.getElementById('intro_full').style.display='none';return false;">скрыть</a>
</div>
% }
</div>
</td>
</tr>
</table>
<%init>
my $prj = $request->{project};
my $profile = $request->{project_profile};
my $img = $profile->get_image('avatar');
</%init>