<form action="baseinfo.manage.php?action=update" method="post" style=" line-height:20px" name="form_baseinfo_up" id="form_baseinfo_up">
<table border="0" cellpadding="0" cellspacing="0" class="from_table">
	  <tr>
		<th><tpl> $langBBankIco </tpl></th>
		<td class="td rowform"><input name="txtlineico" type="text" id="txtlineico" class="txtinput" value="<tpl> $mode_info.pay_ico </tpl>"/></td>
		<td class="vtop tips2"><tpl> $langBLinkDir </tpl></td>
	  </tr>
	  <tr>
		<th><tpl> $langBBank </tpl></th>
		<td class="td rowform"><input name="txtbank" type="text" id="txtbank" class="txtinput" value="<tpl> $mode_info.pay_name </tpl>"/></td>
		<td class="vtop tips2"><label style="display:none" for="txtbank" class="wrong" metaDone="true" generated="true"></label></td>
	</tr>
	<tr>
		<th><tpl> $langBAccounts </tpl></th>
		<td class="td rowform"><input name="txtbankaccounts" type="text" id="txtbankaccounts" class="txtinput" value="<tpl> $mode_info.pay_account </tpl>"/></td>
		<td class="vtop tips2"><label style="display:none" for="txtbankaccounts" class="wrong" metaDone="true" generated="true"></label></td>
	</tr>
	<tr>
		<th><tpl> $langBConsignee </tpl></th>
		<td class="td rowform"><input name="txtConsignee" type="text" id="txtConsignee" class="txtinput" value="<tpl> $mode_info.pay_consignee </tpl>"/></td>
		<td class="vtop tips2"><label style="display:none" for="txtConsignee" class="wrong" metaDone="true" generated="true"></label></td>
	</tr>
	  <tr>
	    <td class="td1">		</td>
	    <td colspan="2" class="td1">	<div style="float:left; padding-left:20px">
			<input type="hidden" name="type" value="2" />
			<input type="hidden" name="id" value="<tpl> $mode_info.pay_id </tpl>" />
			
			<span class="btn_left">
			<input type="submit" name="Submit" value="<tpl> $langBSaveLineDownAccount </tpl>" class="btn_submit" />&nbsp;&nbsp;			</span>
			<span class="btn_left">
			<input type="button" id="return" name="return" value="<tpl> $langBReturnList </tpl>" class="btn_submit"  />
			</span>		</div>	</td>
      </tr>
  </table>
</form>
<pre>

</pre>
 
 
<script language="javascript" type="text/javascript">
$(document).ready(function() {
	
	//返回列表
	$("#return").click(function(){
		ShowDiv = "pay_list";
		getPageContent("baseinfo.manage.php?action=pay_list");
	});
	
	var options = {
		beforeSubmit:  function(){showLoading(showSaveText);},
		success:       function(msg){
			hideLoading();
			showMessage(msg.message,msg.type);
			if(msg.type == '1'){
				ShowDiv = "pay_list";
				getPageContent("baseinfo.manage.php?action=pay_list");
			}
		},

		type:      'post',
		dataType:  'json'
	};
	
	//对添加表单做的验证定义
	$('#form_baseinfo_up').validate({
		errorClass: "wrong",
		rules: {
			txtbank: {required:true},
			txtbankaccounts: {required:true},
			txtConsignee: {required:true}
		},
		messages: {
			txtbank: {required: "<tpl> $langBBankNameNotNull </tpl>"},
			txtbankaccounts: {required: "<tpl> $langBAccountsNotNull </tpl>"},
			txtConsignee: {required:"<tpl> $errBConsigneeIsEmpty </tpl>"}
		},
		submitHandler: function() {
			$('#form_baseinfo_up').ajaxSubmit(options);
		}
	});
});
</script>