<style type="text/css">
<!--
ul.chaplist{list-style: none;clear: both;text-align: left;width: 100%;}
li.volume{width: 100%;clear: both;font-size: 14px;line-height: 2;text-align:center;border-top: 1px solid #eaeaea;border-bottom: 1px solid #eaeaea;margin-bottom:5px;}
li.chapter{float: left;width: 360px;line-height: 2;}
-->
</style>
<table width="100%" class="topmenu">
	<tr><td>
		{?if $row.status==1?}<a href="article.php"><em>文章列表</em></a>{?section name=i loop=$catepos?}<span>></span><a href="article.php?cid={?$catepos[i].cid?}">{?$catepos[i].cname?}</a>{?/section?}
		{?elseif $row.status==2?}<a href="pending.php?status=2"><em>审核不通过文章</em></a>{?section name=i loop=$catepos?}<span>></span><a href="pending.php?cid={?$catepos[i].cid?}&status=2">{?$catepos[i].cname?}</a>{?/section?}
		{?else?}<a href="pending.php"><em>待审核文章</em></a>{?section name=i loop=$catepos?}<span>></span><a href="pending.php?cid={?$catepos[i].cid?}">{?$catepos[i].cname?}</a>{?/section?}
		{?/if?}<span>></span>
		<a href="addarticle.php?aid={?$row.aid?}"><em>{?$row.title?}</em></a><span>></span>
		<a href="chapter.php?aid={?$row.aid?}">章节管理</a>
	</td></tr>
</table>
<br>
<form method="post" name="frmpost">
<table width="100%" class="grid">
	<tr><th>
		<a href="addchapter.php?aid={?$row.aid?}&isvolume=1">新建分卷</a>&nbsp;&nbsp;
		<a href="addchapter.php?aid={?$row.aid?}">增加章节</a>&nbsp;&nbsp;
		<a href="addtxt.php?aid={?$row.aid?}" class="red">上传TXT</a>&nbsp;&nbsp;|&nbsp;&nbsp;
		<a href="addarticle.php?aid={?$row.aid?}">修改文章</a>&nbsp;&nbsp;
		<a href="article.php?action=delete&ids[]={?$row.aid?}" onclick="return confirm('你确定要删除文章『{?$row.title?}』吗？')">删除文章</a>&nbsp;&nbsp;
		<a href="chapter.php?aid={?$row.aid?}&action=clean" onclick="return confirm('你确定要清空（删除所有章节）该文章『{?$row.title?}』吗？')">清空文章</a>
	</th></tr>
	<tbody>
	<tr><td><ul class="chaplist">
		{?section name=i loop=$rows?}
		{?if $rows[i].isvolume == 1?}
		<li class="volume"><input type="checkbox" name="ids[]" value="{?$rows[i].chapterid?}"/>&nbsp;{?$rows[i].chaptername?}&nbsp;&nbsp;[<a href="addchapter.php?aid={?$row.aid?}&chapterid={?$rows[i].chapterid?}">编</a>]</li>
		{?else?}
		<li class="chapter"><input type="checkbox" name="ids[]" value="{?$rows[i].chapterid?}"/>&nbsp;<a href="{?$rows[i].url?}" target="_blank">{?$rows[i].chaptername?}</a>&nbsp;&nbsp;[<a href="addchapter.php?aid={?$row.aid?}&chapterid={?$rows[i].chapterid?}">编</a>]</li>
		{?/if?}
		{?/section?}
	<ul></td></tr>
	<tr>
		<td class="foot">
			<label><input type="checkbox" id="checkall" name="checkall" value="checkall" onclick="javascript: for (var i=0;i<this.form.elements.length;i++){ if (this.form.elements[i].name != 'checkkall') this.form.elements[i].checked = form.checkall.checked; }">&nbsp;全选</label>&nbsp;&nbsp;
			<select name="action" id="batchaction">
				<option value="">请选择批量操作</option>
				<option value="delete">批量删除</option>
			</select>&nbsp;
			<input type="button" value="批量操作" class="button" onclick="batchctrl();">
		</td>
	</tr>
	</tbody>
</table>
</form>
<br>
<form method="post" name="frmsort">
<input name="action" type="hidden" value="sort">
<table width="100%" class="grid">
	<tr><th colspan="2">章节排序</th></tr>
	<tbody>
	<tr>
		<td class="tdleft" width="80">选择章节：</td>
		<td><select class="select" size="1" name="fromid" id="fromid">{?section name=i loop=$rows?}<option value="{?$rows[i].chapterorder?}">{?$rows[i].chaptername?}</option>{?/section?}</select></td>
	</tr>
	<tr>
		<td class="tdleft">移动到：</td>
		<td>
			<select class="select" size="1" name="toid" id="toid">
				<option value="0">--最前面--</option>
				{?section name=i loop=$rows?}<option value="{?$rows[i].chapterorder?}">{?$rows[i].chaptername?}</option>{?/section?}
			</select>
			<span class="hottext">之后</span>
		</td>
	</tr>
	<tr>
		<td colspan="2" class="foot">
			<input type="submit" value=" 排 序 " class="button">
		</td>
	</tr>
	</tbody>
</table>
</form>
<br>
<form method="post" name="frmcreate">
<input name="action" type="hidden" value="repack">
<table width="100%" class="grid">
	<tr><th colspan="2">重新生成</th></tr>
	<tbody>
	<tr>
		<td class="tdleft" width="80">生成选项：</td>
		<td>
			<label><input type="checkbox" class="checkbox" name="packflag[]" value="makecds" />&nbsp;生成CDS(章节目录结构文件)</label>&nbsp;&nbsp;&nbsp;&nbsp;
			<label><input type="checkbox" class="checkbox" name="packflag[]" value="makeindex" />&nbsp;生成目录页HTML</label>&nbsp;&nbsp;&nbsp;&nbsp;
			<label><input type="checkbox" class="checkbox" name="packflag[]" value="makechapter" />&nbsp;生成章节页HTML</label>
		</td>
	</tr>
	<tr>
		<td colspan="2" class="foot">
			<input type="submit" value=" 生 成 " class="button">
		</td>
	</tr>
	</tbody>
</table>
</form>