other.php 3.6 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 class="active"> <a href="other.php">同源系统</a> </li>
  14. <li > <a href="gantan.php">敢探号配置</a> </li>
  15. <li > <a href="haoke.php">号氪云配置</a> </li>
  16. </ul>
  17. <?php
  18. include_once("../untils/conn.php");
  19. $type = 'banner';
  20. $sql = "select * from system where type='banner'";
  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/doBan.php" method="POST">
  27. <div class="form-group">
  28. <label for="title" class="col-xs-12">第一张轮播:</label>
  29. <div class="col-xs-12">
  30. <input type="text" class="form-control" name="banner" placeholder="第一张轮播" value="<?php echo $result[2] ?>" required>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label for="title" class="col-xs-12">跳转链接:</label>
  35. <div class="col-xs-12">
  36. <input type="text" class="form-control" name="link" placeholder="跳转链接" value="<?php echo $result[3] ?>" >
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label for="title" class="col-xs-12">第二张轮播:</label>
  41. <div class="col-xs-12">
  42. <input type="text" class="form-control" name="banner_one" placeholder="第二张轮播" value="<?php echo $result[4] ?>" required>
  43. </div>
  44. </div>
  45. <div class="form-group">
  46. <label for="title" class="col-xs-12">跳转链接:</label>
  47. <div class="col-xs-12">
  48. <input type="text" class="form-control" name="link_one" placeholder="跳转链接2" value="<?php echo $result[5] ?>" >
  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="banner_two" placeholder="第三张轮播" value="<?php echo $result[6] ?>" 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="link_two" placeholder="跳转链接3" value="<?php echo $result[7] ?>" >
  61. </div>
  62. </div>
  63. <div class="form-group">
  64. <input type="hidden" name="type" value="<?php echo $type ?>">
  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. }