<?php include 'header.php';?>
<card title="<?php echo $bookname;?> - 章节目录列表">
<p align="left">
<?php include 'globalHeader.php';?>
<?php echo backLink();?>|<?php echo memberLink('书房');?>|<a href="<?php echo url('type');?>">书库</a>
<br/>
<?php include 'adList.php';?>
《<?php echo $bookname;?>》/<?php if ($sort == 'ASC'):?><?php echo ilink('倒序目录', url('chapter',array('bid'=>$bookid,'sort'=>'desc')));?><?php else:?><?php echo ilink('顺序目录', url('chapter',array('bid'=>$bookid)));?><?php endif;?>
<br/>
<?php if (!empty($chapters)):?>
    <?php foreach($chapters as $chapter):?>
        <a href="<?php echo url('read', array('bid'=>$chapter['bookid'], 'cid'=>$chapter['chapterid']));?>"><?php echo sFilter($chapter['chaptername']);?></a><?php if ($chapter['isvip']):?>[VIP]<?php endif;?><br/>
    <?php endforeach;?>
    共<?php echo $pageObj->getTotalRecord();?>章[<?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>页]
    <br/>
    <?php echo $pageObj->show();?>
    <br/>
    跳至
    <input name="page" type="text" size="2" format="*N" emptyok="true" />
    <anchor><go href='<?php echo url('chapter');?>' accept-charset='utf-8' method='get'>
        <postfield name='bid' value='<?php echo $bookid;?>'/>
        <postfield name='sid' value='<?php echo $sid;?>'/>
        <postfield name='page' value='$(page)'/>
    </go>GO&gt;&gt;</anchor>
<?php else:?>
    暂无章节内容<br/>
<?php endif;?>
<br/>
[<a href="<?php echo url('bookshow', array('bid'=>$bookid));?>">本书首页</a>][<anchor>推荐该书<go href='<?php echo url('property/index',array('module'=>'recommend','action'=>'use','bid'=>$bookid));?>' accept-charset='utf-8' method='post'><postfield name='do' value='1'/></go></anchor>]<br/>
<?php include 'footer.php';?>