MigrationMain.jsp 3.87 KB
<%@ 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>