<?php $title = $chapter['chaptername'] . '续传列表 - ' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
返回<?php echo backLink('上级');?> <?php echo ilink('总章节',$this->url('system',array('s'=>'author','c'=>'chapter','bid'=>$chapter['bookid'])));?> <?php echo ilink('作者中心',$this->url('system',array('s'=>'author')));?>
<div class="nav">《<?php echo $chapter['chaptername'];?>》章节续传列表</div>
<?php if (false !== $cron):?><div class="pl">此章将在<?php echo $cron;?>自动发布，您可以点击<?php echo ilink('取消定时', url('system', array('s'=>'author','c'=>'chapter','a'=>'cc','bid'=>$book['bookid'],'cid'=>$chapter['chapterid'])));?>删除发布任务！</div><?php endif;?>
<div class="kind">【《<?php echo $chapter['chaptername'];?>》内容】<?php echo ilink('详细',$this->url('system',array('s'=>'author','c'=>'draft','a'=>'detail','cid'=>$chapter['chapterid'])));?></div>
<div class="pl"><?php echo ilink('[继续添加内容]',$this->url('system',array('s'=>'author','c'=>'draft','a'=>'create','cid'=>$chapter['chapterid'])));?></div>
<?php if (!empty($drafts)):?>
    <form action="<?php echo $this->url('system', array('s'=>'author','c'=>'draft','a'=>'sort','cid'=>$chapter['chapterid']));?>" method="post">
	<?php foreach ($drafts as $draft):?>
        <div class="comment">
		<?php echo ilink($draft['subject'],$this->url('system',array('s'=>'author','c'=>'draft','a'=>'detail','cid'=>$chapter['chapterid'],'id'=>$draft['id'])));?>[<?php echo $draft['size'];?>字]排序<input type='text' size='2' name='sort_<?php echo $draft['id'];?>' value='<?php echo $draft['sort'];$sort?>' /> <?php echo ilink('修改',$this->url('system',array('s'=>'author','c'=>'draft','a'=>'edit','cid'=>$chapter['chapterid'],'id'=>$draft['id'])));?>|<?php echo ilink('删除',$this->url('system',array('s'=>'author','c'=>'draft','a'=>'delete','cid'=>$chapter['chapterid'],'id'=>$draft['id'])));?>
        </div>
	<?php endforeach;?>
	<input type="submit" value="提交新排序" />
    </form>

    <a href="<?php echo $this->url('system',array('s'=>'author','c'=>'draft','a'=>'publish','cid'=>$chapter['chapterid']));?>">立刻发布该章节</a>|<?php echo ilink('定时发布该章节', url('system', array('s'=>'author','c'=>'chapter','a'=>'cron','do'=>'draft','bid'=>$chapter['bookid'],'cid'=>$chapter['chapterid'])));?>
    
    <div class="block">
    * 点击“立刻发布该章节”链接，当前章节将会直接发表到网站上去，其他书友马上就能阅读到
    <br/>
    * 点击“定时发布该章节”链接，当前章节不会立即发表到网站上，您可以在这里设定一个时间，系统将会在您设定的时间点将章节发表到网站上，这样方便各位作者存稿，而不用像以前老忘记发布！
    </div>
<?php else:?>
	<div class="content">本章节暂无草稿内容，现在<a href="<?php echo $this->url('system',array('s'=>'author','c'=>'draft','a'=>'create','cid'=>$chapter['chapterid']));?>">添加</a>？</div>
<?php endif;?>

<?php echo ilink('继续添加内容',$this->url('system',array('s'=>'author','c'=>'draft','a'=>'create','cid'=>$chapter['chapterid'])));?> <?php echo ilink('总章节',$this->url('system',array('s'=>'author','c'=>'chapter','bid'=>$chapter['bookid'])));?> <?php echo ilink('作者中心',$this->url('system',array('s'=>'author')));?>
<br/>
<?php include_once tpl('globalFooter');?>