<!--{eval require './source/function/function_post.php';}-->
<!--{eval $pagesize = 9;}-->
<!--{eval $amount=0;}-->
<!--{eval $res = mysql_query("select count(*) as count from pre_forum_post where fid in(select fid from pre_forum_forum where status=1 and type='forum') and bbcodeoff<>-1");}-->
<!--{eval while($re=mysql_fetch_array($res)) $amount=$re['count']}-->
<!--{eval $pagecount = $amount ? (($amount < $pagesize) ? 1 : (($amount % $pagesize) ? ((int)($amount / $pagesize) + 1) : ($amount / $pagesize))) : 0; }-->
<!--{eval $page = !empty($_G['gp_page']) ? max(1, intval($_G['gp_page'])) : 1;}-->
<!--{eval $page = $page > $pagecount ? 1 : $page;}-->
<!--{eval $startlimit = ($page - 1) * $pagesize;}-->
<!--{eval $multipage = multi($amount, $pagesize, $page, 'portal.php?', $pagecount);}-->
<!--{eval $res = mysql_query("select t1.tid,t1.views,t1.author,t1.subject,FROM_UNIXTIME(t1.dateline,'%Y') as year,FROM_UNIXTIME(t1.dateline,'%m') as month,FROM_UNIXTIME(t1.dateline,'%d') as day,t2.message,t3.attachment,t4.name,t4.fid from pre_forum_thread t1 left join pre_forum_post t2 on t1.tid=t2.tid left join pre_forum_threadimage t3 on t1.tid=t3.tid left join pre_forum_forum t4 on t1.fid=t4.fid where t1.displayorder<> -1 and t3.attachment<>' ' order by t1.dateline desc LIMIT $startlimit, $pagesize");}-->
<!--{eval $src=""}-->
<!--{eval while($re1=mysql_fetch_array($res)) {}-->
<div class="page-container">
<div class="postmetadata">
<span class="meta-date">
<a href="forum.php?mod=viewthread&&tid=$re1['tid']" title="$re1['subject']">
<span class="month">$re1['month']月</span>
<span class="day">$re1['day']</span>
<span class="year">$re1['year']</span>
</a>
</span>
<span class="meta-comments">
<a href="forum.php?mod=viewthread&&tid=$re1['tid']" title="$re1['subject']" class="comments-count">$re1['views']</a>
<a href="forum.php?mod=viewthread&&tid=$re1['tid']" title="$re1['subject']">Comment</a>
</span>
<span class="meta-author">
<span>by<br />$re1['author']</span>
</span>
</div>
<div class="post-contents">
<div class="thumbnail">
<a href="forum.php?mod=viewthread&&tid=$re1['tid']" title="$re1['subject']"><img src="data/attachment/forum/$re1['attachment']"/></a>
</div>
<h3 class="entry-title">
<a href="forum.php?mod=viewthread&&tid=$re1['tid']" title="$re1['subject']">$re1['subject']</a>
</h3>
<div class="post-category">来自于<a href="forum.php?mod=forumdisplay&fid=$re1['fid']">$re1['name']</a></div>
<div class="post-content">
<!--{eval $src=messagecutstr($re1['message'],300)}-->
<p>$src</p>
</div>
</div>
</div>
<!--{eval }}-->
<div class="pags c1"><div id="pag"> $multipage </div></div>
|