<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>知识查询</title>
|
</head>
|
|
<body class="fullscreen service">
|
[#include "/business/pages/include/static.html" /]
|
[#include "/uc/include/header.html" /]
|
[#assign focusLabel = 'KNOWLEDGE']
|
[#include "/uc/include/searchheader.html" /]
|
<div class="fs_navpath">
|
<h3>当前位置</h3>
|
<span></span>
|
<a>信息查询</a>
|
<span></span>
|
<em>知识查询</em>
|
</div>
|
|
<div class="fs_main clearfix">
|
<div class="event_fill list_common_select">
|
<table><tr><th width="85%">
|
<div class="fill_item"><label>标题:</label>
|
<input class="general" type="text" id="title"/>
|
</div>
|
<div class="fill_item"><label>关键字:</label>
|
<input class="general" type="text" id="keyword"/>
|
</div>
|
<div class="fill_item">
|
<table>
|
<tr>
|
<td>
|
<label>知识分类:</label>
|
</td>
|
<td id="know">
|
<a class="all_service" id="knowList" href="javascript:showKnow();">展开全部</a>
|
</td>
|
</tr>
|
</table>
|
</div>
|
<div class="fill_item">
|
<table>
|
<tr>
|
<td>
|
<label>配置分类:</label>
|
</td>
|
<td id="ci">
|
<a class="all_service" id="ciList" href="javascript:showCi();">展开全部</a>
|
</td>
|
</tr>
|
</table>
|
</div>
|
<div class="fill_item">
|
<table>
|
<tr>
|
<td>
|
<label>服务目录:</label>
|
</td>
|
<td id="sl">
|
<a class="all_service" id="serivceList" href="javascript:showSl();">展开全部</a>
|
</td>
|
</tr>
|
</table>
|
</div>
|
|
</th><td width="15%">
|
<a class="retrievebtn" id="reset">重置</a><a class="retrievebtn focus" onclick="query();">查询</a>
|
</td></tr></table>
|
</div>
|
</div>
|
|
<div class="fs_main clearfix">
|
<div id="main"></div>
|
<div class="paging clearfix" id="pagination"></div>
|
</div>
|
|
|
|
|
<script type="text/javascript">
|
var nowPage = 1;
|
function query(){
|
var title = $.trim($("#title").val());
|
var keyword = $.trim($("#keyword").val());
|
var sls = new Array();
|
var $service = $("#sl>a.service");
|
if($service.length>0) {
|
$service.each(function() {
|
sls.push($(this).attr("sl"));
|
});
|
}
|
|
sl = sls.join(",");
|
|
var knows = new Array();
|
var $know = $("#know>a.service");
|
if($know.length>0) {
|
$know.each(function() {
|
knows.push($(this).attr("sl"));
|
});
|
}
|
|
var know = knows.join(",");
|
|
var cis = new Array();
|
var $ci = $("#ci>a.service");
|
if($ci.length>0) {
|
$ci.each(function() {
|
cis.push($(this).attr("sl"));
|
});
|
}
|
|
var ci = cis.join(",");
|
var params = {"sl":sl,"know":know,"ci":ci,"title":title,"keyword":keyword};
|
pagination("${base}/uc/ucsearch/ucsearchKnowData.html","${base}/uc/ucsearch/ucsearchKnowCount.html","main","pagination",{cpage:nowPage,psize:10},params);
|
}
|
|
$(function() {
|
query();
|
|
$("#reset").click(function() {
|
window.location.reload(true);
|
});
|
$(".rmsl").live("click",function() {
|
$(this).parent().remove();
|
});
|
})
|
|
|
//服务目录
|
function showSl() {
|
|
var $service = $("#sl>a.service");
|
var url = "${base}/uc/ucincident/ucordersl.html";
|
if($service.length>0) {
|
var sls = new Array();
|
$service.each(function() {
|
sls.push($(this).attr("sl"));
|
});
|
url += "?sl="+sls.join(",");
|
}
|
|
window.top.openDialog("selectSl","操作",
|
{},
|
{"width":80,"height":80},
|
[{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],url);
|
}
|
//知识分类
|
function showKnow() {
|
var $service = $("#know>a.service");
|
var url = "${base}/uc/ucsearch/ucorderknow.html";
|
if($service.length>0) {
|
var sls = new Array();
|
$service.each(function() {
|
sls.push($(this).attr("sl"));
|
});
|
url += "?sl="+sls.join(",");
|
}
|
|
window.top.openDialog("selectSl","操作",
|
{},
|
{"width":80,"height":80},
|
[{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],url);
|
}
|
//配置分类
|
function showCi() {
|
var $service = $("#ci>a.service");
|
var url = "${base}/uc/ucsearch/ucorderci.html";
|
if($service.length>0) {
|
var sls = new Array();
|
$service.each(function() {
|
sls.push($(this).attr("sl"));
|
});
|
url += "?sl="+sls.join(",");
|
}
|
|
window.top.openDialog("selectSl","操作",
|
{},
|
{"width":80,"height":80},
|
[{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],url);
|
}
|
|
|
|
function showName(labelIds,labelNames) {
|
var labelId = labelIds.split(",");
|
var labelName = labelNames.split(",");
|
var ahtml = "";
|
for(var i=0;i<labelId.length;i++) {
|
ahtml += '<a class="service" sl="'+labelId[i]+'"><em class="rmsl">'+labelName[i]+'</em></a>';
|
$("#sl>a.service").remove();
|
$("#serivceList").before(ahtml);
|
}
|
}
|
|
function showCaName(labelIds,labelNames) {
|
var labelId = labelIds.split(",");
|
var labelName = labelNames.split(",");
|
var ahtml = "";
|
for(var i=0;i<labelId.length;i++) {
|
ahtml += '<a class="service" sl="'+labelId[i]+'"><em class="rmsl">'+labelName[i]+'</em></a>';
|
$("#know>a.service").remove();
|
$("#knowList").before(ahtml);
|
}
|
}
|
|
function showThName(labelIds,labelNames) {
|
var labelId = labelIds.split(",");
|
var labelName = labelNames.split(",");
|
var ahtml = "";
|
for(var i=0;i<labelId.length;i++) {
|
ahtml += '<a class="service" sl="'+labelId[i]+'"><em class="rmsl">'+labelName[i]+'</em></a>';
|
$("#ci>a.service").remove();
|
$("#ciList").before(ahtml);
|
}
|
}
|
|
|
</script>
|
|
[#include "/uc/include/foot.html" /]
|
</body>
|
</html>
|