-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy paththread_index.html
160 lines (160 loc) · 8.64 KB
/
thread_index.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{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" style="border-bottom: 0px;">
<div class="header"><div class="fr"><a href="{php HYBBS_URL('my',$thread_data['user']);}"><img src="{#WWW}{$thread_data.avatar.b}" class="avatar" width="73" border="0" align="default" /></a></div>
<a href="{#WWW}">首页</a>
<?php $tmp_fid = forum($forum,$thread_data['fid'],'fid'); ?>
<?php
$tmp_str = '';
while ($tmp_fid != -1) {
$tmp_str='<span class="chevron"> › </span><a href="' .HYBBS_URLA('forum','',forum($forum,$tmp_fid,'id')).'">'.forum($forum,$tmp_fid,'name').'</a>'.$tmp_str;
if(forum($forum,$tmp_fid,'fid') != -1){
$tmp_fid = forum($forum,$tmp_fid,'fid');
}else{
break;
}
}
echo $tmp_str;
?>
<span class="chevron"> › </span>
<a href="{php HYBBS_URL('forum','',forum($forum,$thread_data['fid'],'id'))}">{php echo forum($forum,$thread_data['fid'],'name');}</a>
<div class="sep10"></div>
<h1>{$thread_data.title}{if $thread_data['state']}<span title="禁止回复" style="color: brown;"> - 已锁定</span>{/if}</h1>
<div id="topic_280756_votes" class="votes">
<a href="javascript:void(0);"onclick="tp('thread1',{$thread_data.tid},this)" class="vote"><span class="icon-chevron-up"></span> <span style="padding:0">{$thread_data.goods}</span></a> <a href="javascript:void(0);"onclick="tp('thread2',{$thread_data.tid},this)" class="vote"><span class="icon-chevron-down"></span> <span style="padding:0">{$thread_data.nos}</span></a></div> <small class="gray"><a href="{php HYBBS_URL('my',$thread_data['user']);}">{$thread_data.user}</a> · <?php echo ($thread_data['atime']+86400*120 > NOW_TIME) ? humandate($thread_data['atime']) : date("Y-m-d H:i",$thread_data['atime']);?> · {$thread_data['views']} 次点击 </small>
</div>
<div class="cell">
<div class="topic_content">
{hook t_thread_content_top}
{if $thread_data['show'] && $thread_data['gold_show']}
{$post_data.content}
{else}
{if $thread_data['gold_show']}
<blockquote style="color: #B75C5C;font-weight: bold;">
内容被隐藏,你需要回复主题后才可见.
</blockquote>
{else}
<blockquote style="color: #B75C5C;font-weight: bold;">
主题内容你需要付费可见 <a href="javascript:void(0);" onclick="buy_thread({$thread_data['tid']},{$thread_data['gold']})">(点击购买)</a> 售价:{$thread_data['gold']} 金币
</blockquote>
{/if}
{/if}
{hook t_thread_content_bottom}
</div>
</div>
{if IS_LOGIN }
<div class="topic_buttons">
<div class="fr gray f11" style="line-height: 12px; padding-top: 3px; text-shadow: 0px 1px 0px #fff;">{$thread_data['views']} 次点击 ∙ {$thread_data.goods} 人支持 </div>
<?php $arr = explode(",",forum($forum,$thread_data['fid'],'forumg')); ?>
{if $thread_data['uid'] == NOW_UID || NOW_GID == C("ADMIN_GROUP") || is_forumg($forum,NOW_UID,$thread_data['fid'])}
<a href="{php HYBBS_URL('post','edit',['id'=>$post_data['pid']]); }" class="tb">编辑</a>
<a href="javascript:void(0);" onclick="del_thread({$thread_data.tid},'thread')" class="tb">删除</a>
<a href="javascript:void(0);"onclick="set_state({$thread_data.tid},{$thread_data.state})" class="tb">{if $thread_data['state']}解锁帖子{else}锁定帖子{/if}</a>
{/if}{if NOW_GID == C("ADMIN_GROUP")}{if $thread_data['top'] == 1}
<a href="javascript:void(0);" onclick="thread_top({$thread_data.tid},'off',1)" class="tb">取消板块置顶</a>
{else}
<a href="javascript:void(0);" onclick="thread_top({$thread_data.tid},'on',1)" class="tb">板块置顶</a>
{/if}{if $thread_data['top'] == 2}
<a href="javascript:void(0);" onclick="thread_top({$thread_data.tid},'off',2)" class="tb">取消全站置顶</a>
{else}
<a href="javascript:void(0);" onclick="thread_top({$thread_data.tid},'on',2)" class="tb">全站置顶</a>
{/if}{/if}{if is_forumg($forum,NOW_UID,$thread_data['fid']) }
{if $thread_data['top'] == 1}
<a href="javascript:void(0);" onclick="thread_top({$thread_data.tid},'off',1)" class="tb">取消板块置顶</a>
{else}
<a href="javascript:void(0);" onclick="thread_top({$thread_data.tid},'on',1)" class="tb">板块置顶</a>
{/if}{/if} </div>
{/if}
</div>
{if $thread_data['files']}
<div class="sep20"></div>
<div class="box">
<div class="cell">附件列表</div>
<div class="cell">
<tbody>
{foreach $filelist as $v}
{if $v['show']}
<p>
<a href="javascript:void(0);" onclick="hy_downfile({$v.fileid})">{$v.name}</a>
<i style="color: grey;"> 文件大小:{php echo round($v['size']/1024/1024,3);}M (下载次数:{$v.downs})</i>
{if $v['gold']}
<span style="color: brown;"> 售价:{$v.gold}</span>
{/if}
</p>
{else}
<p>
<a href="javascript:void(0);">附件被隐藏,你需要回复后可见</a>
</p>
{/if}
{/foreach}
</tbody>
</div>
</div>
{/if}
{if $thread_data['posts']}
<div class="sep20"></div>
<div class="box">
<div class="cell"><span class="gray">{$thread_data.posts} 回复 <strong class="snow">|</strong> 直到 {php echo ($thread_data['btime']+86400*120 > NOW_TIME) ? humandate($thread_data['btime']) : date("Y-m-d H:i",$thread_data['btime']);}</span>
</div>
{foreach $PostList as $k => $v}
<div id="r_3203585" class="cell">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="48" valign="top" align="center"><img src="{#WWW}{$v.avatar.b}" class="avatar" border="0" align="default" style="max-width: 48px; max-height: 48px;" /></td>
<td width="10" valign="top"></td>
<td width="auto" valign="top" align="left"><div class="fr">{if IS_LOGIN } {if $v['uid'] == NOW_UID || NOW_GID == C("ADMIN_GROUP")}<div id="thank" class="thank_area"><a href="{php HYBBS_URL('post','edit',['id'=>$v['pid']]); }" class="thank">编辑</a>{/if}{if $v['uid'] == NOW_UID || NOW_GID == C("ADMIN_GROUP") || is_forumg($forum,NOW_UID,$thread_data['fid'])} <a href="javascript:void(0);" onclick="del_thread({$v.pid},'post')" class="thank">删除帖子</a></div>{/if}{/if} <span class="no">{php echo ($k+(($pageid-1)*$conf['postlist'])) ;}</span></div>
<div class="sep3"></div>
<strong><a href="{php HYBBS_URL('my',$v['user']);}" class="dark">{$v.user}</a></strong> <span class="fade small">{php echo ($v['atime']+86400*120 > NOW_TIME) ? humandate($v['atime']) : date("Y-m-d H:i",$v['atime']);}</span>
<div class="sep5"></div>
<div class="reply_content">
<!--{hook t_post_content_top}-->
{$v.content}
<!--{hook t_post_content_bottom}-->
</div>
</td>
</tr>
</table>
</div>
{/foreach}
{if $page_count!==1}<div class="cell">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="92%" align="right"><?php $tmp = ($thread_data['posts']%$conf['postlist']) ?(intval($thread_data['posts']/$conf['postlist'])+1) : intval($thread_data['posts']/$conf['postlist']) ; ?>{for $i=($pageid-5 < 1) ? 1 : $pageid -5; $i< (($pageid + 5 > $tmp) ? $tmp+1 : $pageid + 5) ; $i++}<a href="{php HYBBS_URL('thread',$thread_data['tid'], $i);}{php echo X("get.order")?"?order=desc":'';}" class="{if $pageid !== $i}page_normal{else}{if $pageid == $i}page_current{/if}{/if}">{$i}</a> {/for}</td>
</tr>
</table>
</div>{/if}
</div>
{else}
<div class="sep20"></div>
<div class="box transparent">
<div class="inner" style="text-align: center">
<span style="color: rgba(0, 0, 0, 0.25);">目前尚无回复</span>
</div>
</div>
{/if}
{if IS_LOGIN }
<div class="sep20"></div>
<div class="box">
<div class="cell"><div class="fr"><a href="#" onclick="goTop()"><strong>↑</strong> 回到顶部</a></div>
添加一条新回复
</div>
<div class="cell">
{hook t_post_editer_top}
{hook t_thread_index}
{hook t_post_editer_bottom}
<div class="fr"><div class="sep10"></div><div class="sep5"></div><span class="gray">请尽量让自己的回复能够对别人有帮助</span></div>
</div>
<div class="inner">
<div class="fr"><a href="/">← 首页</a></div>
</div>
</div>
{/if}
</div>
</div>
{include f}