<%@ Page Language="C#" Inherits="SiteServer.BackgroundPages.Upgrade.Default" Trace="False" ValidateRequest="true" %>
<%@ Register TagPrefix="bairong" Namespace="BaiRong.Controls" Assembly="BaiRong.Controls" %>
<%@ Register TagPrefix="user" Namespace="UserCenter.Controls" Assembly="UserCenter.Pages" %>
<%@ Register TagPrefix="site" Namespace="SiteServer.Controls" Assembly="SiteServer.Controls" %>

<HTML>
<HEAD>
<title><%=GetProductName()%> 升级向导</title>
<script language="JavaScript">
		if (window.top != self){
			window.top.location = self.location;
		}
		</script>
<script src="../Inc/siteservercore.js"></script>
<style>
.Help
{
  border-right: black 1px solid;
  padding-right: 2px;
  border-top: black 1px solid;
  padding-left: 2px;
  font-weight: normal;
  font-size: 11px;
  padding-bottom: 2px;
  border-left: black 1px solid;
  color: black;
  padding-top: 2px;
  border-bottom: black 1px solid;
  font-family: Tahoma, Arial, Helvetica;
  background-color: #ffff99;
}
DIV { FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif }
TD { FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif }
A { FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif }
A:visited { FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif }
H2 { FONT-SIZE: 20px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif }
.buttons { FONT-SIZE: 11px; WIDTH: 90px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif }
.mainTitle { FONT-WEIGHT: 900; FONT-SIZE: 14px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif }
.thisframe { FONT-SIZE: 11px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif }
.bold { FONT-WEIGHT: 900 }
.dataentry { WIDTH: 150px }
TABLE.err { BORDER-RIGHT: #6798c7 1px solid; BORDER-TOP: #6798c7 1px solid; BORDER-LEFT: #6798c7 1px solid; BORDER-BOTTOM: #6798c7 1px solid }
TH.err { FONT-SIZE: 14px; COLOR: white; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #6798c7 }
TD.err { FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif }
</style>

<meta http-equiv="content-type" content="text/html;charset=gb2312">
</HEAD>
<body>
<form runat="server">
  <table height="100%" width="100%" align="center">
    <TBODY>
      <tr>
        <td align="center" valign="middle"><table height="440" cellSpacing="0" cellPadding="0" width="600" border="0" style="BORDER-RIGHT: #6798c7 1px solid; BORDER-TOP: #6798c7 1px solid; BORDER-LEFT: #6798c7 1px solid; BORDER-BOTTOM: #6798c7 1px solid">
          <tbody>
            <tr>
              <td valign="top" height="98" width="594" background="../Pic/Installer/headerbg.gif"><img src="../Pic/Installer/upgradeHeader.gif" width="496" height="98"></td>
            </tr>
            <tr>
              <td valign="top"><div style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 30px">
<asp:panel id="Welcome" runat="server" Visible="false">
                    <DIV class="mainTitle">欢迎使用<%=GetProductName()%>升级向导</DIV>
                    <DIV style="PADDING-LEFT: 10px; LINE-HEIGHT: 18px;">
						<BR>数据库当前版本：<%=GetDatabaseVersion()%>
                    </DIV>
					<DIV style="PADDING-LEFT: 10px; LINE-HEIGHT: 18px;">
						<BR>升级到版本：<%=GetProductVersion()%>
                    </DIV>
</asp:panel>

<asp:panel id="Done" runat="server" Visible="false">
                  <SPAN class="mainTitle">完成!</SPAN> <BR>
                  <BR>
                  <DIV>
					恭喜，您已经完成了 <%=GetProductName()%> 升级，并已正常运行。
                      <P><A href='<%=GetSiteServerUrl()%>'>点击这里</A> 进入后台。</P>
                  </DIV>
</asp:panel>

<asp:Panel id="Errors" runat="server" Visible="false">
                  <span class="mainTitle"></span> <STRONG>发生错误</STRONG> <br>
                  <br>
                  <div> 执行向导过程中出错 </div>
                  <table class="err" width="580px" border="1" cellpadding="0" cellspacing="0">
                      <tr>
                          <td class="err"><asp:Literal ID="ltlErrorMessage" runat="server"></asp:Literal></td>
                        </tr>
                      </table>
</asp:Panel>
                <DIV></DIV></TD>
            </TR>
      <tr>
        <td valign="bottom"><table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr>
              <td><img src="../Pic/Installer/blcorner.gif"></td>
              <td align="right"><img src="../Pic/Installer/brCorner.gif"></td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#6798c7" height="45"><div style="PADDING-RIGHT: 30px">
            <asp:Button class="button" id="Previous" runat="server" text="< 上一步" cssClass="buttons" CausesValidation="false"></asp:button>
            &nbsp;
            <asp:Button class="button" id="Next" onclick="NextPanel" runat="server" text="下一步 >" cssClass="buttons"></asp:button>
          </div></td>
      </tr>
    </TBODY>
  </TABLE>
  </TD>
  </TR>
  </TBODY>
  </TABLE>
</form>
</body>
</HTML>
