123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <?php
- $user_id=$_SESSION['admin_id'];
- $stmit=$pdo->query("select * from recharge where user_id=".$user_id." order by `id` desc");
- ?>
- <!doctype html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="viewport" content="width=device-width, maximum-scale=1.0, initial-scale=1.0, user-scalable=0" />
- <link rel="stylesheet" href="/static/layer/layer.css?v=3.1.1" id="layuicss-layer">
- <link type="text/css" rel="stylesheet" href="/static/css/home/style.css">
- <style type="text/css">
- .a3 {
- float: right;
- display: block;
- background: #ff0000;
- border: 1px solid #fb0404;
- width: 70px;
- height: 24px;
- line-height: 24px;
- text-align: center;
- color: #fff;
- border-radius: 5px;
- font-size: 12px;
- letter-spacing: 1px;
- margin-top: 5px;
- margin-right: 15px;
- }
- </style>
- </head>
- <body>
- <div class="header">
- <div class="box">
- <div class="L"><a onClick="javascript:history.back(-1)" class="goback"><img src="/static/image/goback.png" /></a></div>
- <div class="C">
- <p>话费订单</p>
- </div>
- </div>
- </div>
- <div class="clear"></div>
- <div class="hbox"></div>
- <div class="videoBox">
- <!-- <div class="video_1">
- <img src="/static/image/3.jpg">
- </div> -->
- <div class="titbox">
- <p>充值订单</p>
- <span>查看您所有的订单(点击状态可查看详细信息)</span>
- </div>
- <ul>
- <?php while ($row=$stmit->fetch(PDO::FETCH_ASSOC)){?>
- <li>
- <div class="L">
- <div class="date1"><img src="/static/image/date.png">
- <p><?= explode(" ",$row['created_at'])[0] ?></p>
- </div>
- <div class="date2"><?= explode(" ",$row['created_at'])[1]; ?></div>
- </div>
- <div class="C"><img src="/static/image/line.jpeg"></div>
- <div class="R">
- <div class="tit"><span>订单号:<?= $row['order_sn']; ?></span></div>
- <div class="sub">
- <img src="/static/image/icon_1.png">
- <p>***<?= substr($row['phone'],-4); ?></p>
- <?php if($row['status']!=1){?>
- <a href="javascript:;" onclick="return layer.alert('充值号码:<?= $row['phone']; ?><br>充值金额:30<br>实际支付金额:30')" class="a3">支付失败</a>
- <a href="javascript:;" onclick="return layer.alert('充值号码:<?= $row['phone']; ?><br>充值金额:30<br>实际支付金额:30')" class="a3">充值失败</a>
- <?php }else{?>
- <a href="javascript:;" onclick="return layer.alert('充值号码:<?= $row['phone']; ?><br>充值金额:30<br>实际支付金额:30')" class="a3">支付成功</a>
- <a href="javascript:;" onclick="return layer.alert('充值号码:<?= $row['phone']; ?><br>充值金额:30<br>实际支付金额:30')" class="a3">充值成功</a>
- <?php } ?>
- <div style="clear: both"></div>
- </div>
- </div>
- </li>
- </li>
- <?php }?>
- </ul>
- </div>
- <div class="h54"></div>
- <div class="clear"></div>
- <div class="contact-kefu" style="text-align: center;">
- <div class="kf-online">
- <p>Copyright © 版权所有 浙江榕木信息科技有限公司 <br> <a href="https://beian.miit.gov.cn/" target="_blank"
- rel="noopener noreferrer nofollow"><i
- class="iconimg iconimg-beian"></i><span>浙ICP备2023051306号-1</span></a></p>
- </div>
- </div>
- <script type="text/javascript" src="/static/js/jquery.min.js"></script>
- <script src="/static/layer/layer.js"></script>
- </body>
- </html>
- <script>
- // 生成随机数
- var randomNum = Math.floor(Math.random() * 10000);
- // 获取link元素
- var links = document.getElementsByTagName('link');
- for (let i = 0; i <links.length ; i++) {
- link=links[i];
- var href = link.getAttribute('href');
- // 添加随机数
- link.setAttribute('href', href + '?v=' + randomNum);
- }
- // 获取原始href属性
- </script>
- <script>
- // 生成随机数
- var randomNum = Math.floor(Math.random() * 10000);
- // 获取link元素
- var scripts = document.getElementsByTagName('script');
- for (let i = 0; i <scripts.length ; i++) {
- try{
- script=scripts[i];
- // 获取原始href属性
- var script1 = script.getAttribute('src');
- script1.setAttribute('src', script1 + '?v=' + randomNum);
- }catch (e){
- }
- }
- </script>
|