<?php $title = '搜索结果' . ' - ' . setting('webname');?>
<?php include_once tpl('header');?>
<style type="text/css">
#sch_header {
    background-color: #E9F0F6;
    height: 26px;
    line-height: 26px;
    padding-left: 10px;
}
.sch_item {
	color: #999999;
	padding: 10px;
	line-height: 18px;
}
.sch_title {
	border-bottom: 1px solid #C2CEDA;
	padding-top: 8px;
	padding-bottom: 2px;
	padding-left: 10px;
	padding-right: 10px;
}
.sch_title, .sch_title a {
	font-size: 14px;
}
.sch_title a {
	color: #006699;
}
</style>
<div id="sch_header">检索关键字 [ <span style="color: red; font-size: 14px;"><?php if (1 == $class):?>书籍<?php else:?>作者<?php endif;?>名称 - <?php echo $key;?></span> ] [ 按最新书籍排序 ]</div>

<div class="clear"></div>
<div class="brbr"></div>
<?php if (!empty($search)):?>
	<?php foreach ($search as $book):?>
	<div class="sch_result">
		<div class="sch_title"><a href="<?php echo url('bookshow',array('bid'=>$book['bookid']));?>" target="_blank"><?php echo $book['bookname'];?></a> [ <a href="<?php echo url('search', array('class'=>2,'key'=>$book['author']));?>"><?php echo $book['author'];?></a> | <?php echo $book['typename'];?> | 最新章节 >>> <a href="<?php echo url('read',array('bid'=>$book['bookid'],'cid'=>$book['wlastchapterid']));?>" target="_blank"><?php echo $book['wlastchaptername'];?></a> | <?php echo substr($book['updatedate'], 0, 10);?> 更新 ]</div>
		<div class="sch_item"><?php echo $book['bookinfo'];?></div>
	</div>
	<?php endforeach;?>
	<?php echo pagination($pageObj->getTotalRecord(), $pageObj->getPageSize());?>
<?php endif;?>
<?php include_once tpl('footer');?>