Просмотр файла tpl/body.conlentlist.tpl

Размер файла: 1.97Kb
{section name=i loop=$post}
<div class="post{if $smarty.section.i.iteration is even}0{else}1{/if}">
<table class="post_msg" cellspacing="0" callpadding="0">
{if $post[i].icon.size eq 'big'}
<tr>
<td rowspan="3"><img src="{$post[i].icon.src}" alt="" /></td><td>
{$post[i].title} {if $post[i].new}<span class="new">new</span>{/if}
{elseif $post[i].icon.size eq 'small'}
<tr class="post_title"><td>
<img src="{$post[i].icon.src}" alt="" />
{$post[i].title} {if $post[i].new}<span class="new">new</span>{/if}
{else}
<tr class="post_title"><td>{$post[i].title} {if $post[i].new}<span class="new">new</span>{/if}
{/if}
{if $post[i].delete}
<a href="{$post[i].delete}">[x]</a>
{/if}
</td>
</tr>
{if $post[i].cit}
<tr>
<td class='quote'>
<span>{$post[i].cit.nick} ({$post[i].cit.time|vremja})</span><br />{$post[i].cit.msg|output_text}
</td>
</tr>
{/if}
{if $post[i].post}
<tr class="post_msg">
<td>{$post[i].post} {if $post[i].link_edit OR $post[i].link_cit}<br />{/if}
{if $post[i].link_edit}
<a title="Редактировать" href="{$post[i].link_edit}">[edit]</a>
{/if}
{if $post[i].link_cit}
<a title="Цитировать" href="{$post[i].link_cit}">[cit]</a>
{/if}
</td>
</tr>
{/if}
</table>
{if $post[i].files}
Прикрепленные файлы:<br />
<table class="post_files">
{section name=ff loop=$post[i].files}
<tr><td>
<img src="{$post[i].files[ff].icon}" alt="" /></td><td>
<a href="{$post[i].files[ff].link_down}">{$post[i].files[ff].name}</a></td><td>{$post[i].files[ff].size|size_file}</td><td>
{if $post[i].files[ff].rating_up}
<a title="Полезный файл" href="{$post[i].files[ff].rating_up}">[+]</a>{/if}
{$post[i].files[ff].summ_vote|intval}/{$post[i].files[ff].k_vote}
{if $post[i].files[ff].rating_down}
<a title="Бесполезный файл" href="{$post[i].files[ff].rating_down}">[-]</a>{/if}</td>
{if $post[i].files[ff].link_delete}<td>
<a title="Удалить файл" href="{$post[i].files[ff].link_delete}">[x]</a></td>
{/if}
</tr>
{/section}
</table>
{/if}
</div>
{/section}