<?php $title = ($isOriginal ? setting('webname') . '原创' : '') . '小说' . $category[$sort] . ' - ' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
<div class="nav"><?php echo indexLink();?> <a href="<?php echo url('type');?>">书库</a> <?php echo memberLink();?></div>

<div class="search"><a href="<?php echo url('system',array('s'=>'forum','c'=>'ranking','a'=>'top'));?>">[<?php echo date("n月");?>]书会群英榜</a><br/>
    <?php if ($sort == 'newbook'):?>[<?php echo date("n月");?>]书友最爱新书榜<?php else:?><a href="<?php echo url('top', array('sort'=>'newbook'));?>">[<?php echo date("n月");?>]书友最爱新书榜</a><?php endif;?><br/>
    <?php foreach ($navArray as $nav):?><?php if ($i > 3 && $i % 4 == 0):?><br/><?php endif;?><?php echo $nav;?><?php $i++;?><?php if ($i % 4 != 0):?>.<?php endif;?><?php endforeach;?>
</div>
<?php if (empty($books)):?>
    暂无数据<br/>
<?php else:?>
	<?php $pageinfo = $books['pageinfo'];unset($books['pageinfo']);$x = 1;?>
    <?php foreach ($books as $value):?>
       <div class="comment"><a href="<?php echo url('bookshow', array('bid'=>$value['bookid']));?>"> <?php echo $x;?>.《<?php echo $value['bookname'];?>》/<?php echo $value['author'];?></a><?php if ($sort == 'newbook'):?>↑<?php endif;?></div>
		<?php $x++;?>
    <?php endforeach;?>
<?php endif;?>

<?php include_once tpl('globalFooter');?>