<?php $title = $typename . '小说 - ' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
<div class="nav"><a href="<?php echo url('new');?>">最新</a>|<a href="<?php echo url('type');?>">书库</a>|<?php echo memberLink('书房');?>|<a href="<?php echo url('top');?>">排行</a></div></div>
<div class="kind">排序:<?php echo $navString;?></div>
<?php if (!empty($array)):?>
	<?php foreach ($array as $value):?>
		<div class="comment">
        <?php echo $floor--;?>.<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 echo ilink('简介',url('bookinfo',array('bid'=>$value['bookid'])));?>:<?php echo $value['bookinfo']?>
		</div>
		
    <?php endforeach;?>
    <div class="kind">[共<?php echo $pageObj->getTotalRecord();?>本 <?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>页] <?php echo $pageObj->show();?></div>
<?php else:?>
	<?php echo "暂无数据<br/>";?>
<?php endif;?>
<a href="<?php echo url('demand');?>">没找到你要的书请再此留言</a>
<?php include_once tpl('globalFooter');?>