RecoverMain.jsp 4.08 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" />
	<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;*/
            }
			.tooltitle  a{
				font-size: small;
				height: 61px;
				font-weight: bold;
				text-decoration: none;
				display: block;
				color: white;
				text-align: center;
				line-height: 61px;
				/*background-color: #0eafd3;*/
				background-color: #3f73c4;
				/*background-color: #008df7;*/
			}
		    .tooltop a{
				height: 56px;
				text-decoration: none;
				line-height: 56px;
				margin-left:30px;
				font-size:15px!important;
				color:black;
				display:inline-block;
			}
			.tooltop .topactive{
				color:#68cffa;
				border-bottom: 5px solid #2db7f5;
			}
			.tooltop {
				border-top: 0.2px solid #f4f4f4;
			}

            .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;
			}



		</style>
	</head>
	<body style="width:99%;height:98%;">
		<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:10px;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","https://www.baidu.com");
        }else if(index==3){
            $("#div3").addClass("active");
            $("#migrationIframe").attr("src","https://www.sogou.com/");
        }
    }

</script>