topic.tpl
7.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<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> {$topic.mktime|date_format:"%d-%m-%Y"}, Êîììåíòàðèåâ:{$topic.comments}, Ïðîñìîòðîâ:{$topic.view} <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><br />
{*
{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> <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"> {$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>
,<a href='javascript:popup_forum_edit({$commentsData.data[i].id})'>Ïðàâèòü</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> Ñòðàíèöû:</td><td width='100%'>{$commentsData.links}</td></tr>
</table>
{/if}
{/if}
*}
{if count($commentsData.data)}
{section name=i loop=$commentsData.data}
<table border='0' cellpadding='2' cellspacing='0' width='100%' style="font-family:tahoma;">
{section name=j loop=$commentsData.data[i].child}<tr><td bgcolor="#EEEEEE" colspan="2"><p>Öèòàòà:</p><p>Ñîîáùåíèå îò {$commentsData.data[i].login}</p><p style="font-size:11px;color:#858585;">{$commentsData.data[i].about|escape:"html"|smile|nl2br}</p><p style="color:#057DA4">{$commentsData.data[i].child[j].login}</p>{$commentsData.data[i].child[j].about|escape:"html"|smile|nl2br}<p style="color:#989797;font-size:10px;">{$commentsData.data[i].mktime|date_format:"%d-%m-%Y %H-%M"}</p></td></tr>
<tr><td>
<a href="admin.php?action=forum&topicID={$topic.id}&commentDeleteID={$commentsData.data[i].child[j].id}" onClick="return del()" style='color:#d52222;font-family:tahoma;font-size:11px;TEXT-DECORATION: underline;font-weight:normal'>Óäàëèòü</a>
,<a href='javascript:popup_forum_edit({$commentsData.data[i].child[j].id})'>Ïðàâèòü</a>
</td></tr>
<tr><td> </td></tr>{/section}
<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].pic1 ne NULL}<img align="right" src='{$smarty.const.URL}uploaded/pic/forum/user/{$commentsData.data[i].pic1}' alt="{$forum[i].name|escape:"html"|capitalize}" vspace="0" hspace="0" width="60" id="bor">{else}<img src='{$smarty.const.URL}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> <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>
{if $user.type eq 1}<a href="{$smarty.const.URL}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>, <a href='javascript:popup_forum_edit({$commentsData.data[i].id})'>Ïðàâèòü</a>{/if}
<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'>{if $commentsData.data[i].pic ne NULL}<img align="right" border="0" src="{$smarty.const.URL}uploaded/pic/forum/{$commentsData.data[i].pic}" />{/if}{$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"> {$commentsData.data[i].mktime|date_format:"%d-%m-%Y %H-%M"}
<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>
,<a href='javascript:popup_forum_edit({$commentsData.data[i].id})'>Ïðàâèòü</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> Ñòðàíèöû:</td><td width='100%'>{$commentsData.links}</td></tr>
</table>
{/if}
{/if}