NoteOnMe博客平台搭建
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

86 líneas
2.5 KiB

hace 3 años
  1. <?php
  2. require_once "pdo.php";
  3. session_start();
  4. ?>
  5. <!DOCTYPE html>
  6. <head>
  7. <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
  8. <link rel="stylesheet" type="text/css" href="css/templatemo-style.css">
  9. <title>Home</title>
  10. <style type="text/css">
  11. .hidee{
  12. display:none;
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <div class="fixed-header">
  18. <div class="container">
  19. <div class="navbar-header">
  20. <button type="button" class="navbar-toggle">
  21. <span class="icon-bar"></span>
  22. <span class="icon-bar"></span>
  23. <span class="icon-bar"></span>
  24. </button>
  25. <a class="navbar-brand" href="#">Puzzle</a>
  26. </div>
  27. <nav class="main-menu">
  28. <ul>
  29. <li><a href="index.php">Home</a></li>
  30. <li><a href="#services">Services</a></li>
  31. <li><a href="#clients">Clients</a></li>
  32. <li><a class="external" href="#" target="_blank">External</a></li>
  33. <li><a href="#contact">Contact</a></li>
  34. </ul>
  35. </nav>
  36. </div>
  37. </div>
  38. <div class="container">
  39. <div class="container">
  40. <section class="col-md-12 content" id="home">
  41. <div class="col-lg-12 col-md-12 content-item content-item-1 background">
  42. <h2 class="main-title text-center dark-blue-text">Puzzle Bootstrap Template</h2>
  43. <p>Puzzle is a Bootstrap (v3.3.6) HTML CSS layout provided by <span class="light-blue-text">templatemo</span>. You can download, modify and use this layout for absolutely free of charge.</p>
  44. <p>No backlink is needed to use this website template. Credit goes to <span class="light-blue-text">Unsplash</span> for images used in this layout.</p>
  45. <a href="signup.php"><button >注册</button></a>
  46. <a href="login.php"><button >登录</button></a>
  47. <div class="hidee">
  48. <a href="edit_article.php"><button >写新文章</button></a>
  49. </div>
  50. <button type="button" class="btn btn-big dark-blue-bordered-btn">Big Button</button>
  51. <button type="button" class="btn btn-big dark-blue-btn">Download</button>
  52. <button type="button" class="btn dark-blue-bordered-btn normal-btn">Small Button</button>
  53. <button type="button" class="btn yellow-btn normal-btn">Download</button>
  54. <button type="button" class="btn green-btn normal-btn">Demo</button>
  55. </div>
  56. </section>
  57. </div>
  58. </div>
  59. <script src="js/jquery.min.js"></script>
  60. <script src="js/bootstrap.min.js"></script>
  61. </body>
  62. </html>
  63. <script>
  64. var user_id = '<%= session.getAttribute("user_id")%>' ;
  65. if(user_id)
  66. {
  67. $(".hidee").show();
  68. }
  69. </script>