<?php  include("../template/usertop.php");?>
<body style="padding:0px;">
<?php  include("../template/menu.php");?>
<?php
	//判断没绑定银行账号不能进行提现
	$username = $userConfig['username'];
	//是否冻结
	$is_dongjie = $userConfig["is_dongjie"];
	$sql = "select isbank from  {$db_prefix}member where username =  '{$username}'";
	$rsno = $db->get_one($sql);		//失败充值
	if($rsno['isbank'] == 0){
		echo"<script>alert('您还未绑定银行账号！');location.href='/mobile/user/bank.php';</script>";  
		die();
	}
?>
<div class="head-wrap">
<div class="main_top_1">
<div class="mt" style="position:relative;">
<?php  include("../template/user_left.php");?> 
<div class="user_zx_right">
<div class="box">
<div class="tagMenu">
<ul class="menu">
<li><a href="/mobile/user/statistics.php">资金统计</a></li>
<li><a href="/mobile/user/recharge.php">马上充值</a></li>
<li><a href="/mobile/user/recharge_list.php">充值记录</a></li>
<li class="current"><a href="/mobile/user/withdraw.php">马上提现</a></li>
<li><a href="/mobile/user/withdraw_list.php">提现记录</a></li>
<li><a href="/mobile/user/offline_record.php">下线分成记录</a></li>
</ul>
<div class="hite"> <span id="account"></span> </div>
</div>
</div>
<div class="myinfo" style="padding: 20px; margin-bottom: 15px;background:#fff;">
<p style="margin:15px 0px;">温馨提示：提现金额必须整数提现。</p>


<form action="/mobile/action/user.php?action=moneyDeal" method="post"  name="au" id="au" onsubmit="return checkf3();">
<table border="0" width="100%" cellspacing="0" cellpadding="0" style="margin-top:10px;table-layout-:fixed;" height="90" id="alipay">

<tbody><tr>
<td bgcolor="#f5f5f5" height="34" style="background:#F9F9F9;border-top:#e6e6e6 solid 1px;border-left:#e6e6e6 solid 1px;border-right:#e6e6e6 solid 1px; font-size:16px; text-align:center;" colspan="2">马上提现</td>
</tr>
<tr height="40">
<td width="60" align="right" style="background:#F9F9F9;border-top:#e6e6e6 solid 1px;border-bottom:#e6e6e6 solid 1px;border-left:#e6e6e6 solid 1px;border-right:#e6e6e6 solid 1px;">会员账号：</td>
<td width="200" style="border-right:#e6e6e6 solid 1px;border-top:#e6e6e6 solid 1px;border-bottom:#e6e6e6 solid 1px; padding-left:5px;"><?php  echo $userConfig['username'];?></td>
</tr>
<tr height="40">
<td width="60" align="right" style="background:#F9F9F9;border-bottom:#e6e6e6 solid 1px;border-left:#e6e6e6 solid 1px;border-right:#e6e6e6 solid 1px;">目前可用额度：</td>
<td width="200" style="border-right:#e6e6e6 solid 1px;border-bottom:#e6e6e6 solid 1px; padding-left:5px;"><?php echo $userConfig["amount"]; ?></td>
</tr>
<tr height="60">
<td style="background:#F9F9F9;border-bottom:#e6e6e6 solid 1px;border-left:#e6e6e6 solid 1px;border-right:#e6e6e6 solid 1px;" align="right">提现额度：</td>
<td style="border-right:#e6e6e6 solid 1px;border-bottom:#e6e6e6 solid 1px; padding-left:5px;">
<?php if($is_dongjie==0){?>
账户被冻结	
<? }else{ ?>
<input type="number" name="amount" style="width:130px; height:40px; line-height:40px; border-radius: 15px; border:#CCCCCC solid 1px; padding:0px 8px;">
<?php } ?>
</td>
</tr>
<tr height="60">
<td style="background:#F9F9F9;border-bottom:#e6e6e6 solid 1px;border-left:#e6e6e6 solid 1px;border-right:#e6e6e6 solid 1px;" align="right">交易密码：</td>
<td style="border-right:#e6e6e6 solid 1px;border-bottom:#e6e6e6 solid 1px; padding-left:5px;"><input type="password" name="paypwd" style="width:130px; height:40px; line-height:40px; border-radius: 15px; border:#CCCCCC solid 1px; padding:0px 8px;"> </td>
</tr>
<tr height="60">
<td style="background:#F9F9F9;border-bottom:#e6e6e6 solid 1px;border-left:#e6e6e6 solid 1px;border-right:#e6e6e6 solid 1px;" align="right">备注：</td>
<td style="border-right:#e6e6e6 solid 1px;border-bottom:#e6e6e6 solid 1px; padding-left:5px;">
<textarea rows="3"  name="memo" style="width:250px; height:100px; line-height:40px; border-radius: 15px; border:#CCCCCC solid 1px; padding:0px 8px;">
</textarea>(选填)
</tr>
<tr height="50">
<td style="border-bottom:#e6e6e6 solid 1px;border-left:#e6e6e6 solid 1px;border-right:#e6e6e6 solid 1px;" align="right"></td>
<td style="border-right:#e6e6e6 solid 1px;border-bottom:#e6e6e6 solid 1px; color:#ff9600; padding-left:3px;">
<?php if($is_dongjie!=0){?>
  <input style="background:#ff6600; height:30px; line-height:30px; width:110px; border:0px; color:#FFFFFF; font-size:14px;" type="submit" value="马上提现"> 
<?php } ?>
  <input type="button" value=" " class="btncancel" onclick="location.href=location.href;" id="btn_cancel"></td>
</tr>
</tbody></table>
</form>

<script language="JavaScript">
  function checkf3()
{
  if(document.au.amount.value=='') {
	document.au.amount.focus();
    alert("金额不能为空！");
	return false;
  }	
  
  if(document.au.amount.value<200) {
	document.au.amount.focus();
    alert("金额不能少于200元！");
	return false;
  }
  
} 
</script>

</div>
</div>
</div>
</div>
<?php  include("../template/foot.php");?> 
</body></html>