<?php
$title = $typename . '小说'.($pageObj->getCurrentPage() > 1 ? '第'.$pageObj->getCurrentPage().'页' : '').'-'.setting('webname');
$keywords = $typename.'小说';
$description = '';
?>
<?php include_once tpl('header');?>
<!-- 导航条 -->
<div class="dh">
	当前位置：<a href="<?php echo url('index');?>" class="home">首页</a>-><?php echo $typename;?>小说</div>
<!-- end -->
<div class="clear"></div>
<div class="brbr"></div>
<div id="booklist">
<ul id="list">
<?php foreach ($array as $book):?>
	<li title="《<?php echo $book['bookname'];?>》更新:<?php echo substr($book['updatedate'], 0, 11);?> 最新章节:<?php echo $book['lastchaptername'];?>">
     <a href="<?php echo url('bookshow', array('bid'=>$book['bookid']));?>"><img src="<?php echo bookCover($book['bookid']);?>"></a><a href="<?php echo url('chapter', array('bid'=>$book['bookid']));?>">[目录]</a><a href="<?php echo url('bookshow', array('bid'=>$book['bookid']));?>"><b><?php echo $book['bookname'];?></b></a><br>
       作者:<?php echo $book['author'];?><br>
       更新:<?php echo substr($book['updatedate'], 0, 11);?><br>
       新章:<a href="<?php echo url('read', array('bid'=>$book['bookid'],'cid'=>$book['lastchapterid']));?>"><?php echo $book['lastchaptername'];?></a>
       <br>
       简介:<?php echo $book['bookinfo'];?><br/>
     </li>
<?php endforeach;?>
</ul>
</div>
<div class="clear"></div>
<?php echo pagination('booktype', $pageObj->getTotalRecord(), $pageObj->getPageSize());?> <?php if ($pageObj->getTotalPage() > 1):?><select onchange="location:location='/type-<?php echo $typeid;?>-'+this.value+'.html'"><?php for ($i = 1; $i < $pageObj->getTotalPage(); $i++):?><option value="<?php echo $i;?>">第<?php echo $i;?>页</option><?php endfor;?></select><?php endif;?>
<div class="clear"></div>
<style type="text/css">
#list { margin: 0; padding-left: 0;}
#list a { color:#004D00; }
#list li { background-color: #FFFFFF;border: 1px solid #004D00;float: left;font-size: 13px;line-height: 20px;margin-right: 5px;margin-top: 5px;overflow: hidden;padding: 0;text-indent: 5px;width: 234px;height: 150px;word-wrap:break-word; }
#list img { border-color: #333366;float: left;height: 53px;margin: 2px;width: 43px; }
</style>
<?php include_once tpl('footer');?>