importData.jsp
5.79 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
<%@ taglib prefix="wea" uri="http://www.weaver.com.cn" %>
<%@ taglib uri="/WEB-INF/tld/browser.tld" prefix="brow"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<jsp:useBean id="peidUtil" class="weaver.portal.util.PortalExportImportDataUtil" scope="page" />
<jsp:useBean id="pei" class="weaver.portal.PortalImportExport" scope="page" />
<%@ include file="/systeminfo/init_wev8.jsp" %>
<link rel="stylesheet" href="/js/ecology8/jNice/jNice/jNice_wev8.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="/page/exportImport/css/default.css" />
<link rel="stylesheet" type="text/css" href="/page/exportImport/css/import.css" />
<script type="text/javascript" src="/js/ecology8/jNice/jNice/jquery.jNice_wev8.js"></script>
<!DOCTYPE>
<html>
<head>
<script>
$(function () {
jQuery('body').jNice();
jQuery('#scrollContainer').perfectScrollbar();
jQuery("input[type='checkbox']").click(function(){
var status = $(this).val();
jQuery("input[type='checkbox']").each(function(){
$(this).trigger("checked",false);
$(this).val("0");
});
if(status==1){
jQuery("#fileName").val("");
$(this).trigger("checked",false);
$(this).val("0");
}else{
jQuery("#fileName").val(jQuery(this).parent().parent(".zipItem").attr("title"));
$(this).trigger("checked",true);
$(this).val("1");
}
});
});
function onNext() {
if ("" == $("#fileName").val()) {
window.top.Dialog.alert("<%=SystemEnv.getHtmlLabelName(130171,user.getLanguage()) %>");//请导入文件
}else{
document.location.href = "/page/exportImport/importCheckPage.jsp?fileName=" + $("#fileName").val();
}
}
</script>
<style>
.jNiceWrapper{
top:-40px;
}
.uploadArea{
position: relative;
width: 538px;
left: 50%;
margin-left: -269px;
margin-top: 100px;
}
.btn{
width: 100px;
height: 40px;
border: 1px solid #cfcfcf;
font-size: 16px;
line-height:40px;
left:221px;
}
#fileNameShow{
width: 400px;
height: 40px;
border: 1px solid #cfcfcf;
position: absolute;
top: 0px;
left: 0px;
padding: 0 10px;
}
.progressArea{
position: relative;
width: 558px;
left: 50%;
margin-left: -269px;
margin-top: 0px;
}
.bar {
height: 5px;
background: green;
}
.percentContent{
position: absolute;
width: 574px;
left: 50%;
margin-left: -269px;
margin-top: 0px;
top: 167px;
font-size: 12px;
}
.progressPercent{
float:right;
width:10px;
height:10px;
}
</style>
</head>
<body>
<jsp:include page="/systeminfo/commonTabHead.jsp">
<jsp:param name="mouldID" value="portal" />
<jsp:param name="navName"
value="<%=SystemEnv.getHtmlLabelName(129573, user.getLanguage()) %>" />
</jsp:include>
<table id="topTitle" cellpadding="0" cellspacing="0">
<tr>
<td></td>
<td class="rightSearchSpan"><span
title="<%=SystemEnv.getHtmlLabelName(23036, user.getLanguage())%>"
class="cornerMenu"></span></td>
</tr>
</table>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp"%>
<%
/* RCMenu += "{"+SystemEnv.getHtmlLabelName(197,user.getLanguage())+",javascript:onSearch(),_self} " ;
RCMenuHeight += RCMenuHeightStep; */
RCMenu += "{"+SystemEnv.getHtmlLabelName(1402,user.getLanguage())+",javascript:onNext(),_self} " ;
RCMenuHeight += RCMenuHeightStep;
/* RCMenu += "{"+SystemEnv.getHtmlLabelName(309 ,user.getLanguage())+",javascript:doClose(),_self} " ;
RCMenuHeight += RCMenuHeightStep; */
%>
<%
String fileName= Util.null2String(request.getParameter("fileName"));
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp"%>
<div class="container" role="main">
<div class="stepContainer">
<div class="stepArea" style="width: 810px;">
<div class="line left128"></div>
<div class="line left462"></div>
<div class="stepNum textCenter left35 active"><img src='/page/exportImport/images/4-1.png'></div>
<div class="stepNum textCenter left375 notActive"><img src='/page/exportImport/images/2.png'></div>
<div class="stepNum textCenter left715 notActive"><img src='/page/exportImport/images/3.png'></div>
<div class="stepDesc left30 sColor">
<%=SystemEnv.getHtmlLabelName(129794 ,user.getLanguage())%>
</div>
<div class="stepDesc left355">
<%=SystemEnv.getHtmlLabelName(130740 ,user.getLanguage())%>
</div>
<div class="stepDesc left675">
<%=SystemEnv.getHtmlLabelName(129796 ,user.getLanguage())%>
</div>
</div>
</div>
<input type="hidden" id="fileName"name="fileName" value="<%=fileName %>">
<div class="importContainer">
<div class="titleContenter">
<%="请将门户导出的压缩包放在\\page\\exportImport\\_TransferStation目录中,请在下列ZIP包中选择需要导入的门户 "%>
</div>
<div id="scrollContainer" style=" background-color: #f7f7f7;">
<div class="fileContainer" >
<%
List<String> list = pei.getFilesName();
String noItemF = "hide";
if(list.size()>0){
for(int i=0;i<list.size();i++){
String name = list.get(i);
%>
<div class="zipItem" title="<%=name%>">
<input type='checkbox' value="0" data-fileName="<%=name%>" <% if(name.equals(fileName)){%>checked<%} %>><img src="/page/exportImport/images/icon_compress.png">
<span class="fileName" ><%=name %></span>
</div>
<%
}
}else{
noItemF="";
}
%>
<div class="noFileContainer <%=noItemF %>" >
<div class="noEle">
<img src="/page/exportImport/images/icon-caution.png">
<div>
<%=SystemEnv.getHtmlLabelName(130561, user.getLanguage())%>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="div_bottom" class="div_bottom">
<input type="buttom" id="btn_next" class="btn_default btn_next1" onclick="onNext();" value="<%=SystemEnv.getHtmlLabelName(1402, user.getLanguage()) %>">
</div>
</div>
</body>
</html>