<div class="hint"><h3>申请提现</h3></div>
{?if $err==1?}
<div class="hint"><p class="tip">请您先<a href="account.php?menuid=9">完善您的财务信息</a></p></div>
{?elseif $err==2?}
<div class="hint"><p class="tip">您申请的提现正在处理中，请耐心等待，查看<a href="bill.php?menuid=8">提现记录</a></p></div>
{?else?}
<form method="post" name="frmedit" id="frmedit">
<input type="hidden" name="dosubmit" value="1" />
<div class="hint"><p class="tip">请您<a href="useredit.php?menuid=4">留下您的真实联系方式</a>，以便于我们与您的再次确认</p></div>
<ul class="m-secshow">
	{?if $user.mobile!=''?}<li><span>手机:</span>{?$user.mobile?}</li>{?/if?}
	{?if $user.qq!=''?}<li><span>QQ:</span>{?$user.qq?}</li>{?/if?}
	{?if $user.msn!=''?}<li><span>MSN:</span>{?$user.msn?}</li>{?/if?}
</ul>
<div class="hint"><p class="tip">这里是您设置的提现帐户信息，修改提现帐户，请 <a href="account.php?menuid=9">点击这里</a></p></div>
<ul class="m-secshow">
	<li><span>收款人:</span>{?$account.payee?}</li>
	<li><span>收款银行:</span>{?$account.bank?}</li>
	<li><span>收款帐号:</span>{?$account.account?}</li>
</ul>
<div class="m-sec">
	<div class="sub">提现金额:</div>
	<div class="main main-2">
		<div class="inner">
			<input type="text" name="amount" id="amount" maxLength="11" class="inptxt" onkeyup="value=value.replace(/[^0-9\.]/g,'');" />
		</div>
		<div class="inner">
			<p class="inptip">您的账户当前可用余额为<em>{?$saxue_money?}</em>元</p>
		</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});
	$("#amount").formValidator({onshow:"请输入提现金额",onfocus:"请输入提现金额",oncorrect:"输入正确"}).inputValidator({min:1,max:{?$saxue_money?},type:"value",onerror:"提现至少1元，不能超过帐户可用余额"});
	$("#frmedit").ajaxForm({
        dataType: "json",
        success : function(data){
			if(data.flag == 0){
				alert(data.msg);
			}else{
				alert('申请已提交');
				location.href='bill.php?menuid=8';
			}
        }
    });
})
</script>
{?/if?}