system.php 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php
  2. session_start();
  3. if (isset($_SESSION["username"])) {
  4. ?>
  5. <?php require_once('common/header.php'); ?>
  6. <!--页面主要内容-->
  7. <main class="lyear-layout-content">
  8. <div class="container-fluid">
  9. <div class="row">
  10. <div class="col-lg-12">
  11. <div class="card">
  12. <ul class="nav nav-tabs page-tabs">
  13. <li > <a href="Foundation.php">基础配置</a> </li>
  14. <li class="active"> <a href="#!">网站配置</a> </li>
  15. <li> <a href="Smsytem.php">短信配置</a> </li>
  16. <li> <a href="Bansytem.php">轮播配置</a> </li>
  17. </ul>
  18. <?php
  19. include_once("../untils/conn.php");
  20. $kefu = 'kefu';
  21. $sql = "select * from kefu where kefu='kefu'";
  22. $data = mysqli_query($con, $sql);
  23. $result = mysqli_fetch_row($data);
  24. ?>
  25. <div class="">
  26. <div class="card-body">
  27. <form class="form-horizontal" action="controller/doSystem.php" method="POST">
  28. <div class="form-group">
  29. <label for="title" class="col-xs-12">二维码:</label>
  30. <div class="col-xs-12">
  31. <input type="text" class="form-control" name="qrcode" placeholder="请输入客服/公众号二维码链接" value="<?php echo $result[1] ?>" required>
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label for="title" class="col-xs-12">微信号:</label>
  36. <div class="col-xs-12">
  37. <input type="text" class="form-control" name="kfwx" placeholder="请输入联系微信号" value="<?php echo $result[2] ?>" required>
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label for="title" class="col-xs-12">在线时间:</label>
  42. <div class="col-xs-12">
  43. <input type="text" class="form-control" name="ontime" placeholder="请输入客服在线时间介绍" value="<?php echo $result[3] ?>" required>
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label for="title" class="col-xs-12">172号卡appid:</label>
  48. <div class="col-xs-12">
  49. <input type="text" class="form-control" name="appid" placeholder="请输入172号卡appid" value="<?php echo $result[4] ?>" required>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label for="title" class="col-xs-12">172号卡key:</label>
  54. <div class="col-xs-12">
  55. <input type="text" class="form-control" name="key" placeholder="请输入172号卡key" value="<?php echo $result[5] ?>" required>
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label for="title" class="col-xs-12">所有下单页表单的背景颜色必须带#号 例如#FFFFFF:</label>
  60. <div class="col-xs-12">
  61. <input type="text" class="form-control" name="link_color" placeholder="请输入颜色代码" value="<?php echo $result[6] ?>" required>
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <input type="hidden" name="kefu" value="<?php echo $kefu ?>">
  66. <div class="offset-2 col-xs-12">
  67. <button class="btn btn-success" type="submit" value="添加">确认修改</button>
  68. <!-- <button class="btn btn-danger ml-3" type="reset" value="重置">返回</button> -->
  69. </div>
  70. </div>
  71. </form>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </main>
  79. <!--End 页面主要内容-->
  80. <?php require_once('common/footer.php'); ?>
  81. <?php
  82. } else {
  83. echo "<script>alert('您尚未登录,没有权限访问该页面');location.href='login.php';</script>";
  84. }