step2.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:4k
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="upgrade.aspx.cs" Inherits="Discuz.Install.Upgrade" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Discuz!NT升级</title>
- <meta name="keywords" content="Discuz!NT升级" />
- <meta name="description" content="Discuz!NT升级" />
- <meta name="generator" content="Discuz!NT" />
- <meta http-equiv="x-ua-compatible" content="ie=7" />
- <link rel="icon" href="favicon.ico" type="image/x-icon" />
- <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
- <link rel="stylesheet" href="main.css" type="text/css" media="all" />
- <script type="text/javascript" src="js/jquery.js"></script>
- <script type="text/javascript">
- var checkConnection = function() {
- $("#recheck,#upgrade").attr("disabled", "disabled");
- $("#loading").ajaxStart(function() {
- $("#loading").removeClass("hint_info").addClass("loading_info").html("正在检测数据库链接...");
- });
- $.getJSON(window.location.href + "?connection=check&r=" + Math.random(), function(data) {
- if (!data.Result) {
- $("#loading").removeClass("loading_info").addClass("hint_info").html(data.Message);
- $("#recheck").removeAttr("disabled");
- }
- else {
- $("#loading").removeClass("loading_info").addClass("hint_info").html("<ul><li>升级前请做好数据库的备份</li><li>请确认将detachtable_数据版本.config放置到config文件夹中</li></ul>");
- $("#upgrade").removeAttr("disabled");
- }
- });
- $("#recheck").click(checkConnection);
- };
- $(function() {
- checkConnection();
- });
- </script>
- </head>
- <body>
- <div class="wrap">
- <div class="side s_clear">
- <div class="side_bar">
- <h1><%=Discuz.Common.Utils.ASSEMBLY_VERSION%></h1>
- <ul>
- <li class="currentitem">欢迎</li>
- <li class="currentitem">升级版本选择</li>
- <li>升级完成</li>
- </ul>
- <div class="copy">康盛创想(北京)科技有限公司</div>
- </div>
- </div>
- <div class="main s_clear">
- <form id="form1" runat="server" >
- <div class="content">
- <h1>升级版本选择</h1>
- <div class="inner">
- <div id="loading" class="hint loading_info">正在检测数据库链接...</div>
- <table width="100%" cellspacing="0" cellpadding="0" summary="setup" class="setup">
- <tbody>
- <tr>
- <td>请选择您要从以下哪个版本升级到Discuz!NT <%=Discuz.Common.Utils.ASSEMBLY_VERSION%>
- <asp:RadioButtonList ID="rblBBSVersion" runat="server">
- <asp:ListItem Value="20">Discuz!NT 2.0</asp:ListItem>
- <asp:ListItem Value="21">Discuz!NT 2.1</asp:ListItem>
- <asp:ListItem Value="25">Discuz!NT 2.5</asp:ListItem>
- <asp:ListItem Value="26">Discuz!NT 2.6</asp:ListItem>
- <asp:ListItem Value="30" Selected="True">Discuz!NT 3.0</asp:ListItem>
- </asp:RadioButtonList>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div class="btn_box">
- <button type="button" name="recheck" id="recheck" value="true" disabled="disabled">重新检测</button>
- <button type="submit" name="upgrade" id="upgrade" value="true" disabled="disabled">升级</button>
- </div>
- </form>
- </div>
- </div>
- </body>
- </html>