ydapi.php 4.2 KB

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