docs_detail.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?php
  2. // by 请勿倒卖,已申请软著,否则追究法律责任
  3. if (!defined("IN_ROOT")) {
  4. exit("Access denied");
  5. }
  6. $article = db("article")->where("id", $id)->find();
  7. !$article && ($article = db("article")->where("type", "0")->orderRand()->find());
  8. ?><!doctype html>
  9. <html lang="">
  10. <head>
  11. <title><?php echo $article["name"];?> - <?php echo IN_NAME;?></title>
  12. <meta charset="utf-8">
  13. <meta name="viewport"
  14. content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  15. <meta name="keywords" content="<?php echo $article["name"];?>">
  16. <meta name="keywords" content="<?php echo IN_KEYWORDS;?>"/>
  17. <meta name="description" content="<?php echo IN_DESCRIPTION;?>"/>
  18. <link rel="stylesheet" type="text/css" href="/static/index/css/xiala.css"/>
  19. <link rel="stylesheet" type="text/css" href="/static/index/css/bootstrap.min.css"/>
  20. <link rel="stylesheet" type="text/css" href="/static/index/css/base.css"/>
  21. <link rel="stylesheet" type="text/css" href="/static/index/css/main.css"/>
  22. <link rel="stylesheet" type="text/css" href="/static/index/css/h5.css"/>
  23. <script src="/static/index/js/jquery.min.js"></script>
  24. <script src="/static/index/js/bootstrap.min.js"></script>
  25. <script src="/static/index/js/vue.js"></script>
  26. <script src="/static/index/js/js.js"></script>
  27. <script>
  28. isHideFooter = false;
  29. </script>
  30. </head>
  31. <body>
  32. <?php
  33. include "header.php";
  34. ?><div id="app">
  35. </header>
  36. <div class="doc-banner">
  37. <div class="tit"><?php echo IN_NAME;?>文档中心</div>
  38. </div>
  39. <div class="container">
  40. <div class="crumbs"><a href="/index/docs">文档中心</a><span>/</span>详情</div>
  41. <div class="doc-details">
  42. <div class="row">
  43. <div class="col-sm-2">
  44. <div class="details-left">
  45. <dl>
  46. <dt class="clearfix <?php echo $article["group"] == "distr" ? "active" : "";?>">
  47. <span class="icon icon-small-doc1"></span>
  48. 发布与下载
  49. <span class="iconfont icon-arrow-down fr"></span>
  50. <span class="iconfont icon-arrow-up fr"></span>
  51. </dt>
  52. <dd style="<?php echo $article["group"] == "distr" ? "display: block;" : "";?>">
  53. <?php
  54. $list = db("article")->where("group", "distr")->where("type", "0")->select();
  55. foreach ($list as $k => $v) {
  56. ?> <a href="/index/docs/<?php echo $v["id"];?>"
  57. class="tit1 <?php echo $v["id"] == $article["id"] ? "active" : "";?>"
  58. title="<?php echo $v["name"];?>"><?php echo $v["name"];?></a>
  59. <?php
  60. }
  61. ?> </dd>
  62. </dl>
  63. <dl>
  64. <dt class="clearfix <?php echo $article["group"] == "sign" ? "active" : "";?>">
  65. <span class="icon icon-small-doc2"></span>
  66. 企业签名
  67. <span class="iconfont icon-arrow-down fr"></span>
  68. <span class="iconfont icon-arrow-up fr"></span>
  69. </dt>
  70. <dd style="<?php echo $article["group"] == "sign" ? "display: block;" : "";?>">
  71. <?php
  72. $list = db("article")->where("group", "sign")->where("type", "0")->select();
  73. foreach ($list as $k => $v) {
  74. ?> <a href="/index/docs/<?php echo $v["id"];?>"
  75. class="tit1 <?php echo $v["id"] == $article["id"] ? "active" : "";?>"
  76. title="<?php echo $v["name"];?>"><?php echo $v["name"];?></a>
  77. <?php
  78. }
  79. ?> </dd>
  80. </dl>
  81. </div>
  82. </div>
  83. <div class="col-sm-10">
  84. <div class="details-right">
  85. <div class="article-tit"><?php echo $article["name"];?></div>
  86. <div class="article-con">
  87. <?php echo $article["content"];?> </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. <?php
  95. include "footer.php";
  96. ?></body>
  97. <script>
  98. $('.details-left dl dt').click(function () {
  99. $(this).toggleClass('active');
  100. $(this).siblings('dd').toggle();
  101. });
  102. </script>
  103. </html>