<table width="100%" class="topmenu">
	<tr><td>
		<a href="pages.php" class="on"><em>单页管理</em></a><span>|</span>
		<a href="?action=add"><em>添加单页</em></a><span>|</span>
		<a href="?action=cache"><em>更新菜单缓存</em></a>
	</td></tr>
</table>
<form method="post" name="frmpost" id="frmpost">
<input name="action" id="action" type="hidden" value="listorder">
<table class="grid" width="100%">
	<tr>
		<th><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].name != 'enforce') this.form.elements[i].checked = form.checkall.checked; }"></th>
		<th>排序</th>
		<th>分组标识</th>
		<th>标题</th>
		<th>URL</th>
		<th>操作</th>
	</tr>
	{?section name=i loop=$rows?}
	<tr class="rowbg">
		<td><input type="checkbox" name="ids[]" value="{?$rows[i].id?}"/></td>
		<td><input class="text" name="listorder[{?$rows[i].id?}]" type="text" size="5" value="{?$rows[i].listorder?}" onkeyup="value=value.replace(/[^0-9]/g,'');" /></td>
		<td>{?$rows[i].item?}</td>
		<td><a href="{?$rows[i].url?}" target="_blank">{?$rows[i].title?}</a></td>
		<td><a href="{?$rows[i].url?}" target="_blank">{?$rows[i].url?}</a></td>
		<td>
			<a href="?action=preview&id={?$rows[i].id?}" target="_blank">{?function saxue_geticon:'look':'预览'?}</a>&nbsp;
			<a href="?action=preview&id={?$rows[i].id?}&mobile=1" target="_blank">{?function saxue_geticon:'look':'手机段预览'?}</a>&nbsp;
			<a href="?action=add&id={?$rows[i].id?}">{?function saxue_geticon:'edit':'修改'?}</a>&nbsp;
			<a href="?action=delete&id={?$rows[i].id?}" onclick="return confirm('确定要删除此单页吗？');">{?function saxue_geticon:'del':'删除'?}</a>
		</td>
	</tr>
	{?/section?}
	<tr><td colspan="6" class="foot">
		<input type="submit" value="排序" class="button">
		<input type="submit" value="生成HTML" class="button" onclick="$('#action').val('html');"/>&nbsp;&nbsp;
		注意：请确认相应文件夹有写权限
	</td></tr>
</table>
</form>
