123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <?php
- session_start();
- if (isset($_SESSION["username"])) {
- ?>
- <?php require_once('common/header.php'); ?>
- <!--页面主要内容-->
- <main class="lyear-layout-content">
- <div class="container-fluid">
- <?php
- include_once("../untils/conn.php");
- $id = $_GET['id'];
- $data = mysqli_query($con, "select * from withdrawal where id=" . $id);
- $rows = mysqli_fetch_row($data);
- ?>
- <div class="card">
- <div class="card-header bg-primary">
- <h4>审核打款</h4>
- </div>
- <div class="card-body">
- <form class="form-horizontal" action="controller/doWtin.php" method="POST">
-
- <div class="form-group">
- <label for="title" class="col-xs-12">提现人:</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="tx_name" placeholder="提现人" value="<?php echo $rows[9] ?>" required>
- </div>
- </div>
-
- <div class="form-group">
- <label for="title" class="col-xs-12">提现账号:</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="tx_acc" placeholder="提现账号" value="<?php echo $rows[10] ?>" required>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-xs-12">处理状态:</label>
- <div class="col-xs-12">
- <select name="state" id="state" class="form-control">
- <option value="">请选择状态</option>
- <?php
- include_once("../untils/conn.php");
- mysqli_query($con, "set names utf8");
- // 获取订单状态
- $status_sql = "SELECT DISTINCT `state` FROM `withdrawal`";
- $status_data = mysqli_query($con, $status_sql);
-
- $statuses = [
- ['id' => 0, 'text' => '待审核'],
- ['id' => 1, 'text' => '已打款'],
- ['id' => 2, 'text' => '审核失败'],
-
- ];
-
- foreach($statuses as $status) {
- $selected = '';
- if ($status['id'] == $rows[9]) {
- $selected = 'selected';
- }
- echo "<option value='{$status['id']}' {$selected}>{$status['text']}</option>";
- }
- ?>
- </select>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-xs-12" for="example-disabled-input">提现方式</label>
- <div class="col-xs-12">
- <select class="form-control" id="example-disabled-input" name="tx_type" disabled>
- <?php
- if($rows[2] == 0){
- echo '<option value="0" selected>微信</option>
- <option value="1">支付宝</option>
- <option value="2">银行卡</option>';
- }elseif($rows[2] == 1){
- echo '<option value="0">微信</option>
- <option value="1" selected>支付宝</option>
- <option value="2">银行卡</option>';
- }elseif($rows[2] == 2){
- echo '<option value="0">微信</option>
- <option value="1">支付宝</option>
- <option value="2" selected>银行卡</option>';
- }
- ?>
- </select>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-xs-12" for="tx_price">提现金额</label>
- <div class="col-xs-12">
- <input class="form-control" type="text" name="tx_price" placeholder="提现金额" value="<?php echo $rows[3] ?>" readonly="true">
- </div>
- </div>
-
- <div class="form-group">
- <label for="title" class="col-xs-12">实际打款金额:</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="dk_price" placeholder="实际打款金额" value="<?php echo $rows[4] ?>" >
- </div>
- </div>
- <div class="form-group">
- <label for="title" class="col-xs-12">提现备注说明:</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="notes" placeholder="请输入备注" value="<?php echo $rows[13] ?>" required>
- </div>
- </div>
-
- <div class="form-group">
- <input type="hidden" name="id" value="<?php echo $id ?>">
- <input type="hidden" name="cl_time" value="<?php echo time() ?>">
- <input type="hidden" name="proxy_acc" value="<?php echo $rows[1] ?>">
- <div class="offset-2 col-xs-12">
- <button class="btn btn-success" type="submit" value="添加">确认提交</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </main>
- <!--End 页面主要内容-->
- <?php require_once('common/footer.php'); ?>
- <?php
- } else {
- echo "<script>alert('您尚未登录,没有权限访问该页面');location.href='login.php';</script>";
- }
|