Foundation.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 class="active"> <a href="Foundation.php">基础配置</a> </li>
  14. <li > <a href="system.php">网站配置</a> </li>
  15. <li > <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. $type = "web_config";
  21. $sql = "select * from foundation where type='$type'";
  22. $data = mysqli_query($con, $sql);
  23. $result = mysqli_fetch_row($data);
  24. ?>
  25. <div class="">
  26. <div class="card-body">
  27. <form class="form-horizontal" action="controller/doFoundation.php" method="POST">
  28. <div class="form-group">
  29. <label for="title" class="col-xs-12">网站名称:</label>
  30. <div class="col-xs-12">
  31. <input type="text" class="form-control" name="site_name" placeholder="网站名称" value="<?php echo $result[2] ?>" >
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label for="title" class="col-xs-12">网站SEO:</label>
  36. <div class="col-xs-12">
  37. <input type="text" class="form-control" name="site_seo" placeholder="网站SEO" value="<?php echo $result[3] ?>" >
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label for="title" class="col-xs-12">关键词:</label>
  42. <div class="col-xs-12">
  43. <input type="text" class="form-control" name="site_key" placeholder="网站关键词" value="<?php echo $result[4] ?>" >
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label for="title" class="col-xs-12">网站描述:</label>
  48. <div class="col-xs-12">
  49. <textarea type="text" class="form-control" name="site_ms" placeholder="网站描述" ><?php echo $result[5] ?></textarea>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label for="title" class="col-xs-12">ICP备案:</label>
  54. <div class="col-xs-12">
  55. <input type="text" class="form-control" name="site_icp" placeholder="ICP备案" value="<?php echo $result[10] ?>" >
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label for="title" class="col-xs-12">白色主题LOGO:</label>
  60. <div class="col-xs-12">
  61. <input type="text" class="form-control" name="light_logo" placeholder="需要输入完整URL图片地址" value="<?php echo $result[6] ?>" >
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label for="title" class="col-xs-12">暗色主题LOGO:</label>
  66. <div class="col-xs-12">
  67. <input type="text" class="form-control" name="dark_logo" placeholder="需要输入完整URL图片地址" value="<?php echo $result[7] ?>" >
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label for="title" class="col-xs-12">注册页背景图(推荐尺寸:1003px *803)</label>
  72. <div class="col-xs-12">
  73. <input type="text" class="form-control" name="reuser" placeholder="需要输入完整URL图片地址" value="<?php echo $result[8] ?>" >
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label for="title" class="col-xs-12">登录页背景图(推荐尺寸:1003px *803)</label>
  78. <div class="col-xs-12">
  79. <input type="text" class="form-control" name="loginuser" placeholder="需要输入完整URL图片地址" value="<?php echo $result[9] ?>" >
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <input type="hidden" name="type" value="<?php echo $type ?>">
  84. <div class="offset-2 col-xs-12">
  85. <button class="btn btn-success" type="submit" value="添加">确认修改</button>
  86. <!-- <button class="btn btn-danger ml-3" type="reset" value="重置">返回</button> -->
  87. </div>
  88. </div>
  89. </form>
  90. </div>
  91. </div>
  92. </div>
  93. </main>
  94. <!--End 页面主要内容-->
  95. <?php require_once('common/footer.php'); ?>
  96. <?php
  97. } else {
  98. echo "<script>alert('您尚未登录,没有权限访问该页面');location.href='login.php';</script>";
  99. }