<?php
require 'config.php';
//http://39.105.163.239:88/pay/index.php?orderInfo=800_901162347544717184_20000&userId=qq1234&userName=qq1234&token=de6cd28f4c2welcometo35bokecomandqcymwcom21a8a
//echo "<pre>";var_dump($_REQUEST);die;
$orderInfo = $_REQUEST['orderInfo'];
$userId = $_REQUEST['userId'];
$token = $_REQUEST['token'];
$array = explode("_",$orderInfo);
$zoneid = $array[0];//分区ID
$roleid = $array[1];//角色ID
$gold = $array[2];//元宝数量
$money = intval($gold/$bili);
?>

<!DOCTYPE html>
<html lang="en">
<head>
     <meta charset="UTF-8">
     <meta http-equiv="X-UA-Compatible" content="IE=Edge">
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
     <title>赞助中心 - 传奇世界</title>
     <meta name="keywords" content=""/>
     <meta name="description" content=""/>
	 <link rel="stylesheet" href="../style.css">
	 <link rel="stylesheet" type="text/css" href="css/style.css">
     <style>
        a:link {
            text-decoration: none;
        }

        　　 a:active {
            text-decoration: blink
        }

        　　 a:hover {
            text-decoration: underline;
        }

        　　 a:visited {
            text-decoration: none;
        }

        *, :after, :before {
            /* -webkit-box-sizing: border-box; */
            -moz-box-sizing: border-box;
            box-sizing: border-box;
        }

        button, html input[type=button], input[type=reset], input[type=submit] {
            -webkit-appearance: button;
            cursor: pointer;
        }
     </style>
</head>
<body>
<div class="flex_row" style="width:100%;height:60px;position:fixed;top:0px;left:0px;background:#000000">
   <img src="../images/logo.png" width="50" height="50" style="margin:5px;"/>
   <div class="flex_column_left flex_grow_fill" style="color:#FFF;margin-left:20px;">
		<div style="font-size:16px;font-weight:bold">传奇世界</div>
		<div style="font-size:12px;margin-top:2px;">经典传世，震撼公测</div>
   </div>
   <img src="../images/download.png" style="margin-right:20px;" height="40" width="100" 
                 onclick="javascript:window.location.href='../download.html'"/>
</div>
<div class="flex_column widthP100" style="margin-top:60px;">
	
	<div id="loadingPicBlock" style="max-width: 720px;margin:0 auto;" class="pay">
    <section class="clearfix g-member">
        <h1 style="padding:20px 0px;">充值账号：<?php echo $userId; ?></h1>
        <div class="g-Recharge">
            <ul id="ulOption">
                <li money="10"><a class="<?php if($money==10) echo 'z-sel'; ?>" href="javascript:;">2万元宝<s></s></a></li>
                <li money="20"><a class="<?php if($money==20) echo 'z-sel'; ?>" href="javascript:;">4万元宝<s></s></a></li>
                <li money="50"><a class="<?php if($money==50) echo 'z-sel'; ?>" href="javascript:;">10万元宝<s></s></a></li>
                <li money="100"><a class="<?php if($money==100) echo 'z-sel'; ?>" href="javascript:;">20万元宝<s></s></a></li>
                <li money="300"><a class="<?php if($money==300) echo 'z-sel'; ?>" href="javascript:;">60万元宝<s></s></a></li>
                <li money="500"><a class="<?php if($money==500) echo 'z-sel'; ?>" href="javascript:;">100万元宝<s></s></a></li>
                <li money="1000"><a class="<?php if($money==1000) echo 'z-sel'; ?>" href="javascript:;">200万元宝<s></s></a></li>
                <li money="3000"><a class="<?php if($money==3000) echo 'z-sel'; ?>" href="javascript:;">600万元宝<s></s></a></li>
            </ul>
        </div>
        <form action="<?php echo $payurl;?>" method="post">
            <article class="clearfix mt10 m-round g-pay-ment g-bank-ct">
                <ul id="ulBankList">
                    <li class="gray6" style="width: 100%;padding: 10px 0px 0px 10px;">需要支付金额(RMB)：
                        <input type="text" name="money" value="<?php echo $money; ?>" readonly="readonly" style="color:red;font-weight:bold;">
                    </li>
                    <li paytype="1" class="gray9" type="codePay" style="width: 100px;margin:10px;border-top:0px">
                        <a href="javascript:;" class="z-initsel"><img src="img/alipay.jpg"><s></s></a>
                    </li>
                    <li paytype="2" class="gray9" type="codePay" style="width: 100px;margin:10px;border-top:0px">
                        <a href="javascript:;" ><img src="img/weixin.jpg"><s></s></a>
                    </li>
                    
                </ul>
            </article>
            <input type="hidden" name="paytype" value="1" name="type">
            <input type='hidden' name='account' value ='<?php echo $userId;?>'/>
            <input type='hidden' name='param' value ='<?php echo $orderInfo;?>'/>
            <div class="mt10 f-Recharge-btn" style="margin-top:100px;margin-bottom:80px;">
                <button id="btnSubmit" type="submit" href="javascript:;" class="orgBtn">确认支付</button>
            </div>
        </form>
    </section>
    <script src="js/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">

        $(function () {
            var c;
            var g = false;
            var a = null;
            var e = function () {
                $("#ulOption > li").each(function () {
                    var n = $(this);
                    n.click(function () {
                        g = false;
                        c = n.attr("money");
                        n.children("a").addClass("z-sel");
                        n.siblings().children().removeClass("z-sel").removeClass("z-initsel");
                        $("input[name='money']").val(n.attr("money"));
                    })
                });
                $("#ulBankList > li").each(function (m) {
                    var n = $(this);
                    n.click(function () {
                        $("input[name='paytype']").val(n.attr("payType"));
                        n.children("a").addClass("z-initsel");
                        n.siblings().children().removeClass("z-initsel");
                    })
                });

            };
            e()
        });

    </script>

	</div>
</div>
</body>
</html>