123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?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 > <a href="system.php">网站配置</a> </li>
- <li class="active"> <a href="Smsytem.php">短信配置</a> </li>
- <li> <a href="Bansytem.php">轮播配置</a> </li>
- </ul>
- <?php
- include_once("../untils/conn.php");
- $sql = "select * from sms ";
- $data = mysqli_query($con, $sql);
- $result = mysqli_fetch_row($data);
- ?>
- <div class="">
- <div class="card-body">
- <form class="form-horizontal" action="controller/doSms.php" method="POST">
- <div class="form-group">
- <label for="title" class="col-xs-12">腾讯云appid:</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="appid" placeholder="输入腾讯云appid" value="<?php echo $result[1] ?>" required>
- </div>
- </div>
- <div class="form-group">
- <label for="title" class="col-xs-12">腾讯appkey:</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="appkey" placeholder="输入腾讯云appkey" value="<?php echo $result[2] ?>" required>
- </div>
- </div>
- <div class="form-group">
- <label for="title" class="col-xs-12">短信模板id:(通知管理员)</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="te_id" placeholder="输入短信模板id" value="<?php echo $result[3] ?>" required>
- </div>
- </div>
- <div class="form-group">
- <label for="title" class="col-xs-12">短信模板id:(验证码发送)</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="te_ids" placeholder="输入短信模板id" value="<?php echo $result[4] ?>" 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="sign" placeholder="请输入短信签名" value="<?php echo $result[5] ?>" 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="admin_phone" 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>
- </main>
- <!--End 页面主要内容-->
- <?php require_once('common/footer.php'); ?>
- <?php
- } else {
- echo "<script>alert('您尚未登录,没有权限访问该页面');location.href='login.php';</script>";
- }
|