<table width="100%" class="topmenu">
	<tr><td>
		<a href="javascript:doDialog('{?$saxue_admin_url?}/module.php?action=add','添加模块','360','270')"><em>添加模块</em></a><span>|</span>
		<a href="?action=cache"><em>更新模块缓存</em></a>
	</td></tr>
</table>
<table width="100%" class="grid">
	<caption>模块管理</caption>
	<tr>
		<th>ID</th>
		<th>模块名称</th>
		<th>模块目录</th>
		<th>数据表名</th>
		<th>显示模式</th>
		<th>允许搜索</th>
		<th>搜索字段</th>
		<th>状态</th>
		<th>系统模块</th>
		<th>管理</th>
	</tr>
	<tbody>
	{?section name=i loop=$rows?}
	<tr class='rowbg'>
		<td>{?$rows[i].id?}</td>
		<td>{?$rows[i].name?}</td>
		<td>/{?$rows[i].moddir?}/</td>
		<td>{?$rows[i].tablename?}</td>
		<td>{?$rows[i].typename?}</td>
		<td>{?if $rows[i].issearch==1?}<a href="?action=issearch&issearch=0&id={?$rows[i].id?}">{?function saxue_geticon:'status':'允许'?}</a>{?else?}<a href="?action=issearch&issearch=1&id={?$rows[i].id?}">{?function saxue_geticon:'status':'禁止':0?}</a>{?/if?}</td>
		<td>{?$rows[i].searchfield?}</td>
		<td>{?if $rows[i].status==1?}<a href="?action=status&status=0&id={?$rows[i].id?}">{?function saxue_geticon:'status':'启用'?}</a>{?else?}<a href="?action=status&status=1&id={?$rows[i].id?}">{?function saxue_geticon:'status':'禁用':0?}</a>{?/if?}</td>
		<td>{?if $rows[i].issystem==1?}<span class="red">√</span>{?else?}×{?/if?}</td>
		<td>
			{?if $rows[i].issystem==1?}
			{?function saxue_geticon:'edit':'修改模块':0?}
			{?function saxue_geticon:'del':'删除模块':0?}
			{?else?}
			<a href="javascript:doDialog('{?$saxue_admin_url?}/module.php?action=add&id={?$rows[i].id?}','修改模块——{?$rows[i].name?}','360','270')">{?function saxue_geticon:'edit':'修改模块'?}</a>
			<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>