<?php $title = '搜索结果 - 社区';?>
<?php include_once tpl('globalHeader');?>
<style type="text/css">.f{color: #666666;} .r{color: red;}</style>
<div class="kind"><?php if (!empty($keyword)):?>共搜索到"<span class="r"><?php echo $keyword;?></span>"相关帖子<span class="r"><?php echo $pageObj->getTotalRecord();?></span>条<?php endif;?></div>
<?php if (!empty($threads)):?>
    <div class="content">
	<?php $page = ($pageObj->getCurrentPage() - 1) * $pageObj->getPageSize();?>
	<?php foreach ($threads as $thread):?>
		<div class="comment">
            <?php echo ++$page;?>.<?php if ($thread['topped']):?><?php echo printImage('bbs/web/top_'.$thread['topped'].'.gif');?><?php endif;?><?php if ($thread['isdigest']):?><?php echo printImage('bbs/web/digest.gif', '精华', '精华');?><?php endif;?><?php if ($thread['islock']):?>[锁]<?php endif;?><?php if ($thread['lastpost'] > CTIME):?>[前]<?php endif;?><?php if (1 == $thread['special']):?>[票]<?php elseif (2 == $thread['special']):?>[赏]<?php elseif (3 == $thread['special']):?>[售]<?php endif;?><?php if ($thread['isupload']):?>[附]<?endif;?><?php echo ilink($this->filter($thread['subject']),url('system',array('s'=>'bbs','a'=>'thread','tid'=>$thread['id'])));?><span class="f">(回<?php echo ilink($thread['replies'],url('system',array('s'=>'bbs','c'=>'post','a'=>'list','tid'=>$thread['id'])));?> 点<?php echo $thread['hits'];?>)</span>
            <br/>
            <span class="f">楼主:<?php echo ilink($this->filter(userName($thread['uid'])),url('system',array('s'=>'member','uid'=>$thread['uid'])));?></span>
            <br/>
            <span class="f">最后回复:<?php echo date('y/m/d H:i', $thread['createdate']);?></span>
        </div>
	<?php endforeach;?>
    </div>
	[共搜到<?php echo $pageObj->getTotalRecord();?>个贴 <?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>]
	<br/>
	<?php echo $pageObj->show();?>
	<br/>
<?php else:?>
	暂无记录
<?php endif;?>
时间：<?php echo date('n/d H:i:s');?>
<br/>
<?php echo ilink(setting('webname'),url('index'));?>&gt;<?php echo ilink('社区',url('system',array('s'=>'bbs')));?>
</html>