{?if $bill>0?}
<form class="form">
    <fieldset>
        <div class="frow">
            <label class="col4 flabel">收款人：</label>
            <div class="col8 last show">{?$row.payee?}</div>
        </div>
        <div class="frow">
            <label class="col4 flabel">收款银行：</label>
            <div class="col8 last show">{?$row.bank?}</div>
        </div>
        <div class="frow">
            <label class="col4 flabel">收款帐号：</label>
            <div class="col8 last show">{?$row.account?}</div>
        </div>
    </fieldset>
</form>
{?else?}
<form class="form" name="frmedit" id="frmedit" method="post">
	<input type="hidden" name="dosubmit" value="1" />
    <fieldset>
        <div class="frow">
            <label class="col4 flabel">收款人：</label>
			{?if $row.payee==''?}<div class="col8 last"><input type="text" class="text" name="payee" id="payee" maxlength="10" style="width:160px" value="" /></div>
            {?else?}<div class="col8 last show">{?$row.payee?}<input type="hidden" name="payee" id="payee" value="{?$row.payee?}" /></div>{?/if?}
        </div>
        <div class="frow">
            <label class="col4 flabel">收款银行：</label>
            <div class="col8 last">
				<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 class="frow">
            <label class="col4 flabel">收款帐号：</label>
            <div class="col8 last">
				<input type="text" class="text" name="account" id="account" maxlength="50" style="width:160px" value="{?$row.account?}" />
            </div>
        </div>
		<div class="frow">
			<button type="button" class="btn btn-primary btn-large" id="clksave" name="submit">保　存</button>
		</div>
    </fieldset>
</form>
<script>
$(function(){
	var dosave = false;
	$("#clksave").tap(function () {
		if(dosave) return;
		dosave = true;
		$.post('account.php', $('#frmedit').serialize(), function(res){
			if(res.flag==0) {
				dosave = false;
				popTip(res.msg);
			} else {
				popTip('财务信息保存成功');
				setTimeout(function(){window.location.href='/member/'}, 1000);
			}
		}, 'json')
    })
})
</script>{?/if?}