<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
<%
|
String path = request.getContextPath();
|
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
|
+ path + "/";
|
%>
|
|
<!DOCTYPE HTML>
|
<html>
|
<head>
|
<base href="<%=basePath%>">
|
<title>全文检索</title>
|
<link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
|
<link href="static/plugins/jquery-easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css">
|
<link rel="stylesheet" href="static/styles/initialize.css" type="text/css">
|
<link rel="stylesheet" href="static/styles/common.css" type="text/css">
|
<link rel="stylesheet" href="static/styles/archives.css" type="text/css">
|
<link href="static/styles/initialize.css" rel="stylesheet" type="text/css">
|
<link href="static/styles/common.css" rel="stylesheet" type="text/css">
|
<link rel="stylesheet" href="static/plugins/layer/skin/default/layer.css" type="text/css">
|
<script type="text/javascript" src="static/plugins/jquery/jquery.min.js"></script>
|
<script type="text/javascript" src="static/plugins/jquery-easyui/jquery.easyui.min.js"></script>
|
<script type="text/javascript" src="static/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
|
<script type="text/javascript" src="static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
|
<script type="text/javascript" src="static/plugins/jquery.redirect.js"></script>
|
|
<!-- 弹窗加载组件 -->
|
<script type="text/javascript" src="static/plugins/layer/layer.js"></script>
|
<script type="text/javascript" src="static/plugins/spinjs/spin.js"></script>
|
<script type="text/javascript" src="static/plugins/spinjs/jquery.spin.js"></script>
|
<script type="text/javascript" src="static/plugins/jquery.blockUI.js"></script>
|
<!-- wcp组件 -->
|
<script type="text/javascript" src="static/wcp/scripts/wcp.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.layer.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.blockUI.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.spin.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.jquery.js"></script>
|
|
|
<script type="text/javascript" src="static/scripts/easyuiExtend.js"></script>
|
<script type="text/javascript" src="static/scripts/jquery-extend.js"></script>
|
|
<!--[if lt IE 9]>
|
<script type="text/javascript" src="static/plugins/json2.js"></script>
|
<![endif]-->
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.infoPicker.js"></script>
|
|
<style>
|
html, body {
|
height: 100%;
|
}
|
|
.search_font {
|
font-size: 14px;
|
color: #bbb;
|
font-family: 幼圆;
|
margin-left: 10px;
|
}
|
|
.search_key :hover {
|
color: #2684f0;
|
}
|
|
.archives_search{margin: 50px 60px 0 60px !important;}
|
</style>
|
|
</head>
|
|
<body class="pt-tree archivesbg">
|
<div class="archives">
|
<div class="archives_search">
|
<div class="archives_search_logo">资料检索</div>
|
<div class="bordercenter">
|
<div class="archives_border clear">
|
<div class="sercase">
|
|
<input type="text" id="txtKeyword" name="txtKeyword" placeholder="请输入关键字进行查询">
|
</div>
|
<input id="btnSearch" type="button" value="" class="sbtn1"/>
|
</div>
|
</div>
|
<div class="bordercenter">
|
<div id="search_fever">
|
<span class="search_font">近期热搜:</span>
|
<a class="search_key" href="">热搜1</a>
|
<a class="search_key" href=""><span class="search_font">热搜2</span></a>
|
<a class="search_key" href=""><span class="search_font">热搜3</span></a>
|
</div>
|
</div>
|
<div class="explain">
|
<div class="explain_center">
|
<h5>检索说明:</h5>
|
<div>
|
<p>1、系统检索支持多关键字,关键字中间用特定符合分隔,支持中文或英文符合。</p>
|
<p>2、如果需要多关键字同时满足,请在关键字中间使用“ ”或者“+”分隔。如“广西 煤矿 报告”。</p>
|
<p>3、如果只需要满足多关键字中其一,请在关键字中间使用“,”或者“丨”。如“河南,山东,铁矿”。</p>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</body>
|
<script>
|
var searchType = "catalogFile";
|
|
$(function () {
|
$(".switch span").click(function () {
|
$(this).addClass("hit");
|
$(this).siblings().removeClass("hit");
|
|
searchType = $(this).attr("optype");
|
});
|
|
$("#btnSearch").click(function () {
|
searchKeyword('');
|
});
|
|
$("#txtKeyword").keyup(function (e) {
|
if (e.keyCode == "13") {
|
searchKeyword('');
|
}
|
});
|
|
|
});
|
|
|
function searchKeyword(keyword) {
|
var t = $('#seleDepartName').combotree('tree'); // get the tree object
|
var n = t.tree('getSelected');
|
var archivesType = 0;
|
if (n != null) {
|
archivesType = n.id;
|
}
|
if (keyword == null || keyword == '') {
|
keyword = $("#txtKeyword").val().replace(/(^\s*)|(\s*$)/g, "");
|
}
|
if (keyword != "") {
|
//记录搜索关键词
|
// saveSearchFeverWords(keyword);
|
var url = "archivesSearch/" + searchType;
|
//$.redirect(url, {
|
// 'archivesType' : archivesType,
|
// 'keyword' : keyword
|
//});
|
var url = "archivesSearch/" + searchType + "?archivesType=" + archivesType + "&keyword=" + encodeURI(keyword);
|
//alert(keyword);
|
openTab(url, "档案搜索:" + keyword + Math.random());
|
} else {
|
wcp.message.warn("请输入检索关键字!");
|
}
|
}
|
|
function openTab(url, title, partId, type) {
|
if (top.addPanel) {
|
top.addPanel(url, title);
|
var curTabWin = null;
|
var curTab = top.$('#tt').tabs('getSelected');
|
if (curTab && curTab.find('iframe').length > 0) {
|
curTabWin = curTab.find('iframe')[0].contentWindow;
|
//将回调函数传给子页面
|
$(curTabWin).load(function () {
|
|
if (curTabWin.params) {
|
|
curTabWin.params.callBackParams = partId;
|
curTabWin.params.callBack = getPartContent;
|
if (type == 1) {
|
curTabWin.params.callBack = refreshData;
|
}
|
|
}
|
});
|
}
|
} else {
|
window.location.href = url;
|
}
|
}
|
|
function saveSearchFeverWords(word) {
|
wcp.ajax({
|
url: "searchFever/saveSearchWord",
|
contentType: "application/x-www-form-urlencoded",
|
async: true,
|
data: {
|
searchWord: word
|
}
|
}).done(function (result) {
|
})
|
}
|
|
</script>
|
</html>
|