<form id="formAdd" method="post">
<input type="hidden" name="action" value="range">
<table width="100%" class="grid">
	<tr><th colspan="2" style="padding-left:20px;">根据专题ID起始序号</th></tr>
	<tr>
		<td class="tdleft" width="120">专题开始ID：</td>
		<td><input type="text" class="text" name="startid" size="20" onkeyup="value=value.replace(/[^0-9]/g,'');" /></td>
	</tr>
	<tr>
		<td class="tdleft" width="120">专题结束ID：</td>
		<td><input type="text" class="text" name="endid" size="20" onkeyup="value=value.replace(/[^0-9]/g,'');" /></td>
	</tr>
	<tr>
		<td class="tdleft"></td>
		<td><input type="submit" name="submit" id="submit" class="button" value="开始生成"/></td>
	</tr>
</table>
</form>
<br>
<form id="formAdd" method="post">
<input type="hidden" name="action" value="ids">
<table width="100%" class="grid">
	<tr><th colspan="2" style="padding-left:20px;">根据专题ID列表</th></tr>
	<tr>
		<td class="tdleft" width="120">专题ID列表：</td>
		<td><textarea name="ids" class="textarea" style="width:400px;height:100px;" onkeyup="value=value.replace(/[^0-9,]/g,'');"></textarea> 以,分割</td>
	</tr>
	<tr>
		<td class="tdleft"></td>
		<td><input type="submit" name="submit" id="submit" class="button" value="开始生成"/></td>
	</tr>
</table>
</form>
<br>
<form id="formAdd" method="post">
<input type="hidden" name="action" value="time">
<table width="100%" class="grid">
	<tr><th colspan="2" style="padding-left:20px;">根据专题发布日期</th></tr>
	<tr>
		<td class="tdleft" width="120">开始日期：</td>
		<td><input type="text" name="fromtime" id="fromtime" size="12" class="text date" value="{?$saxue_time|date:'Y-m-d'?}" readonly></td>
	</tr>
	<tr>
		<td class="tdleft" width="120">结束日期：</td>
		<td><input type="text" name="totime" id="totime" size="12" class="text date" readonly></td>
	</tr>
	<tr>
		<td class="tdleft"></td>
		<td><input type="submit" name="submit" id="submit" class="button" value="开始生成"/></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>