MigrationUpLoadFile.jsp
9.25 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
<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ page import="weaver.general.*" %>
<%@ page import="java.util.*" %>
<%@ page import="weaver.systeminfo.*" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ include file="/system/upgradetoe9/MigrationOperation.jsp"%>
<%
response.setHeader("cache-control", "no-cache");
response.setHeader("pragma", "no-cache");
response.setHeader("expires", "Mon 1 Jan 1990 00:00:00 GMT");
RecordSet rs=new RecordSet();
int step2=0;
int step3=0;
int step4=0;
rs.executeQuery("select * from dbupgrademain where sequence=?","20.00");
if(rs.next()){
step2=Util.getIntValue(rs.getString("status"),0);
}
rs.executeQuery("select * from dbupgrademain where sequence=?","30.00");
if(rs.next()){
step3=Util.getIntValue(rs.getString("status"),0);
}
rs.executeQuery("select * from dbupgrademain where sequence=?","40.00");
if(rs.next()){
step4=Util.getIntValue(rs.getString("status"),0);
}
String result="";
if(step2==2&&step3>0&&step4==0){
}else{
result="操作出现错误";
}
%>
<HTML>
<%if(result.length()<=0){%>
<HEAD>
<style type="text/css">
td,input{
font-family:"微软雅黑","宋体";
}
.e8_btn_top_first_hover{
background-color:#4393ff!important;
}
</style>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<SCRIPT language="javascript" src="/js/weaver_wev8.js"></script>
<script type="text/javascript" src="/wui/common/jquery/jquery.min_wev8.js"></script>
<script language=javascript src="/wui/theme/ecology8/jquery/js/zDialog_wev8.js"></script>
<script language=javascript src="/wui/theme/ecology8/jquery/js/zDrag_wev8.js"></script>
<link rel="stylesheet" href="/wui/theme/ecology8/jquery/js/e8_zDialog_btn_wev8.css" type="text/css" />
<link rel="stylesheet" href="/css/ecology8/request/seachBody_wev8.css" type="text/css" />
<script type="text/javascript" src="/system/upgradetoe9/js/upgradeDialog.js"></script>
<script type="text/javascript">
</script>
</head>
<%
String code = Util.null2String(request.getParameter("code")) ;
String imagefilename = "/images/hdSystem_wev8.gif";
//companyname=Util.toScreen(companyname,7);
%>
<BODY>
<FORM id="codeform" style="MARGIN-TOP: 0px" name=frmMain action="MigrationLogFileOperation.jsp" method=post onsubmit="return checkcode()" enctype="multipart/form-data">
<table width="100%" style="text-align:center;margin-left:auto;margin-right:auto;" height=100% border="0" cellspacing="0" cellpadding="0">
<COLGROUP> <COL width="15%"> <COL width="80%"><TBODY>
<tr class=Title >
<TD colSpan=2 style="background-color:#f8f8f8;font-weight: bold;text-align:center;height:50px;color:#545454;border:1px solid #eaeaea;padding-bottom:5px;">
<span style="display:inline-block;line-height:32px;height:32px;background-image:url(/images/ecology8/license_wev8.png);background-repeat:no-repeat;background-position:0 50%;">
<span style="padding-left:42px;display:inline-block;height:32px;line-height:45px;font-size:18px;">日志文件 提 交</span>
</span>
</TD>
</tr>
<tr>
<td style="font-size:14px;color:#5c5c5c;height:100px;border-left:1px solid #eaeaea;text-align:right;padding-right:30px;">验证码:</td>
<td style="font-size:14px;color:#5c5c5c;border-right:1px solid #eaeaea;text-align:left;">
<input style="border:1px solid #c5c5c5;width:300px;height:30px;" class="InputStyle" type=password id=code name=code maxlength=16 size=16 onchange='checkinput("code","codeimage")'><SPAN id=codeimage><IMG src="/images/BacoError_wev8.gif" align=absMiddle></SPAN></td>
</tr>
<TBODY>
<tr>
<td style="line-height:30px;font-size:14px;color:#5c5c5c;vertical-align:top;height:140px;border-bottom:1px solid #f4f4f4;border-left:1px solid #eaeaea;text-align:right;padding-right:30px;">日志文件:</td>
<td style="position:relative;font-size:14px;color:#5c5c5c;vertical-align:top;border-bottom:1px solid #f4f4f4;border-right:1px solid #eaeaea;padding-right:5px;text-align:left;">
<input id="e8filebtn" type="button" style="margin-left:1px;font-size:14px;height:35px;width:100px;text-align:center;background-color:#65a9ff;" class="e8_btn_top_first" id=btnSave accessKey=S name=btnSave type=button value="选择文件"></input>
<SPAN id=logimage><IMG src="/images/BacoError_wev8.gif" align=absMiddle></SPAN>
<span id="fileName">未选择文件</span>
<input class="e8_btn_top_file" style="cursor:pointer;opacity:0;filter:alpha(opacity:0);hidden;width:100px;height:35px;left:0;top:0;position:absolute;" class="InputStyle" type=file id="log" name="log" size=50 onchange='checkinput("log","logimage");document.getElementById("fileName").innerHTML=this.value;'>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:right;height:60px;border-left:1px solid #eaeaea;border-bottom:1px solid #eaeaea;border-right:1px solid #eaeaea;">
<input style="margin-right:18px;font-size:14px;height:35px;width:100px;text-align:center;background-color:#65a9ff;" class="e8_btn_top_first" id="btnSave" accessKey=S name=btnSave type=submit value="提 交"></input> </td>
</tr>
</TBODY>
</TABLE>
<br>
<tr>
<td height="10" colspan="3"></td>
</tr>
</table>
</FORM>
<%}else{%>
<TABLE class=ViewForm width="100%" cellspacing="0">
<COLGROUP> <COL width="15%"> <COL width="80%"><TBODY>
<tr class=Title >
<TD colSpan=2 style="background-color:#f8f8f8;font-weight: bold;text-align:center;height:50px;color:#545454;border:1px solid #eaeaea;padding-bottom:5px;">
<span style="display:inline-block;line-height:32px;height:32px;">
<span style="display:inline-block;height:32px;line-height:45px;font-size:18px;">错误信息</span>
</span>
</TD>
</tr>
<tr>
<td style="height:240px;border-left:1px solid #eaeaea;border-bottom:1px solid #f4f4f4;text-align:center;padding-right:10px;width:100%">
<img src="/images/ecology8/fail_wev8.png" style="vertical-align:middle;width:32px;height:32px;"/>
<%--</td>--%>
<%--<td style="font-size:14px;color:#d62c2c;border-bottom:1px solid #f4f4f4;border-right:1px solid #eaeaea;text-align:center;padding-right:30px;">--%>
<span>
<span style="color:#d62c2c;font-size:18px;">
<%=Util.toScreen(result,7,"2")%>
</span>
</span>
</td>
<%--<%}else{ %>--%>
<%--<td colspan="2" style="height:240px;font-size:14px;color:#5c5c5c;border-left:1px solid #eaeaea;border-bottom:1px solid #f4f4f4;border-right:1px solid #eaeaea;text-align:center;padding-right:30px;">--%>
<%--<span style="display:inline-block;background-image:url(/images/ecology8/success_wev8.png);background-repeat:no-repeat;background-position:0 50%;height:32px;">--%>
<%--<span style="display:inline-block;height:32px;line-height:32px;color:#209e29;font-size:18px;padding-left:42px;">--%>
<%--<%=Util.toScreen(message,7,"2")%>--%>
<%--</span>--%>
<%--</span>--%>
<%--</td>--%>
<%--<%} %>--%>
</tr>
<%--<tr>--%>
<%--<td colspan="2" style="text-align:right;height:60px;border-left:1px solid #eaeaea;border-bottom:1px solid #eaeaea;border-right:1px solid #eaeaea;">--%>
<%--<%if(_mess.equals("1")){ %>--%>
<%--<input style="margin-right:18px;font-size:14px;height:35px;width:100px;text-align:center;background-color:#65a9ff;" class="e8_btn_top_first" id=btnSave accessKey=S name=btnSave onclick="javascript:top.location='/index.htm'" type=button value="登 录"></input>--%>
<%--<%}else{ %>--%>
<%--<input style="margin-right:18px;font-size:14px;height:35px;width:100px;text-align:center;background-color:#65a9ff;" class="e8_btn_top_first" id=btnSave accessKey=S name=btnSave type=button onclick="javascript:top.location='/system/InLicense.jsp'" value="重新提交"></input>--%>
<%--<%} %>--%>
<%--<input style="margin-right:18px;font-size:14px;height:35px;width:100px;text-align:center;background-color:#65a9ff;display:none;" class="e8_btn_top_first" id=btnClose accessKey=S name=btnSave type=button onclick="javascript:parent.parent.getDialog(parent).close();" value="关 闭"></input>--%>
<%--<script type="text/javascript">--%>
<%--try{--%>
<%--if(parent.setTabObjName){--%>
<%--jQuery("#btnSave").hide();--%>
<%--jQuery("#btnClose").show();--%>
<%--}--%>
<%--}catch(e){}--%>
<%--</script>--%>
<%--</td>--%>
<%--</tr>--%>
</TBODY>
</TABLE>
<%
}
%>
</BODY>
<script language="javascript">
function check_form(thiswins,items)
{
thiswin = thiswins
items = items + ",";
for(i=1;i<=thiswin.length;i++)
{
tmpname = thiswin.elements[i-1].name;
tmpvalue = thiswin.elements[i-1].value;
if(tmpvalue==null){
continue;
}
while(tmpvalue.indexOf(" ") == 0)
tmpvalue = tmpvalue.substring(1,tmpvalue.length);
if(tmpname!="" &&items.indexOf(tmpname+",")!=-1 && tmpvalue == ""){
Dialog.alert("必填信息不完整!");
return false;
}
}
return true;
}
function checkcode() {
if(!check_form(codeform,"code,log"))
return false;
return true;
}
</script>
</HTML>