cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!doctype html>
<html class="no-js">
<head>
 
<title>知识详情</title>
 
</head>
 
<body class="fullscreen">
[#include "/business/pages/include/static.html" /]
<script type="text/javascript" src="${common_static}/static/ui/js/pagescroller.min.js"></script>
[#include "/business/pages/include/header.html" /]
<!-- 
<nav class="fs_nav">
    <div class="fsnav_con">
        <h3>我的知识</h3>
        <a href="${base}/business/pages/knowledge/myknowledge/myDshKnowList.html"><span>待审核的知识</span></a>
        <a href="${base}/business/pages/knowledge/myknowledge/myCreateKnowList.html"><span>我创建的知识</span></a>
        <a href="${base}/business/pages/knowledge/myknowledge/myEditKnowList.html"><span>我编辑的知识</span></a>
        <a href="${base}/business/pages/knowledge/myknowledge/myFavKnowList.html"><span>我收藏的知识</span></a>
        <a href="${base}/business/pages/knowledge/knowledgeDeal/addKnowledge.html"><span>创建知识</span></a>
    </div>
</nav>
<div class="fs_navpath">
  <h3>当前位置</h3>
  <span></span> <a>知识库 </a> <span></span> <em>知识详情</em> </div>
   -->
<div class="fs_main equip_add repositorycon clearfix" >
 <!--  <div class="repository_left">
    <h3>文库目录</h3>
    <div class="repositoryl_con showfocus" > 
        <a href="javascript:scrollPos('biaoti');">标题</a> 
        <a href="javascript:scrollPos('biaoqian');">标签</a> 
        <a href="javascript:scrollPos('zhaiyao');">摘要</a> 
        <a href="javascript:scrollPos('neirong');">内容</a> 
        [#if info.link_list?? && info.link_list?size>0]
        <a href="javascript:scrollPos('zhishiguanl');">知识关联</a>
        [/#if]
        [#if info.file_list?? && info.file_list?size>0] 
        <a href="javascript:scrollPos('fujian');" >附件</a>
        [/#if] 
        [#if info.historyList?? && info.historyList?size>0]
        <a href="javascript:scrollPos('lishibanben');">历史版本</a> 
        [/#if]
    </div>
    
    
  </div>-->
  <div class="equip_add_right repository_width">
    <div id="main" style="position: relative;" class="repository_details">
    
      <h1 class="section section_1" style="position: relative; margin: 0px;">
           <a name="biaoti" id="biaoti"></a>${info.TITLE} </h1>
     
      <div class="repository_details_intro"><span>贡献人:${info.CREATE_USER_NAME}</span><span>贡献时间:${DateUtil.format("yyyy-MM-dd HH:mm:ss",'${info.CREATE_TIME}')}</span></div>
      <h2 class="section section_2" style="position: relative; margin: 0px;"> <span class="headline_content"><a name="biaoqian" id="biaoqian"></a>标签</span> </h2>
      <div class="para">
      [#if info.tag_list??&&info.tag_list?size>0]
          [#list info.tag_list as tag]
          <a>${tag}</a>
          [/#list]
      [/#if]
      </div>
      <h2 class="section section_3" style="position: relative; margin: 0px;"> <span class="headline_content"><a name="zhaiyao" id="zhaiyao"></a>摘要</span> </h2>
      <div class="para"> ${info.SUMMARY} </div>
      <h2 class="section section_4" style="position: relative; margin: 0px;"> <span class="headline_content"><a name="neirong" id="neirong"></a>内容</span> </h2>
      <div class="para"> ${info.CONTENT} </div>
      <h2 class="section section_5" style="position: relative; margin: 0px;"> <span class="headline_content"><a name="zhishiguanl" id="zhishiguanl"></a>知识关联</span> </h2>
      [#if info.link_list??&&info.link_list?size>0]
      <ul class="relevance">
                [#list info.link_list as link]
                    <li><a target="_blank" href="${base}/business/pages/knowledge/knowledgeMain/knowledgeWkDetail.html?id=${link.ID}">
                            ${link.TITLE}
                        </a></li>
                [/#list]
      </ul>
      [/#if]
      <h2 class="section section_6" style="position: relative; margin: 0px;"> <span class="headline_content"><a name="fujian" id="fujian"></a>附件</span> </h2>
      [#if info.file_list??&&info.file_list?size>0]
       <ul class="relevance">
                [#list info.file_list as file]
                <li><a class="taglist" href="${base}/business/pages/file/downloadFile.html?fileId=${file.ID}">${file.FILE_NAME}</a> </li>
                [/#list]
      </ul>
      [/#if]
      <h2 class="section section_7" style="position: relative; margin: 0px;"> <span class="headline_content"><a name="lishibanben" id="lishibanben">历史版本</a></span> </h2>
      [#if info.historyList??&&info.historyList?size>0]
      <table class="history_type_table">
            [#list info.historyList  as history]
            <tr><td  width="10%" align="right"><a target="_blank" href='${base}/business/pages/knowledge/knowledgeMain/knowledgeHistoryDetail.html?id=${history.ID}'>${history.VERSION}</a></td><td width="20%" align="left"><a target="_blank" href='${base}/business/pages/knowledge/knowledgeMain/knowledgeHistoryDetail.html?id=${history.ID}'>编辑人:${history.CREATE_USER_NAME}</a></td>
            <td width="30%"> <a target="_blank" href='${base}/business/pages/knowledge/knowledgeMain/knowledgeHistoryDetail.html?id=${history.ID}'>编辑时间:${DateUtil.format("yyyy-MM-dd HH:mm:ss",history.CREATE_TIME)}</a></td></tr>
              [/#list]
      </table>
     [/#if]
    </div>
  </div>
</div>
[#include "/business/pages/include/footer.html" /]
 
<script type="text/javascript">
 
    $(document).ready(function(){    
        var navLabel = new Array('标题', '标签','摘要', "内容",  "关联",'附件', '历史');
        $('#main').pageScroller({ navigation: navLabel });
        $('.next').click(function(e){
            e.preventDefault();
            pageScroller.next();
        });
        $('.prev').click(function(e){
            e.preventDefault();
            pageScroller.prev();
        });    
        $('.pageScroll').css('display','none');
         $(window).scroll(function () {
            // 获得窗口滚动上去的距离
            var ling = $(document).scrollTop();
            // 在标题栏显示滚动的距离
           // document.title = ling;
            // 如果滚动距离大于1534的时候让滚动框出来
            if (ling > 100) {
                $('.pageScroll').show();
            } 
            if (ling > 2000 || ling < 100) {
                $('.pageScroll').css('display','none');  // @ 这一句和下一句效果一样。
             //   $('#box').hide();
            }          
 
        })            
});    
 
$(function(){
   $(".showfocus>a").click(function(){
      $(".showfocus>a").attr("class","");
      $(this).attr("class","focus");
   })
 
})
 
 
function addFavorite(id){
        $.post("${base}/business/pages/knowledge/knowledgeMain/addMyLibraryFavorite.html",{library_id:id},function(data){
            if(data=='1'){
               window.location.reload(true);
               popupTips("收藏成功");
            }else if(data=='0'){
                popupTips("该条知识已收藏过,不能重复收藏!");
            }else{
                popupTips("收藏失败");
            }
        });
    
}
 
function delFavorite(id){
    window.top.confirmInfo('提示', '确定取消收藏该条知识?', function(){
        $.post("${base}/business/pages/knowledge/knowledgeMain/delMyLibraryFavorite.html",{library_id:id},function(data){
            if(data==1){
                popupTips("取消成功");
               window.location.reload(true);
            }else{
                popupTips("取消失败");
            }
        });
    })
    
}
 
</script>
</body>
</html>