123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <?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 class="active"> <a href="Foundation.php">基础配置</a> </li>
- <li > <a href="system.php">网站配置</a> </li>
- <li > <a href="Smsytem.php">短信配置</a> </li>
- <li > <a href="Bansytem.php">轮播配置</a> </li>
- </ul>
- <?php
- include_once("../untils/conn.php");
- $type = "web_config";
- $sql = "select * from foundation where type='$type'";
- $data = mysqli_query($con, $sql);
- $result = mysqli_fetch_row($data);
- ?>
- <div class="">
- <div class="card-body">
- <form class="form-horizontal" action="controller/doFoundation.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="site_name" placeholder="网站名称" value="<?php echo $result[2] ?>" >
- </div>
- </div>
- <div class="form-group">
- <label for="title" class="col-xs-12">网站SEO:</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="site_seo" placeholder="网站SEO" value="<?php echo $result[3] ?>" >
- </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="site_key" placeholder="网站关键词" value="<?php echo $result[4] ?>" >
- </div>
- </div>
- <div class="form-group">
- <label for="title" class="col-xs-12">网站描述:</label>
- <div class="col-xs-12">
- <textarea type="text" class="form-control" name="site_ms" placeholder="网站描述" ><?php echo $result[5] ?></textarea>
- </div>
- </div>
- <div class="form-group">
- <label for="title" class="col-xs-12">ICP备案:</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="site_icp" placeholder="ICP备案" value="<?php echo $result[10] ?>" >
- </div>
- </div>
- <div class="form-group">
- <label for="title" class="col-xs-12">白色主题LOGO:</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="light_logo" placeholder="需要输入完整URL图片地址" value="<?php echo $result[6] ?>" >
- </div>
- </div>
- <div class="form-group">
- <label for="title" class="col-xs-12">暗色主题LOGO:</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="dark_logo" placeholder="需要输入完整URL图片地址" value="<?php echo $result[7] ?>" >
- </div>
- </div>
- <div class="form-group">
- <label for="title" class="col-xs-12">注册页背景图(推荐尺寸:1003px *803)</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="reuser" placeholder="需要输入完整URL图片地址" value="<?php echo $result[8] ?>" >
- </div>
- </div>
- <div class="form-group">
- <label for="title" class="col-xs-12">登录页背景图(推荐尺寸:1003px *803)</label>
- <div class="col-xs-12">
- <input type="text" class="form-control" name="loginuser" placeholder="需要输入完整URL图片地址" 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>";
- }
|