step2.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:4k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="upgrade.aspx.cs" Inherits="Discuz.Install.Upgrade" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Discuz!NT升级</title>
  7. <meta name="keywords" content="Discuz!NT升级" />
  8. <meta name="description" content="Discuz!NT升级" />
  9. <meta name="generator" content="Discuz!NT" />
  10. <meta http-equiv="x-ua-compatible" content="ie=7" />
  11. <link rel="icon" href="favicon.ico" type="image/x-icon" />
  12. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
  13. <link rel="stylesheet" href="main.css" type="text/css" media="all" />
  14. <script type="text/javascript" src="js/jquery.js"></script>
  15. <script type="text/javascript">
  16.     var checkConnection = function() {
  17.         $("#recheck,#upgrade").attr("disabled", "disabled");
  18.         $("#loading").ajaxStart(function() {
  19.             $("#loading").removeClass("hint_info").addClass("loading_info").html("正在检测数据库链接...");
  20.         });
  21.         $.getJSON(window.location.href + "?connection=check&r=" + Math.random(), function(data) {
  22.             if (!data.Result) {
  23.                 $("#loading").removeClass("loading_info").addClass("hint_info").html(data.Message);
  24.                 $("#recheck").removeAttr("disabled");
  25.             }
  26.             else {
  27.                 $("#loading").removeClass("loading_info").addClass("hint_info").html("<ul><li>升级前请做好数据库的备份</li><li>请确认将detachtable_数据版本.config放置到config文件夹中</li></ul>");
  28.                 $("#upgrade").removeAttr("disabled");
  29.             }
  30.         });
  31.         $("#recheck").click(checkConnection);
  32.     };
  33.     $(function() {
  34.         checkConnection();
  35.     });
  36. </script>
  37. </head>
  38. <body>
  39. <div class="wrap">
  40. <div class="side s_clear">
  41. <div class="side_bar">
  42.     <h1><%=Discuz.Common.Utils.ASSEMBLY_VERSION%></h1>
  43. <ul>
  44. <li class="currentitem">欢迎</li>
  45. <li class="currentitem">升级版本选择</li>
  46. <li>升级完成</li>
  47. </ul>
  48. <div class="copy">康盛创想(北京)科技有限公司</div>
  49. </div>
  50. </div>
  51. <div class="main s_clear">
  52.     <form id="form1" runat="server" >
  53. <div class="content">
  54. <h1>升级版本选择</h1>
  55. <div class="inner">
  56.                 <div id="loading" class="hint loading_info">正在检测数据库链接...</div>
  57. <table width="100%" cellspacing="0" cellpadding="0" summary="setup" class="setup">
  58. <tbody>
  59. <tr>
  60. <td>请选择您要从以下哪个版本升级到Discuz!NT <%=Discuz.Common.Utils.ASSEMBLY_VERSION%>
  61.     <asp:RadioButtonList ID="rblBBSVersion" runat="server">
  62.                                     <asp:ListItem Value="20">Discuz!NT 2.0</asp:ListItem>
  63.                                     <asp:ListItem Value="21">Discuz!NT 2.1</asp:ListItem>
  64.                                     <asp:ListItem Value="25">Discuz!NT 2.5</asp:ListItem>
  65.                                     <asp:ListItem Value="26">Discuz!NT 2.6</asp:ListItem>
  66.                                     <asp:ListItem Value="30" Selected="True">Discuz!NT 3.0</asp:ListItem>
  67.                                 </asp:RadioButtonList>
  68. </td>
  69. </tr>
  70. </tbody>
  71. </table>
  72. </div>
  73. </div>
  74. <div class="btn_box">
  75. <button type="button" name="recheck" id="recheck" value="true" disabled="disabled">重新检测</button>
  76. <button type="submit" name="upgrade" id="upgrade" value="true" disabled="disabled">升级</button>
  77. </div>
  78. </form>
  79. </div>
  80. </div>
  81. </body>
  82. </html>