Smsytem.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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 > <a href="system.php">网站配置</a> </li>
  15. <li class="active"> <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. $sql = "select * from sms ";
  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/doSms.php" method="POST">
  27. <div class="form-group">
  28. <label for="title" class="col-xs-12">腾讯云appid:</label>
  29. <div class="col-xs-12">
  30. <input type="text" class="form-control" name="appid" placeholder="输入腾讯云appid" value="<?php echo $result[1] ?>" required>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label for="title" class="col-xs-12">腾讯appkey:</label>
  35. <div class="col-xs-12">
  36. <input type="text" class="form-control" name="appkey" placeholder="输入腾讯云appkey" value="<?php echo $result[2] ?>" required>
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label for="title" class="col-xs-12">短信模板id:(通知管理员)</label>
  41. <div class="col-xs-12">
  42. <input type="text" class="form-control" name="te_id" placeholder="输入短信模板id" value="<?php echo $result[3] ?>" required>
  43. </div>
  44. </div>
  45. <div class="form-group">
  46. <label for="title" class="col-xs-12">短信模板id:(验证码发送)</label>
  47. <div class="col-xs-12">
  48. <input type="text" class="form-control" name="te_ids" placeholder="输入短信模板id" value="<?php echo $result[4] ?>" required>
  49. </div>
  50. </div>
  51. <div class="form-group">
  52. <label for="title" class="col-xs-12">短信签名:</label>
  53. <div class="col-xs-12">
  54. <input type="text" class="form-control" name="sign" placeholder="请输入短信签名" value="<?php echo $result[5] ?>" required>
  55. </div>
  56. </div>
  57. <div class="form-group">
  58. <label for="title" class="col-xs-12">管理员手机号:</label>
  59. <div class="col-xs-12">
  60. <input type="text" class="form-control" name="admin_phone" 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. </main>
  75. <!--End 页面主要内容-->
  76. <?php require_once('common/footer.php'); ?>
  77. <?php
  78. } else {
  79. echo "<script>alert('您尚未登录,没有权限访问该页面');location.href='login.php';</script>";
  80. }