12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?php
- session_start();
- if (isset($_SESSION["username"])) {
- ?>
- <?php require_once('common/header.php'); ?>
- <!--页面主要内容-->
- <main class="lyear-layout-content">
-
- <div class="container-fluid">
-
- <div class="row">
- <div class="col-lg-12">
- <div class="card">
- <ul class="nav nav-tabs page-tabs">
- <li > <a href="Foundation.php">基础配置</a> </li>
- <li class="active"> <a href="#!">网站配置</a> </li>
- <li> <a href="Smsytem.php">短信配置</a> </li>
- <li> <a href="Bansytem.php">轮播配置</a> </li>
- </ul>
- <?php
- include_once("../untils/conn.php");
- $kefu = 'kefu';
- $sql = "select * from kefu where kefu='kefu'";
- $data = mysqli_query($con, $sql);
- $result = mysqli_fetch_row($data);
- ?>
- <div class="">
- <div class="card-body">
- <form class="form-horizontal" action="controller/doSystem.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="qrcode" placeholder="请输入客服/公众号二维码链接" value="<?php echo $result[1] ?>" 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="kfwx" placeholder="请输入联系微信号" value="<?php echo $result[2] ?>" 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="ontime" placeholder="请输入客服在线时间介绍" value="<?php echo $result[3] ?>" required>
- </div>
- </div>
- <div class="form-group">
- <label for="title" class="col-xs-12">172号卡appid:</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="appid" placeholder="请输入172号卡appid" value="<?php echo $result[4] ?>" required>
- </div>
- </div>
- <div class="form-group">
- <label for="title" class="col-xs-12">172号卡key:</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="key" placeholder="请输入172号卡key" value="<?php echo $result[5] ?>" required>
- </div>
- </div>
- <div class="form-group">
- <label for="title" class="col-xs-12">所有下单页表单的背景颜色必须带#号 例如#FFFFFF:</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="link_color" placeholder="请输入颜色代码" value="<?php echo $result[6] ?>" required>
- </div>
- </div>
-
- <div class="form-group">
- <input type="hidden" name="kefu" value="<?php echo $kefu ?>">
- <div class="offset-2 col-xs-12">
- <button class="btn btn-success" type="submit" value="添加">确认修改</button>
- <!-- <button class="btn btn-danger ml-3" type="reset" value="重置">返回</button> -->
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
-
- </div>
-
- </div>
-
- </main>
- <!--End 页面主要内容-->
- <?php require_once('common/footer.php'); ?>
- <?php
- } else {
- echo "<script>alert('您尚未登录,没有权限访问该页面');location.href='login.php';</script>";
- }
|