<?php
if(!isset($GLOBALS['_vars'])) $GLOBALS['_vars'] = array(); 
$fields = array();
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>充值UB</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/member/css.css" rel="stylesheet" type="text/css">
<script src="/member/js/jquery.js" type="text/javascript"></script>
<script src="/member/js/js.js" type="text/javascript"></script>
<link href="templets/style/base.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templets/js/j.js"></script>
<script type="text/javascript" src="templets/js/load.js"></script>
<script type="text/javascript" src="templets/js/leftmenu.js"></script>
</head>
<body>

<?php include(DEDEMEMBER."/templets/head.htm"); ?>

<div id="main">
<div class="t_h2">
<h2>充值消费</h2>
</div>
<div id="xy_nav">
<div class="nav2">
<h3>
<a href="/member/buy.php" title="充值UB" class="on">充值UB</a>
<a href="/member/operation.php" title="充值记录">充值记录</a>
<a href="/member/mypay.php" title="消费记录">消费记录</a>
</h3></div>
</div>
<div class="box">
<div class="tip">

<div class="tip_t">
<strong>支付宝充值说明</strong><em>合起</em>
</div>
				
                        <div id="fbsm" style="display:block" >
                        <div class="fbsm_n">
您可以在支付宝选择网络银行或支付宝账号进行充值。 <br>  
<strong style="color:#f00;">1元=100U币</strong>，充值越多优惠越多，所充金额自动到账，无需等待即可直接下载所需资源。 <br>
支付宝客服电话：0571-88157858。<A href="http://help.alipay.com/lab/index.htm" target="_blank">支付宝帮助系统</A>。<br>
<strong style="color:#f00;">如何使用网银充值?</strong><br>
1.选择充值金额,点击立即充值按钮,会自动跳出支付宝的支付页面。<br>
2.支付页面,如果您有支付宝帐号,在左侧的窗口内输入支付宝帐号及支付密码后点击下一步。<br>
如果您没有支付宝帐号,则请在右侧的窗口内输入您的手机号码或邮箱地址,选择下一步。<br>
3.在新的页面选择您使用的网上银行,支付完成后UB将自动到账。

</div>
</div></div>

<!--内容消息提示 -->
        <?php
          if($cfg_money_scores > 0) {
          ?>
        <div class="postForm">
        <h3 class="meTitle">
        <?php
         	$canCav = floor($cfg_ml->fields['scores'] / $cfg_money_scores);
        ?>
        <strong>用积分兑换金币</strong> &nbsp;(<?php echo "兑换价格：{$cfg_money_scores} 积分/个，你目前可兑换金币数量：{$canCav} 个"; ?>)</h3>
        <form name="formrank" action="index_do.php?dopost=money2s&fmdo=user" method="post">
			<table width="100%" border="0" cellpadding="0" cellspacing="0" class="list">
				<tbody>
					<tr>
                        <td width="15%" align="right" valign="top">兑换数量：</td>
						<td width="35%"><input name="money" type="text" id="money" size="38" class="intxt" value="<?php echo $canCav; ?>" style="width:200px"/></td>
						<td align='left'><button class="button2" type="submit">兑换</button></td>
						</tr>
				</tbody>
			</table>
        </form>
        </div>
        <?php } ?>
        <div class="postForm">
        <h3 class="meTitle">用点卡充值</h3>
        <form name="formrank" action="check_card.php" method="post">
			<table width="100%" border="0" cellpadding="0" cellspacing="0" class="list">
				<tbody>
					<tr>
						<td width="15%" align="right" valign="top">点卡密码：</td>
						<td><input name="cardid" type="text" id="cardid" size="38" class="intxt" style="width:200px"/></td>
					</tr>
					<tr>
						<td align="right" valign="top">验证码：</td>
						<td><input name="vdcode" type="text" id="vdcode" size="8" class="intxt" style='width:50px;text-transform:uppercase;' />
							<img src="../include/vdimgck.php" alt="看不清？点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" />
                        </td>
					</tr>
				</tbody>
				<tfoot>
					<tr>
						<td align="right" valign="top">&nbsp;</td>
						<td><button class="button2 mt5" type="submit">充值</button></td>
					</tr>
				</tfoot>
			</table>
      </form>
      </div>
      <div class="postForm">
      <h3 class="meTitle">购买新点卡:</h3>
	  <form name="f1" action="buy_action.php" method="post">
		<input type="hidden" name="product" value="card" />
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="list">
			<tr style='height:28px;background:#F9FEE9;'>
				<th width="10%">选择</th>
				<th >点卡类型</th>
				<th width="15%">金币数量</th>
				<th width="15%">购买价格</th>
			</tr>
			<tbody>
                <?php echo $moneycards;?>
			</tbody>
		</table>
		<button class="button2 mt5" type="submit">购买</button>
	  </form>
      </div>
      <div class="postForm">
        <h3 class="meTitle">会员升级</h3>
            <form name="f1" action="buy_action.php" method="post">
              <input type="hidden" name="product" value="member" />
              <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list">
                <thead>
                <tr>
                    <th colspan='5' style='text-align:left;padding-left:10px;height:24px;line-height:24px;'>会员升级:</th>
                 </tr>
                </thead>
                <tr style='height:28px;background:#F9FEE9;'>
                    <th width="10%">选择</th>
                    <th >产品名称</th>
                    <th width="12%">会员类型</th>
                    <th width="12%">时限(天)</th>
                    <th width="10%">价格</th>
                 </tr>
                <tbody>
                  <?php echo $membertypes?>
                </tbody>
              </table>
              <button class="button2 mt5" type="submit">购买</button>
            </form>
          </div>  
 </div>
<!--主操作区域 -->
    </div>
  </div>
<?php include(DEDEMEMBER."/templets/foot.htm"); ?>
</div>
</body>
</html>