-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex_index.html
125 lines (122 loc) · 6.29 KB
/
index_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
{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="inner" style="background-color: #fff; border-top-left-radius: 3px; border-top-right-radius: 3px;" id="Tabs">
<a href="{#WWW}" class="tab_current">全部</a>
{foreach $forum as $v}
{if $v['fid']== -1}
<a href="{php HYBBS_URL('forum',$v['id'])}" class="tab" >{$v.name}</a>
{/if}
{/foreach}
</div>
<div class="cell" style="background-color: #f9f9f9; padding: 10px 10px 10px 20px;">
{foreach $forum as $v}
{if $v['fid']!= -1}
<a href="{php HYBBS_URL('forum',$v['id'])}">{$v.name}</a> {/if}
{/foreach}
</div>
{hook t_index_index_thread_list_top}
{foreach $top_list 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><a class="node" href="<?php HYBBS_URL('forum',$v['fid']); ?>">{php echo forum($forum,$v['fid'],'name');}</a> •
<strong>
<a href="{php HYBBS_URL('my',$v['user']);}">{$v.user}</a></strong> • <?php echo ($v['atime']+86400*120 > 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 $thread_list 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><a class="node" href="<?php HYBBS_URL('forum',$v['fid']); ?>">{php echo forum($forum,$v['fid'],'name');}</a> •
<strong>
<a href="{php HYBBS_URL('my',$v['user']);}">{$v.user}</a></strong> • <?php echo ($v['atime']+86400*120 > 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}
{hook t_index_index_bottom_left_box}
{if $page_count!==1}<div class="cell">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="92%" align="right"><?php $tmp = ($hy_count['thread']%$conf['homelist']) ?(intval($hy_count['thread']/$conf['homelist'])+1) : intval($hy_count['thread']/$conf['homelist']) ; ?>{for $i=($pageid-5 < 1) ? 1 : $pageid -5; $i< (($pageid + 5 > $tmp) ? $tmp+1 : $pageid + 5) ; $i++}<a href="{php echo WWW.URL($type,$i);}" class="{if $pageid !== $i}page_normal{else}{if $pageid == $i}page_current{/if}{/if}">{$i}</a> {/for}<!-- <input type="number" class="page_input" autocomplete="off" value="1" min="1" max="13799" onkeydown = "if (event.keyCode == 13)
location.href = '{#WWW}new/' + this.value" /> --></td>
</tr>
</table>
</div> {/if}
</div>
{if view_form('v2ex','nav')}
<div class="sep20"></div>
<div class="box">
<div class="cell">
<div class="fr">
<a href="/">浏览全部节点</a></div>
<span class="fade">{$conf.title} / 节点导航</span></div>
{foreach $forum as $v}
{if $v['fid']== -1}
<div class="cell" >
<table cellpadding="0" cellspacing="0" border="0" height="28">
<tr>
<td align="right" width="60">
<span class="fade">{$v.name}</span></td>
{foreach $forum as $z}
{if $v['id'] == $z['fid']}
<td style="line-height: 200%; padding-left: 10px; word-break: keep-all;">
<a href="/f/{$z.id}" style="font-size: 14px;">{$z.name}</a>
</td>
{/if}
{/foreach}</tr>
</table>
</div>
{/if}
{/foreach}
</div>
{/if}
</div>
</div>
{include f}