SearchSet.jsp
6.31 KB
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="weaver.fullsearch.model.FSViewSetInfo" %>
<%@ page import="weaver.fullsearch.model.FSSearchSetInfo" %>
<%@ include file="init.jsp" %>
<jsp:useBean id="searchSetDao" class="weaver.fullsearch.dao.SearchSetDao" scope="page" />
<jsp:useBean id="viewSet" class="weaver.fullsearch.bean.ViewSetBean"/>
<jsp:setProperty name="viewSet" property="pageContext" value="<%=pageContext%>"/>
<jsp:setProperty name="viewSet" property="user" value="<%=user%>"/>
<%
String type = request.getParameter("changetype");
Map map = viewSet.getMapOfViewSet(user.getUID());
FSViewSetInfo allVinfo = null;
if(map.containsKey("ALL")){
allVinfo = (FSViewSetInfo)map.get("ALL");
}
//每页显示条数
int num = (allVinfo != null?allVinfo.getNumPerPage():-1);
//搜索高级配置
FSSearchSetInfo searchSetInfo=searchSetDao.getSearchSetInfo(user.getUID());
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><%=SystemEnv.getHtmlLabelName(83361,user.getLanguage()) %></title>
<script type="text/javascript" src="/wui/common/jquery/jquery.min_wev8.js"></script>
<script language="javascript" type="text/javascript" src="/js/init_wev8.js"></script>
<script type="text/javascript" src="/js/ecology8/jNice/jNice/jquery.jNice_wev8.js"></script>
<script language=javascript src="/wui/theme/ecology8/jquery/js/zDialog_wev8.js"></script>
<link rel="stylesheet" href="/js/ecology8/selectbox/css/jquery.selectbox_wev8.css" type="text/css" />
<link rel="stylesheet" href="/css/commonCss_wev8.css" type="text/css" />
<style type="text/css">
.bar_div{
height:35px;
background-color: #f6f6f6;
line-height: 35px;
width:100%;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
border-radius:8px 8px 0px 0px;
font-family:微软雅黑;
font-size: 12px;
}
.line_div{
width:100%;
height: 50px;
line-height: 50px;
font-family:微软雅黑;
font-size: 12px;
}
.lable_div{
width: 160px;
text-align: right;
margin-right: 10px;
font-family:微软雅黑;
font-size: 12px;
white-space:nowrap;
text-overflow:ellipsis;
overflow: hidden;
}
.field_div{
font-family:微软雅黑;
font-size: 12px;
}
.left_div{
float:left;
}
.foot_div{
margin-left:200px;
margin-top:15px;
font-family:微软雅黑;
font-size: 12px;
}
.btn_div{
width: 90px;
height: 30px;
border: 1px solid #e5e5e5;
line-height: 30px;
color: #018ff8;
cursor: pointer;
text-align: center;
}
.btn_div:HOVER{
border: 1px solid #e5e5e5;
line-height: 30px;
color: #018ff8;
background-color: #018ff8;
color:#fff;
}
.yj{
margin-top:8px;
width:460px;
height:200px;
border: 1px solid #e5e5e5;
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
border-radius:8px;
background-color: #fff;
}
/*向上箭头*/
div.arrow-up {
width: 0;
height: 0;
border-left: 8px solid transparent; /* 左边框的宽 */
border-right: 8px solid transparent; /* 右边框的宽 */
border-bottom: 8px solid #e5e5e5; /* 下边框的长度|高,以及背景色 */
font-size: 0;
line-height: 0;
position: absolute;
top: 0px;
left: 430px;
}
/*向上箭头*/
div.arrow-up1 {
width: 0;
height: 0;
border-left: 8px solid transparent; /* 左边框的宽 */
border-right: 8px solid transparent; /* 右边框的宽 */
border-bottom: 8px solid #f6f6f6; /* 下边框的长度|高,以及背景色 */
font-size: 0;
line-height: 0;
position: absolute;
top: 1px;
left: 430px;
}
.sbSelector{
line-height: 22px;
}
</style>
<script type="text/javascript">
jQuery(document).ready(function(){
});
var isshow=false;
function showSetting(){
if(isshow){
hideSetting();
}else{
isshow=true;
$('#searchSetDiv').show();
}
}
function hideSetting(){
isshow=false;
$('#searchSetDiv').hide();
}
function save(){
//可以判断值是否发生变化,再提交
jQuery.ajax({
type: "GET",
url: "/fullsearch/AjaxOperation.jsp?",
data: "method=saveSet&numperpage="+$('#numperpage').val()+"&searchField="+$('#searchField').val()+"&sortField="+$('#sortField').val(),
success: function(msg){
hideSetting();
dosubmit();
}
});
}
</script>
</head>
<body>
<form action="" method="POST" name="frm" id="frm">
<div id="setBodyDiv" class="yj">
<div class="arrow-up"></div>
<div class="arrow-up1"></div>
<div class="bar_div">
<div style="margin-left:13px;"><%=SystemEnv.getHtmlLabelName(384226,user.getLanguage()) %></div>
</div>
<div class="line_div" >
<div class="left_div lable_div" title="<%=SystemEnv.getHtmlLabelName(17491,user.getLanguage()) %>"><%=SystemEnv.getHtmlLabelName(17491,user.getLanguage()) %>:</div>
<div>
<select id="numperpage" name="numperpage" style="width:33px">
<option value="10" <%if(num <= 10){%>selected<%} %>>10</option>
<option value="15" <%if(num == 15){%>selected<%} %>>15</option>
<option value="20" <%if(num == 20){%>selected<%} %>>20</option>
</select> <%=(user.getLanguage()==7||user.getLanguage()==9)?"条":"" %>
</div>
</div>
<div class="line_div" >
<div class="left_div lable_div"><%=SystemEnv.getHtmlLabelName(19332,user.getLanguage()) %>:</div>
<div class="left_div field_div" style="width:260px">
<select id="searchField" name="searchField" style="width:81px">
<option value="0" <%if(searchSetInfo.getSearchField() == 0){%>selected<%} %>><%=SystemEnv.getHtmlLabelName(125623,user.getLanguage()) %> </option>
<option value="1" <%if(searchSetInfo.getSearchField() == 1){%>selected<%} %>><%=SystemEnv.getHtmlLabelName(125624,user.getLanguage()) %></option>
</select>
<select id="sortField" name="sortField" style="width:116px">
<option value="0" <%if(searchSetInfo.getSortField() == 0){%>selected<%} %>><%=SystemEnv.getHtmlLabelName(125625,user.getLanguage()) %></option>
<option value="1" <%if(searchSetInfo.getSortField()== 1){%>selected<%} %>><%=SystemEnv.getHtmlLabelName(125626,user.getLanguage()) %></option>
</select>
</div>
</div>
<div class="foot_div" ><div class="btn_div" onclick="save()"><%=SystemEnv.getHtmlLabelName(826,user.getLanguage()) %></div></div>
</div>
</form>
</body>
</html>