MigrationUpLoadFile.jsp 9.25 KB
<!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;">日志文件&nbsp;&nbsp;</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>