<?php include_once tpl('header');?>
<card title="<?php if ($isOriginal):?><?php echo setting('webname');?>原创<?php endif;?>小说<?php echo $category[$sort];?> - <?php echo setting('webname');?>">
<p align="left">
<?php include 'globalHeader.php';?>
<?php echo backLink();?>/<a href="<?php echo url('type');?>">去书库</a>
<br/>	<a href="<?php echo url('system',array('s'=>'forum','c'=>'ranking','a'=>'top'));?>">[<?php echo date("n月");?>]<?php echo setting('webname');?>书会群英榜</a><br/>
<?php if (!$sort):?>[<?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;?>
<br/>
<?php if (empty($books)):?>
    暂无数据<br/>
<?php else:?>
    <?php foreach ($books as $value):?>
       <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):?>↑<?php endif;?><br/>
    <?php endforeach;?>
<?php endif;?>

【搜索小说】
<br/>
<input name='key' title='搜索内容' type='text' size='3'/><anchor>搜书名<go href='<?php echo url('search');?>' accept-charset='utf-8' method='get'><postfield name='class' value='1'/><postfield name='key' value='$(key)'/><postfield name='sid' value='<?php echo $sid;?>'/></go></anchor>_<anchor>作者<go href='<?php echo url('search');?>' accept-charset='utf-8' method='get'><postfield name='class' value='2'/><postfield name='key' value='$(key)'/><postfield name='sid' value='<?php echo $sid;?>'/></go></anchor>
<br/>
<a href="<?php echo url('demand');?>">没找到你要的书请再此留言</a>
<br/>
<?php include_once tpl('footer');?>