<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>搜索</title>
|
|
|
[#include "/business/pages/include/static.html" /]
|
<script type="text/javascript" src="${common_static}/static/ui/js/single.js"></script>
|
</head>
|
|
<body class="service">
|
[#include "/business/pages/desktop/deskheader.html" /]
|
<div class="service_btn_con service_btn_conmar">
|
<table class="service_btn">
|
<tr>
|
<td style="vertical-align:middle;"><a class="logo seekf seeklogomar" href="${base}/business/pages/desktop/homeJump.html"><img src="${common_static}/static/companyLogo/larks-logo1.gif" alt="" /></a>
|
<div class="seek_con seekf seekfmar">
|
<ul class="seek_tab clearfix">
|
<li><a href="javascript:void(0);" [#if type==FullTextConstants.allType]class="focus"[/#if] t="${FullTextConstants.allType}">全部</a></li>
|
<li><a href="javascript:void(0);" [#if type==FullTextConstants.knowledge]class="focus"[/#if] t="${FullTextConstants.knowledge}">知识</a></li>
|
<li><a href="javascript:void(0);" [#if type==FullTextConstants.order]class="focus"[/#if] t="${FullTextConstants.order}">工单</a></li>
|
<li><a href="javascript:void(0);" [#if type==FullTextConstants.cmdb]class="focus"[/#if] t="${FullTextConstants.cmdb}">配置</a></li>
|
<li><a href="javascript:void(0);" [#if type==FullTextConstants.document]class="focus"[/#if] t="${FullTextConstants.document}">文档</a></li>
|
</ul>
|
<div class="seek_box">
|
<div class="seek_boxl">
|
<input class="seek_boxl_input" type="text" value="${kw}" id="kw"/>
|
</div>
|
<a class="seek_box_btn" href="javascript:query();">搜索</a> </div>
|
</div></td>
|
</tr>
|
</table>
|
</div>
|
<div class="jieguocont">
|
<div id="main"></div>
|
|
<div class="pagering" id="pagination"></div>
|
|
<div class="clear"></div>
|
</div>
|
|
|
<script type="text/javascript">
|
$(function() {
|
$("ul.seek_tab a").click(function() {
|
$("ul.seek_tab a").removeClass("focus");
|
$(this).addClass("focus");
|
query();
|
});
|
|
$(document).keyup(function(event) {
|
if(event.keyCode==13) {
|
query();
|
}
|
});
|
|
$("a.key").live("click",function() {
|
var keyword;
|
var $span = $(this).find("span");
|
if($span.length == 0) {
|
keyword = $(this).text();
|
} else {
|
keyword = $span.text();
|
}
|
$("#kw").val(keyword);
|
query();
|
})
|
})
|
|
|
|
function query(){
|
kw = $.trim($("#kw").val());
|
|
if($.util.isEmpty(kw)) {
|
window.location.href="${base}/business/pages/fulltext/search.html";
|
return;
|
}
|
|
if($.util.isEmpty(kw) || kw.length == 1) {
|
popupTips("关键词至少为2个字");
|
return;
|
}
|
|
var searchType = $("ul.seek_tab a[class='focus']").attr("t");
|
|
var params = {"kw":kw,"type":searchType};
|
singlePagination("${base}","${base}/business/pages/fulltext/resultData.html","main","pagination",{psize:10},params);
|
}
|
|
|
function viewDoc(docId) {
|
var url = "${base}/business/pages/fileManage/doc/fileDetail.html?id="+docId;
|
window.top.openDialog("0","文件详情",
|
{},
|
{"width":60,"height":70},
|
[],
|
url);
|
}
|
|
$(function() {
|
query();
|
})
|
</script>
|
|
|
|
[#include "/business/pages/include/footer.html" /]
|
</body>
|
</html>
|