<form action="language.manage.php" id="form_add" name="form_add" method="post">
	<input type="hidden" name="action" value="save" />
    <table class="from_table">
		<tr>
		  <th width="200" align="right" ><tpl> $langLanguageName </tpl>：</th>
			<td width="580" align="left" class="td1"><input name="txtname" type="text" id="txtname"  class="txtinput"/>
			<label style="display:none" for="txtname" class="wrong" metaDone="true" generated="true"></label>		  </td>
		</tr>
		<tr>
		  <th width="200" align="right"><tpl> $langLanguageSign </tpl>：</th>
			<td width="580" align="left" class="td1"><input name="txtsign" type="text" id="txtsign"  class="txtinput" />
			<label style="display:none" for="txtsign" class="wrong" metaDone="true" generated="true"></label>		  </td>
		</tr>
		<tr>
		  <th width="200" align="right" ><tpl> $langLanguagePath </tpl>：</th>
			<td width="580" align="left" class="td1"><tpl> $url </tpl><input name="txtpath" type="text" id="txtpath"  class="txtinput" />
			<label style="display:none" for="txtpath" class="wrong" metaDone="true" generated="true"></label>		  </td>
		</tr>
		<tr>
		  <th width="200" align="right" ><tpl> $langLanguageSort </tpl>：</th>
			<td width="580" align="left" class="td1"><input name="txtsort" type="text" id="txtsort"  class="txtinput" />
			<label style="display:none" for="txtsort" class="wrong" metaDone="true" generated="true"></label>		  </td>
		</tr>
		<tr>
		  <th width="200" align="right" ><tpl> $langLanguageDefault </tpl>：</th>
			<td width="580" align="left" class="td1">
				<input type="radio" name="txtstate" value="1" /><tpl> $langLanguageYes </tpl>
				<input type="radio" name="txtstate" value="0" checked="checked" /><tpl> $langLanguageNo </tpl>		  </td>
		</tr>
		<tr>
    		<td width="200">				</td>
    	    <td width="580"><span class="btn_left">
   	      <input type="submit" class="btn_submit" name="Submit" value="<tpl> $langLanguageSubmit </tpl>" /></span>	</td>
		</tr>
  </table>
</form>
<script>
$(document).ready(function() {
	//添加
	var options = {
		beforeSubmit:  function(){showLoading(showSaveText);},
		success:       function(msg){
							hideLoading();
							showMessage(msg.message,msg.type);
							if(msg.type == '1'){
								ST(0,0);
								ShowDiv	= 'result_content';
								getPageContent("language.manage.php?action=ajax_list");
							}
						},
		type:      'post',
		dataType:  'json'
	};
	
	//对添加表单做的验证定义
	$("#form_add").validate({
		errorClass: "wrong",
		rules: {
		},
		messages: {
		},
		submitHandler: function() {
			$('#form_add').ajaxSubmit(options);
		}
	});
});
</script>