<form action="payment.manage.php?action=update" id="form_modi" name="form_modi" method="post" style="padding-bottom:20px">
	<input type="hidden" name="config_file" id="config_file" value="<tpl> $config_file </tpl>" />
	<input type="hidden" name="config_dir" id="config_dir" value="<tpl> $config_dir </tpl>" />
	<input type="hidden" name="param_line" id="param_line" value="<tpl> $param_line </tpl>" />
<table border="0" cellpadding="0" cellspacing="0" class="from_table2">
	<tpl> section name=loop loop=$value_array </tpl>
	<tr>
	  <th width="200"><tpl> $value_array[loop].name </tpl></th>
		<td width="300" class="td rowform"><input border="none" type="text" class="txtinput" name="<tpl> $value_array[loop].param </tpl>" id="<tpl> $value_array[loop].param </tpl>" value="<tpl> $value_array[loop].value </tpl>" /></td>
		<td width="180" class="vtop tips2"></td>
	</tr>
	<tpl> /section </tpl>
	<tr>
	  <th width="200"><tpl> $langSysPaymentIfOpen </tpl></th>
		<td width="300" align="left" class="td rowform"><input type="radio" name="config_state" value="0" 
		  
		  <tpl> if $config_state eq '0' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langSysPaymentToClosed </tpl>
	  <input type="radio" name="config_state" value="1" <tpl> if $config_state eq '1' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langSysPaymentToOpened </tpl></td>
		<td width="180" class="vtop tips2"><tpl> if $config_dir eq "tenpay" </tpl><tpl> $langSysPaymentTenpayInfo </tpl><tpl> /if </tpl></td>
	</tr>
	
</table>
<div class="table-5-bottom">
<div class="btn_marginleft_1">
 <div style="float:left; padding-left:20px">
		  	<span class="btn_left">
		  <input type="submit" name="Submit" class="btn_submit" value="<tpl> $langSysPaymentModiCommit </tpl>" />
		  </span>
		  	<span class="btn_left">
		  <input type="button" name="back" class="btn_submit" value="<tpl> $langSysPaymentModiBack </tpl>" onclick="ShowDiv	= 'result_content';getPageContent('payment.manage.php?action=ajax_list');" />
		  </span>		 </div>
		  </div>
		  </div>
</form>
<script>
$(document).ready(function() {
	
	//修改
	var options = {
		beforeSubmit:  function(){showLoading(showSaveText);},
		success:       function(msg){
							hideLoading();
							showMessage(msg.message,msg.type);
							if(msg.type == '1'){
								ShowDiv	= 'result_content';
								getPageContent("payment.manage.php?action=ajax_list");
							}
						},
		type:      'post',
		dataType:  'json'
	};
	
	//对表单做的验证定义
	$("#form_modi").validate({
		errorClass: "wrong",
		rules: {
		},
		messages: {
		},
		submitHandler: function() {
			$('#form_modi').ajaxSubmit(options);
		}
	});
});
</script>