<table width="100%" class="topmenu">
	<tr><td>
		<a href="banner.php"><em>Banner管理</em></a><span>|</span>
		<a href="bannerpic.php?bid={?$banner.id?}" class="on"><em>『{?$banner.title?}』图片列表</em></a><span>|</span>
		<a href="bannerpic.php?bid={?$banner.id?}&action=add"><em>添加图片</em></a>
	</td></tr>
</table>
<form method="post" name="frmpost" id="frmpost">
<input name="action" type="hidden" value="listorder">
<table width="100%" class="grid">
	<tr>
		<th>排序</th>
		<th>标题</th>
		<th>图片</th>
		<th>链接</th>
		<th>状态</th>
		<th>管理</th>
	</tr>
	<tbody>
	{?section name=i loop=$rows?}
	<tr>
		<td><input type="text" class="text" name="listorder[{?$rows[i].id?}]" size="5" maxlength="4" value="{?$rows[i].listorder?}" onkeyup="value=value.replace(/[^0-9]/g,'');" /></td>
		<td>{?$rows[i].title?}</td>
		<td><a href="{?$rows[i].url?}" target="_blank">点击查看</a></td>
		<td><a href="{?$rows[i].link?}" target="_blank">点击查看</a></td>
		<td>{?if $rows[i].status==1?}<a href="?bid={?$banner.id?}&action=status&status=0&id={?$rows[i].id?}">{?function saxue_geticon:'status':'显示'?}</a>{?else?}<a href="?bid={?$banner.id?}&action=status&status=1&id={?$rows[i].id?}">{?function saxue_geticon:'status':'不显示':0?}</a>{?/if?}</td>
		<td>
			<a href="?bid={?$banner.id?}&action=add&id={?$rows[i].id?}">{?function saxue_geticon:'edit':'修改Banner'?}</a>
			<a href="?bid={?$banner.id?}&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"></td></tr>
	</tbody>
</table>
</form>