<?php include_once tpl('header');?>
<card title="搜索结果 - 社区 - <?php echo setting('webname');?>">
<p align="left">
<?php if (!empty($keyword)):?>共搜索到"<?php echo $keyword;?>"相关帖子<?php echo $pageObj->getTotalRecord();?>条<br/><?php endif;?>
<?php if (!empty($threads)):?>
	<?php $page = ($pageObj->getCurrentPage() - 1) * $pageObj->getPageSize();?>
	<?php foreach ($threads as $thread):?>
		<?php echo ++$page;?>.<?php if ($thread['topped']):?>[顶<?php echo $thread['topped'];?>]<?php endif;?><?php if ($thread['isdigest']):?>[精]<?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'])));?>(<?php echo ilink($this->filter(userName($thread['uid'])),url('system',array('s'=>'member','uid'=>$thread['uid'])));?> 回<?php echo ilink($thread['replies'],url('system',array('s'=>'bbs','c'=>'post','a'=>'list','tid'=>$thread['id'])));?> 点<?php echo $thread['hits'];?> <?php echo date('y/m/d H:i', $thread['createdate']);?>)<br/>
	<?php endforeach;?>
	[共搜到<?php echo $pageObj->getTotalRecord();?>个贴 <?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>]
	<br/>
	<?php echo $pageObj->show();?>
	<br/>
<?php else:?>
	暂无记录
<?php endif;?>
<br/>
时间：<?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')));?>
</p>
</card>
</wml>