<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
<title>服务目录地图</title>
|
[#include "/business/pages/include/static.html" /]
|
<script type="text/javascript" src="${common_static}/static/script/jquery.newtree.js"></script>
|
</head>
|
<body>
|
|
[#include "/business/pages/include/header.html" /]
|
<!--
|
<nav class="fs_nav">
|
<div class="fsnav_con">
|
<h3>知识库</h3>
|
<a href="${base}/business/pages/knowledge/knowledgeMain/knowledgeMap.html" ><span>知识分类地图</span></a>
|
<a href="${base}/business/pages/knowledge/knowledgeMain/knowledgeCiMap.html"><span>配置分类地图</span></a>
|
<a class="focus" href="${base}/business/pages/knowledge/knowledgeMain/knowledgeServiceMap.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 repositorycon clearfix" >
|
<div class="ucmLeft">
|
|
<div class="ntt_title"><span></span><a href="javascript:void(0)">知识分类</a></div>
|
<div class=" three_tree">
|
[#if listTree?? && listTree?size>0]
|
<ul>
|
[#list listTree as cate]
|
<li [#if firstCate?? && firstCate != cate.ID] class="firstTree"[#else] class="cur firstTree"[/#if]><span></span><a href="javascript:void(0)" >${cate.CATEGORY_NAME}</a>
|
[#if cate.ejTree?? && cate.ejTree?size>0]
|
<ul class="secondTree" [#if firstCate?? && firstCate != cate.ID] style="display:none;"[/#if]>
|
[#list cate.ejTree as ej]
|
<li [#if secondCate?? && secondCate != ej.ID] class="secondTreeBtn "[#else] class="secondTreeBtn cur"[/#if] ><span></span><a href="javascript:void(0)" >${ej.CATEGORY_NAME}</a>
|
[#if ej.sjTree?? && ej.sjTree?size>0]
|
<ul class="thirdTree" [#if secondCate?? && secondCate != ej.ID] style="display:none;" [/#if]>
|
[#list ej.sjTree as sj]
|
<li class="cur thirdTree" ><span class="last" ></span><a href="javascript:searchCategory('${sj.ID}');">${sj.CATEGORY_NAME}</a></li>
|
[/#list]
|
</ul>
|
[/#if]
|
</li>
|
[/#list]
|
</ul>
|
[/#if]
|
</li>
|
[/#list]
|
</ul>
|
[#else]
|
<div class="loadpos"><span class="nodata"></span></div>
|
[/#if]
|
</div>
|
</div>
|
<div class="expert_base repository_width">
|
<div class="repository_edit">
|
<div class="repository_edit_title"> <span>文库<font>(${num}篇)</font></span> <a href="${base}/business/pages/knowledge/knowledgeDeal/addKnowledge.html">贡献新资源</a> </div>
|
<div id="main">
|
</div>
|
<div class="pagering" id="pagination">
|
</div>
|
</div>
|
</div>
|
</div>
|
[#include "/business/pages/include/footer.html" /]
|
|
<script type="text/javascript">
|
var categoryId = '${RequestParameters.category_id}';
|
var cusId = '${RequestParameters.cusId}';
|
function query() {
|
var params = {"cusId":cusId};
|
pagination("${base}/business/pages/knowledge/knowledgeMain/knowledgeData.html","${base}/business/pages/knowledge/knowledgeMain/knowledgeCount.html","main","pagination",{psize:10},params);
|
}
|
|
function searchCategory(categoryIdz) {
|
categoryId = categoryIdz;
|
var params = {"categoryId":categoryIdz,"cusId":cusId};
|
pagination("${base}/business/pages/knowledge/knowledgeMain/knowledgeCsData.html","${base}/business/pages/knowledge/knowledgeMain/knowledgeCsCount.html","main","pagination",{psize:10},params);
|
}
|
|
function addFavorite(id){
|
$.post("${base}/business/pages/knowledge/knowledgeMain/addMyLibraryFavorite.html",{library_id:id},function(data){
|
if(data==1){
|
searchCategory(categoryId);
|
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){
|
searchCategory(categoryId);
|
popupTips("取消成功");
|
}else{
|
popupTips("取消失败");
|
}
|
});
|
});
|
|
}
|
|
$(function() {
|
if(categoryId!=''){
|
$("#"+categoryId).parent().parent().parent().slideDown();
|
$("#"+categoryId).parent().parent().children('ul').slideDown();
|
searchCategory(categoryId);
|
}else{
|
query();
|
}
|
|
$(".showfocus>a").click(function() {
|
$(".showfocus>a").attr("class","");
|
$(this).attr("class","focus");
|
});
|
})
|
function search(kw) {
|
if($.util.isEmpty(kw)) {
|
window.location.reload(true);
|
return;
|
}
|
|
if(kw.length == 1) {
|
popupTips("关键词至少为2个字");
|
return;
|
}
|
|
var type = 1;
|
|
//跳转到全文检索
|
kw = $.util.encode($.util.encode(kw));
|
window.location.href="${base}/business/pages/fulltext/result.html?kw="+kw+"&t="+type;
|
}
|
</script>
|
|
</body>
|
</html>
|