topic.tpl 3.37 KB
<table border="0" cellpadding="2" cellspacing="0" width="100%" align="center" class="topic">
<tr><td><img src="img/black_strelki.gif" align="left" hspace="5" vspace="2"><strong>{$topic.title|stripslashes|escape:"html"}11{$topic.parent_table}</strong></td></tr>
<tr><td>{if $topic.pic}<img src="{$smarty.const.URL}pic/forum/{$topic.pic}" align="left" border="0">{/if}{if $topic.parent_table ne "topic"}{$topic.about|stripslashes}{else}{$topic.about|stripslashes|escape:"html"|nl2br}{/if}</td></tr>
<tr>
    <td>&nbsp;{$topic.mktime|date_format:"%d-%m-%Y"}, Êîììåíòàðèåâ:{$topic.comments}, Ïðîñìîòðîâ:{$topic.view}&nbsp;<a href="javascript:popup_forum({$topic.tree_id},{$topic.id});" id="link_comment"><b>Êîììåíòèðîâàòü</b></a></td>
   </tr>
   
{if $topic.parent_table eq "topic"}
<tr>
    <td align="right"><input type="button" class="button_delete" value="Óäàëèòü" onClick="del('{$smarty.const.URL}admin.php?action=forum&deleteID={$topic.id}');"></td>
   </tr>
{/if}
</table>

{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 $forum[i].photo ne NULL}<a href="/club/photos_{$forum[i].user_id}.phtml" target="_blank"><img align="right" src='/UserFiles/Image/club/{$forum[i].photo}' title="{$forum[i].name|escape:"html"|capitalize}" alt="{$forum[i].name|escape:"html"|capitalize}" vspace="0" hspace="0" width="60" id="bor"></a>{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"|nl2br}</div>
        </p>
        </td></tr>
        <tr><td style='border-bottom:2px solid #e1e9ee;color:#989797;font-family:tahoma;font-size:11px;' colspan="2">&nbsp;{$forum[i].datetime}

                <a href="admin.php?action=forum&topicID={$topic.id}&commentDeleteID={$commentsData.data[i].id}" onClick="return del()" style='color:#d52222;font-family:tahoma;font-size:11px;TEXT-DECORATION: underline;font-weight:normal'>Óäàëèòü</a>

        </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}