<div class="clear10"></div>
<form method="post" name="frmedit" id="frmedit">
<input type="hidden" name="dosubmit" value="1" />
<table bgcolor="#fff" width="100%" align="center" style="padding:10px 0">
	<tr align="left"><td width="100%" style="padding:0 10px">
	{?if $err==1?}请您先<a href="account.php?menuid=9" class="blue">完善您的财务信息</a>
	{?elseif $err==2?}您申请的提现正在处理中，请耐心等待，查看<a href="bill.php?menuid=8" class="blue">提现记录</a>
	{?else?}请<a href="useredit.php?menuid=4" class="blue">留下您的真实联系方式</a>，以便于我们与您确认
	<table width="100%" class="gray">
		{?if $user.mobile!=''?}<tr><td width="80" align="right">手机：</td><td width="*" align="left">{?$user.mobile?}</td></tr>{?/if?}
		{?if $user.qq!=''?}<tr><td align="right">QQ：</td><td>{?$user.qq?}</td></tr>{?/if?}
		{?if $user.msn!=''?}<tr><td align="right">MSN：</td><td>{?$user.msn?}</td></tr>{?/if?}
	</table>
	您的提现帐户信息，修改提现帐户，请 <a href="account.php?menuid=9" class="blue">点击这里</a>
	<table width="100%" class="gray">
		<tr><td width="80" align="right">收款人：</td><td width="*" align="left">{?$account.payee?}</td></tr>
		<tr><td align="right">收款银行：</td><td>{?$account.bank?}</td></tr>
		<tr><td align="right">收款帐号：</td><td>{?$account.account?}</td></tr>
	</table>
	<table width="100%">
		<tr><td width="70">提现金额：</td><td width="*" align="left"><input type="text" class="text" name="amount" size="10" onkeyup="value=value.replace(/[^0-9\.]/g,'');" />&nbsp;元</td></tr>
		<tr><td></td><td class="gray">您的账户当前可用余额为&nbsp;<span class="green">{?$saxue_money?}</span>&nbsp;元</td></tr>
		<tr><td colspan="2"><button type="button" class="btn btn-primary btn-large" id="clksave" name="submit">申请提现</button></td></tr>
	</table>
	{?/if?}
	</td></tr>
</table>
</form>
<script>
$(function(){
	var dosave = false;
	$("#clksave").tap(function () {
		if(dosave) return;
		dosave = true;
		$.post('cash.php', $('#frmedit').serialize(), function(res){
			if(res.flag==0) {
				dosave = false;
				popTip(res.msg);
			} else {
				popTip('申请已提交');
				setTimeout(function(){window.location.href='bill.php?menuid=8'}, 1000);
			}
		}, 'json')
    })
})
</script>
