123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?php
- // by 请勿倒卖,已申请软著,否则追究法律责任
- if (!defined("IN_ROOT")) {
- exit("Access denied");
- }
- $article = db("article")->where("id", $id)->find();
- !$article && ($article = db("article")->where("type", "0")->orderRand()->find());
- ?><!doctype html>
- <html lang="">
- <head>
- <title><?php echo $article["name"];?> - <?php echo IN_NAME;?></title>
- <meta charset="utf-8">
- <meta name="viewport"
- content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
- <meta name="keywords" content="<?php echo $article["name"];?>">
- <meta name="keywords" content="<?php echo IN_KEYWORDS;?>"/>
- <meta name="description" content="<?php echo IN_DESCRIPTION;?>"/>
- <link rel="stylesheet" type="text/css" href="/static/index/css/xiala.css"/>
- <link rel="stylesheet" type="text/css" href="/static/index/css/bootstrap.min.css"/>
- <link rel="stylesheet" type="text/css" href="/static/index/css/base.css"/>
- <link rel="stylesheet" type="text/css" href="/static/index/css/main.css"/>
- <link rel="stylesheet" type="text/css" href="/static/index/css/h5.css"/>
- <script src="/static/index/js/jquery.min.js"></script>
- <script src="/static/index/js/bootstrap.min.js"></script>
- <script src="/static/index/js/vue.js"></script>
- <script src="/static/index/js/js.js"></script>
- <script>
- isHideFooter = false;
- </script>
- </head>
- <body>
- <?php
- include "header.php";
- ?><div id="app">
- </header>
- <div class="doc-banner">
- <div class="tit"><?php echo IN_NAME;?>文档中心</div>
- </div>
- <div class="container">
- <div class="crumbs"><a href="/index/docs">文档中心</a><span>/</span>详情</div>
- <div class="doc-details">
- <div class="row">
- <div class="col-sm-2">
- <div class="details-left">
- <dl>
- <dt class="clearfix <?php echo $article["group"] == "distr" ? "active" : "";?>">
- <span class="icon icon-small-doc1"></span>
- 发布与下载
- <span class="iconfont icon-arrow-down fr"></span>
- <span class="iconfont icon-arrow-up fr"></span>
- </dt>
- <dd style="<?php echo $article["group"] == "distr" ? "display: block;" : "";?>">
- <?php
- $list = db("article")->where("group", "distr")->where("type", "0")->select();
- foreach ($list as $k => $v) {
- ?> <a href="/index/docs/<?php echo $v["id"];?>"
- class="tit1 <?php echo $v["id"] == $article["id"] ? "active" : "";?>"
- title="<?php echo $v["name"];?>"><?php echo $v["name"];?></a>
- <?php
- }
- ?> </dd>
- </dl>
- <dl>
- <dt class="clearfix <?php echo $article["group"] == "sign" ? "active" : "";?>">
- <span class="icon icon-small-doc2"></span>
- 企业签名
- <span class="iconfont icon-arrow-down fr"></span>
- <span class="iconfont icon-arrow-up fr"></span>
- </dt>
- <dd style="<?php echo $article["group"] == "sign" ? "display: block;" : "";?>">
- <?php
- $list = db("article")->where("group", "sign")->where("type", "0")->select();
- foreach ($list as $k => $v) {
- ?> <a href="/index/docs/<?php echo $v["id"];?>"
- class="tit1 <?php echo $v["id"] == $article["id"] ? "active" : "";?>"
- title="<?php echo $v["name"];?>"><?php echo $v["name"];?></a>
- <?php
- }
- ?> </dd>
- </dl>
- </div>
- </div>
- <div class="col-sm-10">
- <div class="details-right">
- <div class="article-tit"><?php echo $article["name"];?></div>
- <div class="article-con">
- <?php echo $article["content"];?> </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php
- include "footer.php";
- ?></body>
- <script>
- $('.details-left dl dt').click(function () {
- $(this).toggleClass('active');
- $(this).siblings('dd').toggle();
- });
- </script>
- </html>
|