<?php $title = '全本小说 - ' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
<div class="nav"><?php echo indexLink();?> <?php echo memberLink();?> <a href="<?php echo url('new');?>">新书</a> <a href="<?php echo url('type');?>">书库</a> <a href="<?php echo url('top');?>">排行</a></div>
<?php echo randAd('other');?>

<?php if (empty($books)):?>
    没有找到全本的小说<br/>
<?php else:?>
<?php foreach ($books as $value):?>
        <div class="comment">[<a href="<?php echo url('booktype', array('tid'=>$value['typeid'],'sort'=>'over'));?>"><?php echo bookTypeName($value['typeid']);?></a>]<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,'author'=>urlencode($value['author']))));?>/约<?php echo round($value['size'] / 10000,2);?>万字
        <br/>
        <?php if (isset($value['lastchapterid'])):?>
        	<?php echo ilink('简介',url('bookinfo',array('bid'=>$value['bookid'])));?>:<?php echo $value['bookinfo']?>
		<?php endif;?>
        </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 echo randAd('other');?>
<?php include_once tpl('globalFooter');?>