MigrationMain.jsp
3.87 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
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="weaver.general.*" %>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.upgradetool.dbupgrade.upgrade.DBUpgradeProcess" %>
<html>
<%
String init = request.getParameter("init");
if("1".equals(init)) {
DBUpgradeProcess.initProcess();
}
JSONObject object = DBUpgradeProcess.getNextMainStep();
String url = Util.null2String(object.get("url"));
url = ("".equals(url) ? "MigrationSetting.jsp" : url) + "?dbupgrade=dbupgrade";
%>
<script type="text/javascript" src="/system/upgradetoe9/js/jquery-1.8.3.min_wev8.js"></script>
<link rel="stylesheet" href="/system/upgradetoe9/css/seachBody_wev8.css" type="text/css" />
<script type="text/javascript" src="/system/upgradetoe9/js/upgradeDialog.js"></script>
<%--<script type="text/javascript" src="/src4js/pc/coms/global/js/weaver_lang_7_wev8.js"></script>--%>
<%--<script type="text/javascript" src="/wui/theme/ecology8/jquery/js/zDialog_wev8.js"></script>--%>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
.dropdown-content a {
color: white!important;
font-size: small;
font-weight: bold;
padding: 16px 0px 12px 20px;
text-decoration: none;
display: block;
/*background-color: #374768;*/
}
.dropdown-content a:hover {
background-color: #223152!important;
}
.button-li:hover{
background-color: #3f73C4;
}
.active{
background-color:#3f73C4;
}
.active a{
background-color: #223152;
}
.migrationIframe{
width:100%;
height:100%;
border:0px;
border-top:1px solid #DADADA;
}
html{
height:100%!important;
}
</style>
</head>
<body style="width:100%;height:98%;margin:0px;">
<table style="width: 100%;height: 100%;" cellspacing="0" cellpadding="0" >
<tr>
<td style="padding:0px;height: 100%;width:12%;min-width:230px;vertical-align:top;background-color: #374768">
<div class="dropdown-content" style="margin-top:10px;">
<div id="div1" class="button-li active" >
<a style="margin-left: 5px;" href="#" onclick="changeTab(1)">数据迁移</a>
</div>
<div id="div2" class="button-li" >
<a style="margin-left: 5px;" href="#" onclick="changeTab(2)">迁移数据初始化处理</a>
</div>
<div id="div3" class="button-li" >
<a style="margin-left: 5px;" href="#" onclick="changeTab(3)">迁移报告</a>
</div>
</div>
<div style="bottom:20px;margin-left:10px;position:absolute;font-size: small"><b>版本信息:V1.0</b></div>
</td>
<td colSpan=2 style="width: 100%;height: 100%;valign:top" id="righttd">
<iframe class="migrationIframe" id="migrationIframe" src="<%=url%>"></iframe>
</td>
</tr>
</table>
</body>
</html>
<script type="text/javascript">
function changeTab(index){
$("div[id*='div']").removeClass("active");
// $("#div"+index).addClass("active");
if(index==1){
$("#div1").addClass("active");
$("#migrationIframe").attr("src","<%=url%>");
}else if(index==2){
$("#div2").addClass("active");
$("#migrationIframe").attr("src","/system/upgradetoe9/MigrationDataInit.jsp?dbupgrade=dbupgrade");
}else if(index==3){
$("#div3").addClass("active");
$("#migrationIframe").attr("src","/system/upgradetoe9/ReportTable.jsp?dbupgrade=dbupgrade");
}
}
</script>