<div class="hint"><h3>财务信息</h3></div>
{?if $bill>0?}
<div class="m-sec">
	<div class="sub">收款人:</div>
	<div class="main main-2">
		<div class="inner">
			<p class="inpshow">{?$row.payee?}</p>
		</div>
	</div>
</div>
<div class="m-sec">
	<div class="sub">收款银行:</div>
	<div class="main main-2">
		<div class="inner">
			<p class="inpshow">{?$row.bank?}</p>
		</div>
	</div>
</div>
<div class="m-sec">
	<div class="sub">收款帐号:</div>
	<div class="main main-2">
		<div class="inner">
			<p class="inpshow">{?$row.account?}</p>
		</div>
	</div>
</div>
{?else?}
<form method="post" name="frmedit" id="frmedit">
<input type="hidden" name="dosubmit" value="1" />
<div class="m-sec">
	<div class="sub">收款人:</div>
	<div class="main main-2">
		<div class="inner">
			{?if $row.payee==''?}<input type="text" name="payee" id="payee" maxLength="10" value="{?$row.payee?}" class="inptxt" />
			{?else?}<p class="inpshow">{?$row.payee?}<input type="hidden" name="payee" id="payee" maxLength="10" value="{?$row.payee?}" class="inptxt" /></p>{?/if?}
		</div>
	</div>
</div>
<div class="m-sec">
	<div class="sub">收款银行:</div>
	<div class="main main-2">
		<div class="inner">
			<select name="bank" class="select">
				<option value="支付宝"{?if $row.bank=='支付宝'?} selected{?/if?}>支付宝</option>
				<option value="中国工商银行"{?if $row.bank=='中国工商银行'?} selected{?/if?}>中国工商银行</option>
				<option value="中国农业银行"{?if $row.bank=='中国农业银行'?} selected{?/if?}>中国农业银行</option>
			</select>
		</div>
	</div>
</div>
<div class="m-sec">
	<div class="sub">收款帐号:</div>
	<div class="main main-2">
		<div class="inner">
			<input type="text" name="account" id="account" maxLength="50" size="30" value="{?$row.account?}" class="inptxt" />
		</div>
	</div>
</div>
<div class="m-sec">
	<div class="sub"></div>
	<div class="main">
		<div class="inner">
			<input type="submit" value="提交保存" class="post_submit">
		</div>
	</div>
</div>
</form>
<script type="text/javascript" src="{?$saxue_skin_server?}/lib/formvalidator.js"></script>
<script type="text/javascript" src="{?$saxue_skin_server?}/lib/formvalidatorregex.js"></script>
<script id="postScript" type="text/javascript">
$(function(){
	$.formValidator.initConfig({formid:"frmedit",autotip:true});
	{?if $row.payee==''?}$("#payee").formValidator({onshow:"请输入收款人",onfocus:"请输入收款人",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"收款人不能为空"}).regexValidator({regexp:"^[\\u4e00-\\u9fa5]{2,10}$",onerror:"收款人格式错误"});{?/if?}
	$("#account").formValidator({onshow:"请输入收款账号",onfocus:"请输入收款账号",oncorrect:"输入正确"}).inputValidator({min:1,onerror:"收款账号不能为空"}).regexValidator({regexp:"^[\\w\\@\\.-]{2,50}$",onerror:"收款账号格式错误"});
	$("#frmedit").ajaxForm({
        dataType: "json",
        success : function(data){
			if(data.flag == 0){
				alert(data.msg);
			}else{
				alert('财务信息保存成功');
				location.href='/member/';
			}
        }
    });
})
</script>
{?/if?}