<table width="100%" class="topmenu">
	<tr><td>
		<a href="javascript:doDialog('{?$saxue_admin_url?}/urlrule.php?action=add','添加规则','600','260')"><em>添加规则</em></a>
	</td></tr>
</table>
<table width="100%" class="grid">
	<caption>规则管理</caption>
	<tr>
		<th>ID</th>
		<th>所属模块</th>
		<th>规则名称</th>
		<th>URL类型</th>
		<th>URL示例</th>
		<th>URL规则</th>
		<th>管理</th>
	</tr>
	<tbody>
	{?section name=i loop=$rows?}
	<tr class='rowbg'>
		<td>{?$rows[i].id?}</td>
		<td>{?if $rows[i].modid==0?}<span class="green">通用</span>{?else?}{?$rows[i].modname?}{?/if?}</td>
		<td>{?$rows[i].name?}</td>
		<td>{?$rows[i].typename?}</td>
		<td>{?$rows[i].example?}</td>
		<td>{?$rows[i].urlrule?}</td>
		<td>
			<a href="javascript:doDialog('{?$saxue_admin_url?}/urlrule.php?action=add&id={?$rows[i].id?}','修改规则——{?$rows[i].name?}','600','260')">{?function saxue_geticon:'edit':'修改规则'?}</a>
			{?if $rows[i].issystem==1?}
			{?function saxue_geticon:'del':'删除规则':0?}
			{?else?}
			<a href="?action=delete&id={?$rows[i].id?}" onclick="return confirm('你确定要删除规则 {?$rows[i].name?} 吗？')">{?function saxue_geticon:'del':'删除规则'?}</a>
			{?/if?}
		</td>
	</tr>
	{?/section?}
	</tbody>
</table>