<table width="100%" class="topmenu">
	<tr><td>
		<a href="javascript:doDialog('{?$saxue_admin_url?}/lang.php?action=add','添加语言项','500','120')"><em>添加语言项</em></a><span>|</span>
		<a href="?action=cache"><em>更新语言包缓存</em></a>
	</td></tr>
</table>
<form name="frmsearch" method="post">
<input name="pagesize" id="pagesize" type="hidden" value="{?$Saxue.request.pagesize?}">
</form>
<table width="100%" align="center" class="sgrid">
    <tr>
        <td>PHP调用方式：$Lang['语言项']，例如：$Lang['prepage']；前台模版调用方式：&#123;?$l.语言项?}，例如：&#123;?$l.prepage?}<br>
		为了方便管理，此处尽量只定义系统使用的语言项，模版语言包请定义在模版目录的lang文件夹，并以语言标识命名，比如zh.php
        </td>
    </tr>
</table>
<br>
<form method="post" name="frmpost" id="frmpost">
<input name="action" type="hidden" value="update">
<input name="jumpurl" type="hidden" value="{?$saxue_thisurl?}">
<ul class="tabBut">
	{?section name=i loop=$lang?}<li id="tab_setting_{?$i['order']?}" onclick="swapTab({?$i['loops']?},{?$i['order']?});"{?if $i['order']==1?} class="on"{?/if?}>{?$lang[i].name?}</li>{?/section?}
</ul>
{?section name=j loop=$lang?}
<div id="div_setting_{?$j['order']?}" class="contentList"{?if $j['order']>1?} style="display:none;"{?/if?}>
	<table width="100%" class="grid">
		<tr>
			<th>说明</th><th>语言项</th><th>语言项值</th><th>操作</th>
		</tr>
		<tbody>
		{?section name=i loop=$rows?}
		<tr>
			<td>{?$rows[i].title?}</td>
			<td>{?$rows[i].name?}</td>
			<td><input name="setting[{?$rows[i].id?}][{?$j['key']?}]" value="{?$rows[i]['setting'][j]?}" class="text" size="80"></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?}/lang.php?action=add&id={?$rows[i].id?}','修改语言项','500','120')">{?function saxue_geticon:'edit':'修改语言项'?}</a>
				<a href="?action=delete&id={?$rows[i].id?}" onclick="return confirm('你确定要删除语言项 {?$rows[i].title?} 吗？')">{?function saxue_geticon:'del':'删除语言项'?}</a>
				{?/if?}
			</td>
		</tr>
		{?/section?}
		</tbody>
	</table>
</div>
{?/section?}
<div><br><input type="submit" name="submit" id="submit" class="button" value="更新设置"/></div>
</form>
<table width="100%"><tr><td width="100%">
	<div class="fl pages">
		<ul>
			<li><span class="fl">每页显示:</span></li>
			<li{?if $Saxue.request.pagesize==10?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(10)">10</a></li>
			<li{?if $Saxue.request.pagesize==30?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(30)">30</a></li>
			<li{?if $Saxue.request.pagesize==50?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(50)">50</a></li>
			<li{?if $Saxue.request.pagesize==100?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(100)">100</a></li>
		</ul>
	</div>
	<div class="fr pages"><ul>{?$url_jumppage?}</ul></div>
</td></tr></table>