<?php
$title='余额充值';
include './head.php';
$row=$DB->get_row("SELECT * FROM moyu_user WHERE user='".$MoYo['user']."'");
$kami=$DB->get_row("SELECT * FROM moyu_km WHERE km='{$_POST['km']}'");
?>
<main class="lyear-layout-content">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-header">
<h4>余额充值</h4>
</div>
<div class="card-body">
<div class="form-group">
<label for="web_site_title">在线充值</label>
<input class="form-control" name="value" placeholder="输入你要充值的余额">
</div>
<center>
<?php 
if($conf["alipay_api"]==0 && $conf["qqpay_api"]==0 && $conf["wxpay_api"]==0){
echo "管理员没配置支付接口";
}
if($conf['alipay_api'])echo '<button type="submit" class="btn btn-default" id="buy_alipay"><img src="../assets/icon/alipay.ico" width="15" height="17" class="logo">支付宝</button>&nbsp;';
if($conf['qqpay_api'])echo '<button type="submit" class="btn btn-default" id="buy_qqpay"><img src="../assets/icon/qqpay.ico" class="logo">QQ钱包</button>&nbsp;';
if($conf['wxpay_api'])echo '<button type="submit" class="btn btn-default" id="buy_wxpay"><img src="../assets/icon/wechat.ico" class="logo">微信支付</button>&nbsp;';
?>
</center>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-header">
<h4>卡密充值</h4>
</div>
<div class="card-body">
<div class="form-group">
<label for="web_site_title">输入卡密</label>
<input class="form-control" type="text"  id="km"name="km" value="" placeholder="输入你购买的卡密">
</div>
<div class="form-group">
<button type="button" onclick="kmgm();"  class="btn btn-primary m-r-5">确 定</button>
</div>
</div>
<script src="//cdn.bootcss.com/clipboard.js/1.7.1/clipboard.min.js"></script>
<script src="//cdn.bootcss.com/toastr.js/latest/toastr.min.js"></script>
<script src="../assets/layui/layui.js"></script>
<script type="text/javascript" src="../assets/LightYear/js/jquery.min.js"></script>
<script type="text/javascript" src="../assets/LightYear/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../assets/LightYear/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="../assets/LightYear/js/main.min.js"></script>
</body>
</html>
