12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?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 > <a href="Smsytem.php">短信配置</a> </li>
- <li class="active"> <a href="Bansytem.php">轮播配置</a> </li>
- </ul>
- <?php
- include_once("../untils/conn.php");
- $type = 'banner';
- $sql = "select * from system where type='banner'";
- $data = mysqli_query($con, $sql);
- $result = mysqli_fetch_row($data);
- ?>
- <div class="">
- <div class="card-body">
- <form class="form-horizontal" action="controller/doBan.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="banner" placeholder="第一张轮播" 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="link" placeholder="跳转链接" value="<?php echo $result[5] ?>" >
- </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="banner_one" placeholder="第二张轮播" value="<?php echo $result[6] ?>" 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="link_one" placeholder="跳转链接2" value="<?php echo $result[7] ?>" >
- </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="banner_two" placeholder="第三张轮播" value="<?php echo $result[8] ?>" 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="link_two" placeholder="跳转链接3" value="<?php echo $result[9] ?>" >
- </div>
- </div>
- <div class="form-group">
- <input type="hidden" name="type" value="<?php echo $type ?>">
- <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>";
- }
|