<?php $title = $chaptername. '_' . $bookinfo['bookname'] . '_' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
<?php include_once tpl('globalPM');?>
<div class="block"><?php if ($isOriginal):?><?php echo ilink('举报违规作品奖'.setting('creditname').'2000', url('system', array('s'=>'member','a'=>'report','bid'=>$bookid,'cid'=>$chapterid)));?><?php else:?><?php echo ilink('[活动]至酷书城2012元旦活动盛大开启', url('system', array('s'=>'bbs','a'=>'thread','tid'=>32427)));?><br/><?php echo randAd('other', '406,392,391,383,382,379,306,423,422,421,420,419,418,417,416,415,414,413,412,411,410,409,408');?><?php endif;?></div>
<div class="nav"><?php if (isset($chaptername)):?><b><?php echo $chaptername;?></b>[约<span class="r"><?php echo $chapterSize;?></span>字]<?php endif;?></div>
<div class="content">
<?php if (isset($subpagearr)) echo $subpagearr;?>
<?php if(isset($pagearr)) echo $pagearr;?>|<?php if ($isAutoProgress):?><?php echo ilink('回进度',url('system',array('s'=>'member','c'=>'my','a'=>'progress')));?><?php else:?><a href="<?php echo url('system',array('s'=>'member','a'=>'progress','bid'=>$bookid,'cid'=>$chapterid,'sp'=>S::gp('sp','G',2)));?>">存进度</a><?php endif;?> <?php echo memberLink('回书房');?>[<?php echo date('H:i');?>]
<br/>
<?php echo $content;?><br/>
<?php if (!$iorange_id):?><div class="block"><?php echo ilink('免费注册会员可随意设置阅读字数!', url('system', array('s'=>'member','a'=>'register')));?></div><?php endif;?>
<?php if (isset($subpagearr)) echo $subpagearr;?>
<?php if(isset($pagearr)) echo $pagearr;?>|<?php if ($isAutoProgress):?><?php echo ilink('回进度',url('system',array('s'=>'member','c'=>'my','a'=>'progress')));?><?php else:?><a href="<?php echo url('system',array('s'=>'member','a'=>'progress','bid'=>$bookid,'cid'=>$chapterid,'sp'=>S::gp('sp','G',2)));?>">存进度</a><?php endif;?> <?php echo memberLink('回书房');?>[<?php echo date('H:i');?>]
<br/>
<?php if (!$isOriginal):?>
    <?php echo randAd('other', '406,392,391,383,382,379,306,423,422,421,420,419,418,417,416,415,414,413,412,411,410,409,408');?>
<?php endif;?>
<?php echo ilink('推荐大家阅读',url('system',array('s'=>'props','c'=>'recommend','a'=>'use','bid'=>$bookid)));?>
</div>
<div class="nav"><?php if ($isOriginal):?><?php echo ilink('&lt;&lt;举报违规作品奖'.setting('creditname').'2000&gt;&gt;', url('system', array('s'=>'member','a'=>'report','bid'=>$bookid,'cid'=>$chapterid)));?><?php else:?><?php echo ilink('&lt;&lt;小说章节有错马上报告&gt;&gt;',url('report', array('bid'=>$bookid,'cid'=>$chapterid)))?><?php endif;?><br/>
<a href="<?php echo url('bookshow', array('bid'=>$bookid));?>">封面</a>|<a href="<?php echo url('chapter', array('bid'=>$bookid,'page'=>$currentChapterPage));?>">目录</a>|<a href="<?php echo url('system', array('s'=>'download','bid'=>$bookid));?>">下载</a>|<a href="<?php echo url('system', array('s'=>'forum','id'=>$bookid));?>">评书</a>|<a href="<?php echo url('system',array('s'=>'member','c'=>'setting','a'=>'size','url'=>$selfurl));?>">设字数</a></div>
<div class="pl"><img src="<?php echo getImageFile('reyi.gif');?>" alt='↓'/><?php if ($isDigest):?>书会精评<?php else:?>书友热议<?php endif;?>↓(<a href="<?php echo url('system', array('s'=>'forum','id'=>$bookid));?>"><?php echo $postCount ? $postCount : 0;?>条</a>)</div>
<div>
<?php if (!$iorange_id || ($iorange_id && u('viewcomment'))):?>
    <?php if (!empty($comments)):?>
        <?php foreach ($comments as $comment):?>
            <div class="comment"><a href="<?php echo url('system',array('s'=>'member','uid'=>$comment['uid']));?>"><?php echo filter_content(userName($comment['uid']));?></a>:<?php echo (mb_strlen($comment['message'], 'utf-8') > 60 ? sFilter(mb_substr($comment['message'], 0, 60, 'utf-8')).'...' : sFilter($comment['message']));?></div>
        <?php endforeach;?>
        <a href="<?php echo url('system', array('s'=>'forum','id'=>$bookid));?>">进入书会聊天&gt;&gt;</a><br/>
    <?php else:?>
        <a href="<?php echo url('system', array('s'=>'forum','id'=>$bookid));?>">沙发还在，速抢！</a><br/>
    <?php endif;?>
<?php endif;?>
<form method="post" action="<?php echo urldecode($selfurl);?>">
<textarea name='message' rows='4' style="width:99%"></textarea>
<br/>
<input type="submit" value="快速发表评论" />
</form>
</div>

<div class="kind"><?php echo staticAd('<b>强推极品精彩资源↓</b>');?></div>
<div class="list">
    <?php echo randAd('read,other,show,chapter,bbs,index,member,forum');?>
    <?php echo randAd('read,other,show,chapter,bbs,index,member,forum');?>
    <?php echo randAd('read,other,show,chapter,bbs,index,member,forum');?>
</div>
<?php include_once tpl('globalFooter');?>