topic.tpl 2.96 KB
<div class="title3 mt">Ôîðóì</div>
 <br />
<div style="margin-left:8px;margin-bottom:5px;">
<a href="javascript:history.go(-1);"><u><font color="#07109d">« Íàçàä</font></u></a>
</div>


<div class="topic">
<h2>{$topic.title|stripslashes|escape:"html"}</h2>
{if $topic.pic}<img src="{$smarty.const.URL}uploaded/pic/forum/topic/{$topic.pic}" align="left" border="0">{/if}
{if $topic.parent_table ne "topic"}{$topic.about|stripslashes}{else}{$topic.about|stripslashes|escape:"html"|nl2br}{/if}
<div class="both"></div>
<div style="color: rgb(159, 159, 159);" align="right">&nbsp;{$topic.mktime|date_format:"%d-%m-%Y"}, Êîììåíòàðèåâ:{$topic.comments}, Ïðîñìîòðîâ:{$topic.view}&nbsp;<a href="javascript:popup_forum({$topic.tree_id},{$topic.id});"><font color="#EE1C25"><u><b>Êîììåíòèðîâàòü</b></u></font></a></div>
<div class="both"></div>
</div>

{if count($commentsData.data)}
        {section name=i loop=$commentsData.data}
        <table border='0' cellpadding='2' cellspacing='0' width='100%' style="font-family:tahoma;">
        <tr>
        <td width="{$commentsData.data[i]._level*15}"></td><td>
        <table width='100%' BORDER=0 CELLPADDING=2 CELLSPACING=0 style="font-family:tahoma;">
        <tr><td valign="top">{if $commentsData.data[i].pic ne NULL}<img align="right" src='{$smarty.const.URL}uploaded/pic/forum/user/{$commentsData.data[i].pic}' alt="{$forum[i].name|escape:"html"|capitalize}" vspace="0" hspace="0" width="60" id="bor">{else}<img src='img/lightbulb.gif' align="right" hspace="0" vspace="0">{/if}</td><td valign="top" width="100%"><p align="justify"><a name="cm{$forum[i].id}">{if $commentsData.data[i].login ne NULL}<span style="font-family:tahoma;font-size:14px;font-weight:bold;color:#008000"><u>{$commentsData.data[i].login|escape:"html"|capitalize}</u></span>{else}<span style="font-family:tahoma;font-size:14px;font-weight:bold;color:#008000">Áåç èìåíè</span>{/if},</a>&nbsp;&nbsp;<a href='javascript:popup_forum({$commentsData.data[i].id},{$topic.id})' style='color:#CD5C5C;font-family:tahoma;font-size:14px;TEXT-DECORATION: underline;font-weight:bold'>Êîììåíòèðîâàòü</a>
        <div style="color:#619ab5;font-family:tahoma;font-weight:bold">{$commentsData.data[i].title|escape:"html"}</div>
        <div style='color:#000000;font-size:11px;font-family:tahoma;padding-left:20px'>{$commentsData.data[i].about|escape:"html"|smile|nl2br}</div>
        </p>
        </td></tr>
        <tr><td style='border-bottom:2px solid #e1e9ee;color:#989797;font-family:tahoma;font-size:11px;' colspan="2">&nbsp;{$commentsData.data[i].mktime|date_format:"%d-%m-%Y %H-%M"}
        </td></tr>
        </tr></table>
        </td>
        </tr>
        </table>
        {/section}
        <br>
        {if $commentsData.links}
        <table border='0' cellpadding='0' cellspacing='2' width='100%' style="background:#e8e8e8;border-bottom:1px solid #cacaca;font-family:tahoma;font-size:12px">
        <tr><td>&nbsp;Ñòðàíèöû:</td><td width='100%'>{$commentsData.links}</td></tr>
        </table>
        {/if}
{/if}