{include file="page_header.htm"}
{insert_scripts files="../js/utils.js"}
<form enctype="multipart/form-data" name="theForm" action="language.php" method="post" onsubmit="return validate()">
<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="table_form1" >	
	<tr>
	<td class="label">语言名称:</td>
	<td>
	<input type="text" name="name" value="{$language_info.name|escape:html}" class="FormSmall"  style="width:200px;" /> <span class="required">&nbsp;</span>
	</td>
	</tr>
	<tr>
	<td class="label"><a href="#" title="语言包存放的目录名，比如：中文是zh_cn,英文是en" style="margin-right:5px;" ><img src="images/help.gif" border="0" alt=""/></a> 语言编码:</td>
	<td>
	<input type="text" name="code" value="{$language_info.code|escape:html}" class="FormSmall" style="width:200px;" /> <span class="required">&nbsp;</span>
	</td>
	</tr>
	
	<tr>
	<td class="label">显示顺序:</td>
	<td>
	<input type="text" name="sort_order" value="{$language_info.sort_order}" class="FormSmall" style="width:200px;"  />
	</td>
	</tr>
	
	<tr>
	<td class="label">是否启用:</td>
	<td>
		<label><input type="radio" name="status" value="1" {if $language_info.status == 1}checked="checked"{/if} /> 是</label>
		<label><input type="radio" name="status" value="0" {if $language_info.status == 0}checked="checked"{/if} /> 否</label>
	</td>
	</tr>
	
	<tr>
	<td style="border:none;"></td>
	<td style="border:none;">
		<input type="hidden" name="act" value="{$form_act}" />
	<input type="submit" value="提交" class="bginput" />
	<input type="reset" value="重置" class="bginput" />
	</td>
	</tr> 
</table>
</form>
<script language="JavaScript">
{literal}
function validate(){
	validator = new Validator("theForm");
	validator.required("name",      "请输入语言名称");
	validator.required("code",     "请输入语言编码");
	return validator.passed();
}
{/literal}
</script>
{insert_scripts files="validator.js"}
{include file="page_footer.htm"}