-
Notifications
You must be signed in to change notification settings - Fork 8
/
forum_thread.html
88 lines (83 loc) · 4.78 KB
/
forum_thread.html
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
84
85
86
87
88
{include h}
<div id="Wrapper">
<div class="content">
<div id="Leftbar"></div>
{include r_m}
<div id="Main">
<div class="sep20"></div>
<div class="box">
<div class="header">
<div style="float: left; display: inline-block; margin-right: 10px; margin-bottom: initial!important;"><img src="{#WWW}upload/forum{php echo forum($forum,$fid,'id');}.png" onerror="this.src='{#WWW}upload/de.png'" border="0" align="default" width="73" /></div><div class="fr f12"><span class="snow">主题总数</span> <strong class="gray">{$forum[$fid]['threads']}</strong></div><a href="/">首页</a> <span class="chevron"> › </span>{$forum[$fid]['name']}
<div class="sep10"></div>
<span class="f12 gray">{$forum[$fid]['html']}</span>
</div>
<div id="TopicsNode">
{hook t_index_index_thread_list_top}
{foreach $top_list as $v}
<div class="cell item" style="">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="48" valign="top" align="center">
<a href="{php HYBBS_URL('my',$v['user']);}">
<img src="{#WWW}{$v.avatar.b}" class="avatar" width="48" border="0" align="default" /></a>
</td>
<td width="10"></td>
<td width="auto" valign="middle">
<span class="item_title">
<a href="{php HYBBS_URL('thread',$v['tid']);}">{$v.title}</a></span>
<div class="sep5"></div>
<span class="small fade">
<div class="votes"></div>
<strong><a href="{php HYBBS_URL('my',$v['user']);}">{$v.user}</a></strong> • <?php echo ($v['atime']+86400*30 > NOW_TIME) ? humandate($v['atime']) : date("Y-m-d H:i",$v['atime']);?> {if isset($v['buser'])} • 最后回复来自<strong>
<a href="{php HYBBS_URL('my',$v['buser']);}">{$v.buser}</a></strong>{/if}
</span>
</td>
{if $v['posts']}
<td width="70" align="right" valign="middle">
<a href="{php HYBBS_URL('thread',$v['tid']);}" class="count_livid">{if ($v['btime']+1800) > NOW_TIME}{/if}{$v.posts}</a>
</td>{/if}
</tr>
</table>
</div>
{/foreach}
{foreach $data as $v}
<div class="cell item">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="48" valign="top" align="center">
<a href="{php HYBBS_URL('my',$v['user']);}">
<img src="{#WWW}{$v.avatar.b}" class="avatar" width="48" border="0" align="default" /></a>
</td>
<td width="10"></td>
<td width="auto" valign="middle">
<span class="item_title">
<a href="{php HYBBS_URL('thread',$v['tid']);}">{$v.title}</a></span>
<div class="sep5"></div>
<span class="small fade">
<div class="votes"></div>
<strong><a href="{php HYBBS_URL('my',$v['user']);}">{$v.user}</a></strong> • <?php echo ($v['atime']+86400*30 > NOW_TIME) ? humandate($v['atime']) : date("Y-m-d H:i",$v['atime']);?> {if isset($v['buser'])} • 最后回复来自<strong>
<a href="{php HYBBS_URL('my',$v['buser']);}">{$v.buser}</a></strong>{/if}
</span>
</td>
{if $v['posts']}
<td width="70" align="right" valign="middle">
<a href="{php HYBBS_URL('thread',$v['tid']);}" class="count_livid">{if ($v['btime']+1800) > NOW_TIME}{/if}{$v.posts}</a>
</td>{/if}
</tr>
</table>
</div>
{/foreach}
{hook t_index_index_thread_list_bottom}
</div>
<div class="cell">
<span class="gray" align="left">第 1 到 {$conf['forumlist']} / 共 {$forum[$fid]['threads']} 个主题</span>
{if $page_count!==1}<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody><tr>
<td width="92%" align="right"><?php $tmp = ($forum[$fid]['threads']%$conf['forumlist']) ?(intval($forum[$fid]['threads']/$conf['forumlist'])+1) : intval($forum[$fid]['threads']/$conf['forumlist']) ; ?>{for $i=($pageid-5 < 1) ? 1 : $pageid -5; $i< (($pageid + 5 > $tmp) ? $tmp+1 : $pageid + 5) ; $i++}<a href="{php HYBBS_URL('forum',$fid,[$type=>$i]);}" class="{if $pageid !== $i}page_normal{else}{if $pageid == $i}page_current{/if}{/if}">{$i}</a> {/for}</td>
</tr>
</tbody></table>{/if}
</div>
</div>
</div>
</div>
{include f}