<?php $title = '搜索结果  - ' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
<div class="lind"><?php echo ilink('返回重搜', url('sec'));?> <?php echo indexLink();?> <?php echo memberLink();?></div>
<div class="kind">==共搜索到<span class="r"><?php echo $pageObj->getTotalRecord();?></span>个结果==</div>
<div class="block">排序:<?php echo $navString;?></div>
<?php if (empty($search)):?>
    没有找到相关小说<br/>
<?php else:?>
    <?php foreach ($search as $value):?>
        <div class="comment">
        <?php echo $floor--;?>.[<?php echo ilink(bookTypeName($value['typeid']), url('booktype',array('tid'=>$value['typeid'])));?>]<a href="<?php echo url('bookshow', array('bid'=>$value['bookid']));?>">《<?php echo $value['bookname'];?>》</a>/<?php echo ilink($value['author'], url('search',array('class'=>2,'key'=>urlencode($value['author']))));?>/约<?php echo $value['size'] ? ceil($value['size'] / 10000) : 0;?>万字<br/>
		状态:<?php echo $value['status'] ? '<a href="'.url('over').'">已完成</a>' : '<a href="'.url('new').'">连载中</a>';?><br/>
		<?php echo ilink('简介',url('bookinfo',array('bid'=>$value['bookid'])));?>:<?php echo $value['bookinfo']?>
		<br/>
        最新:<a href="<?php echo url('read', array('bid'=>$value['bookid'], 'cid'=>$value['lastchapterid']));?>"><?php echo $value['lastchaptername'];?></a>
        <br/>
        时间:<?php echo substr($value['updatedate'],0,10);?>
        </div>
    <?php endforeach;?>
    <div class="search">共搜到<?php echo $pageObj->getTotalRecord();?>个结果[<?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>页] <?php echo $pageObj->show();?></div>
<?php endif;?>
<?php include_once tpl('globalFooter');?>