<table width="100%" class="topmenu">
	<tr><td>
		<a href="javascript:doDialog('{?$saxue_admin_url?}/language.php?action=add','添加语言','700','520')"><em>添加语言</em></a><span>|</span>
		<a href="?action=cache"><em>更新设置缓存</em></a>
	</td></tr>
</table>
<table width="100%" class="grid">
	<caption>语言管理</caption>
	<tr>
		<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>
		<td>{?$rows[i].listorder?}</td>
		<td>{?$rows[i].name?}</td>
		<td>{?$rows[i].lang?}</td>
		<td>{?$rows[i].sitename?}</td>
		<td>{?$rows[i].theme?}</td>
		<td>{?$rows[i].skin?}</td>
		<td>{?if $rows[i].display==1?}<a href="?action=display&display=0&id={?$rows[i].id?}">{?function saxue_geticon:'status':'显示'?}</a>{?else?}<a href="?action=display&display=1&id={?$rows[i].id?}">{?function saxue_geticon:'status':'不显示':0?}</a>{?/if?}</td>
		<td>
			{?if $rows[i].isdefault==1?}
			{?function saxue_geticon:'status':'默认'?}
			{?else?}<a href="?action=setdefault&id={?$rows[i].id?}">{?function saxue_geticon:'status':'非默认':0?}</a>{?/if?}
		</td>
		<td>
			<a href="javascript:doDialog('{?$saxue_admin_url?}/language.php?action=add&id={?$rows[i].id?}','修改语言——{?$rows[i].name?}','700','500')">{?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>