<table width="100%" class="sgrid">
	<tr><td>
	<font color="blue">1、内容页HTML 仅对单章文章有效，目录页、章节页HTML和CDS仅对多章节文章有效，系统自动判断</font><br>
	2、需设置URL规则为静态格式，规则设置：内容管理 > 文章系统 > 参数设置<br>
	3、需设置PC版和手机版的HTML文件目录
	</td></tr>
</table>
<br>
<form id="formAdd" name="formAdd" method="post">
<input type="hidden" name="dosubmit" value="1">
<input type="hidden" name="type" value="lastinput">
<table width="100%" class="grid">
	<tr>
		<th width="300">选择分类范围</th>
		<th>选择操作内容</th>
	</tr>
	<tr>
		<td rowspan="8">
			<select name="catids[]" id="catids" multiple="multiple" style="height:400px;" title="按住“Ctrl”或“Shift”键可以多选，按住“Ctrl”可取消选择">
				<option value='0' style="background:#F1F3F5;color:blue;" selected>所有分类</option>
				{?$cates?}
			</select>
		</td>
		<td class="red">
			<label><input type="checkbox" name="packflag[]" value="makehtml" checked>&nbsp;内容页HTML</label>&nbsp;&nbsp;&nbsp;&nbsp;
			<label><input type="checkbox" name="packflag[]" value="makeindex">&nbsp;目录页HTML</label>&nbsp;&nbsp;&nbsp;&nbsp;
			<label><input type="checkbox" name="packflag[]" value="makechapter">&nbsp;章节页HTML</label>&nbsp;&nbsp;&nbsp;&nbsp;
			<label><input type="checkbox" name="packflag[]" value="makecds">&nbsp;CDS(章节目录结构文件)</label>
		</td>
	</tr>
	<tr>
		<td class="blue">
			<label><input type="checkbox" name="pc" value="1" checked>&nbsp;PC版HTML</label>&nbsp;&nbsp;&nbsp;&nbsp;
			<label><input type="checkbox" name="mobile" value="1"{?if 1==$Saxue.SAXUE_MOBILE_OPEN?} checked{?/if?}>&nbsp;手机版HTML</label>
		</td>
	</tr>
	<tr><td>每轮生成 <input class="text" type="text" name="pagesize" value="100" size="4"> 篇文章</td></tr>
	<tr><td>生成所有文章 <input type="button" name="dosubmit1" value=" 开始生成 " class="button" onclick="formAdd.type.value='all';formAdd.submit();"></td></tr>
	<tr> 
		<td>
			生成最新发布的 <input class="text" type="text" name="number" value="100" size="5"> 篇文章
			<input type="button" class="button" name="dosubmit2" value=" 开始生成 " onclick="formAdd.type.value='lastinput';formAdd.submit();">
		</td>
    </tr>
	<tr> 
		<td>
			生成发布时间从
			<input type="text" name="fromtime" id="fromtime" value="{?$Saxue.request.fromtime?}" size="12" class="text date" readonly> - <input type="text" name="totime" id="totime" value="{?$Saxue.request.totime?}" size="12" class="text date" readonly> 的文章
			<input type="button" name="dosubmit3" value=" 开始生成 " class="button" onclick="formAdd.type.value='date';formAdd.submit();">
		</td>
	</tr>
	<tr> 
		<td>
			生成ID从 <input class="text" type="text" name="fromid" value="0" size="8"> 到 <input class="text" type="text" name="toid" size="8"> 的文章 
			<input type="button" class="button" name="dosubmit4" value=" 开始生成 " onclick="formAdd.type.value='id';formAdd.submit();">
		</td>
    </tr>
	<tr>
		<td>
			<textarea name="ids" class="textarea" style="width:400px;height:100px;" onkeyup="value=value.replace(/[^0-9,]/g,'');"></textarea>
			<input type="button" class="button" name="dosubmit4" value=" ID列表生成 " onclick="formAdd.type.value='ids';formAdd.submit();"> 以,分割
		</td>
	</tr>
</table>
</form>
<link rel="stylesheet" type="text/css" href="{?$saxue_skin_server?}/calendar/calendar.css"/>
<script type="text/javascript" src="{?$saxue_skin_server?}/calendar/calendar.js"></script>
<script type="text/javascript">
Calendar.setup({
	inputField : "fromtime",
	trigger    : "fromtime",
	onSelect	: function() {this.hide();}
});
Calendar.setup({
	inputField : "totime",
	trigger    : "totime",
	onSelect	: function() {this.hide();}
});
</script>