多单位版国产化地质资料管理系统
zs
2025-12-18 4f0d9bde31a80f6279e26466250da7716eec627f
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<%@ 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>