123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?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");
- $group_id = $_GET['group_id'];
- $uptime = time();
- // echo $group_id;
- $data = mysqli_query($con, "select * from proxy_group where group_id=" . $group_id);
- $rows = mysqli_fetch_row($data);
- $group_name = $rows[1];
- ?>
- <div class="card">
- <div class="card-header bg-primary">
- <h4>修改代理等级</h4>
- </div>
- <div class="card-body">
- <form class="form-horizontal" action="controller/doGroup.php" method="POST">
- <div class="form-group">
- <label class="col-xs-12">等级名称:</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="group_name" placeholder="输入代理等级" value="<?php echo $group_name ?>" required>
- </div>
- </div>
- <div class="form-group">
- <label class="col-xs-12">扣除金额:</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="group_portion" placeholder="代理商的比例(一级设置100,因为计算佣金是以代理佣金计算的,平台设置代理佣金时已扣掉部分金额)" value="<?php echo $rows[2] ?>" required>
- </div>
- </div>
-
- <div class="form-group">
- <input type="hidden" name="group_id" value="<?php echo $group_id ?>">
- <input type="hidden" name="group_uptime" value="<?php echo $uptime ?>">
- <div class="offset-2 col-xs-12">
- <button class="btn btn-success" type="submit" value="添加">确认修改</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </main>
- <!--End 页面主要内容-->
- <?php require_once('common/footer.php'); ?>
- <?php
- } else {
- echo "<script>alert('您尚未登录,没有权限访问该页面');location.href='login.php';</script>";
- }
- ?>
|