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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="c#" Inherits="Discuz.Install.InstallStep4" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html>
  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 3.0.0" />
  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. </head>
  15. <script type="text/javascript" src="js/jquery.js"></script>
  16. <link rel="stylesheet" href="js/jquery_boxy/css/common.css" type="text/css" />
  17. <link rel="stylesheet" href="js/jquery_boxy/css/boxy.css" type="text/css" />
  18. <script type="text/javascript" src="js/jquery_boxy/js/jquery.boxy.js"></script>
  19. <script type="text/javascript">
  20.     var flag = true;
  21.     var checkValue = function() {
  22.         $(".txt").each(function() {
  23.             if (this.value == "") {
  24.                 var textStr = $(this).parent().prev().text();
  25.                 textStr = textStr.substring(0, textStr.length - 1);
  26.                 Boxy.alert(textStr + '不能为空!',false, { width: 400 });
  27.                 return false;
  28.             }
  29.         });
  30.         if ($("#adminPassword").val() != $("#confirmPassword").val()) {
  31.             $("#s_adminPassword").show();
  32.             $("#s_confirmPassword").show();
  33.             $("#isnull_confirmPassword").hide();
  34.             return false;
  35.         }
  36.         checkForumPath();
  37.         if (!flag) {
  38.             Boxy.alert("论坛路径填写错误!请重新填写",false, { width: 400 });
  39.             return false;
  40.         }
  41.         return true;
  42.     }
  43.     var checkForumPath = function() {
  44.         $.ajax(
  45.         {   
  46.             type: "GET",
  47.             async: false,
  48.             url: window.location.href,
  49.             dataType: "json",
  50.             data: "checkForumPath=exists&forumpath=" + $("#ntPath").val(),
  51.             success: function(data) {
  52.                 flag = data.Result;
  53.             }
  54.         });
  55.     }
  56. function checkid(obj,id)
  57. {
  58.     var v = obj.value;
  59.     if(v.length == 0)
  60.         $(id).show();
  61.     else
  62.         $(id).hide();
  63. }
  64. function checkPassword() {
  65.     if ($("#adminPassword").val() != $("#confirmPassword").val()) {
  66.         $("#s_adminPassword").show();
  67.         $("#s_confirmPassword").show();
  68.         $("#isnull_confirmPassword").hide();
  69.     }
  70.     else {
  71.         $("#s_adminPassword").hide();
  72.         $("#s_confirmPassword").hide();
  73.     }
  74. }
  75. </script>
  76. <body>
  77. <div class="wrap">
  78. <div class="side s_clear">
  79. <div class="side_bar">
  80. <h1><%=Discuz.Common.Utils.ASSEMBLY_VERSION%></h1>
  81. <ul>
  82. <li class="currentitem">欢迎</li>
  83. <li class="currentitem">环境检测</li>
  84. <li class="currentitem">数据库信息</li>
  85. <li class="currentitem">论坛设置信息</li>
  86. <li>安装</li>
  87. </ul>
  88. <div class="copy">康盛创想(北京)科技有限公司</div>
  89. </div>
  90. </div>
  91. <div class="main s_clear">
  92. <div class="content">
  93. <h1>论坛设置信息</h1>
  94. <div class="info">请认真填写下面的论坛设置信息:</div>
  95. <div class="inner">
  96. <div class="hint_info">论坛路径:如果要安装在站点的虚拟目录,则填写/bbs/(bbs为虚拟目录的名字);否则就填写“/”</div>
  97. <form id="form_step4" action="step4.aspx" method="post" runat="server">
  98. <table width="488" cellspacing="0" cellpadding="0" summary="setup" class="setup">
  99. <tbody>
  100. <tr>
  101. <td class="title">管理员名称:</td>
  102. <td>
  103.     <input name="adminName" id="adminName" class="txt" type="text" onblur="checkid(this,'#isnull_adminName')" value="admin"><span id='isnull_adminName' style="color:#ff0000;display:none">此处不能为空!</span>
  104. </td>
  105. </tr>
  106. <tr>
  107. <td class="title">管理员密码:</td>
  108. <td>
  109.     <input name="adminPassword" id="adminPassword" class="txt" type="password" onblur="checkid(this,'#isnull_adminPassword')">
  110.     <span id='isnull_adminPassword' style="color:#ff0000;display:none">此处不能为空!</span>
  111.     <span id='s_adminPassword' style="color:#ff0000;display:none">两次密码不一致!</span>
  112. </td>
  113. </tr>
  114. <tr>
  115. <td class="title">管理员密码确认:</td>
  116. <td>
  117.     <input name="confirmPassword" id="confirmPassword" class="txt" type="password" onblur="checkid(this,'#isnull_confirmPassword');checkPassword()">
  118.     <span id='isnull_confirmPassword' style="color:#ff0000;display:none">此处不能为空!</span>
  119.     <span id='s_confirmPassword' style="color:#ff0000;display:none">两次密码不一致!</span>
  120. </td>
  121. </tr>
  122. <tr>
  123. <td class="title">论坛路径:</td>
  124. <td>
  125.     <input name="ntPath" id="ntPath" class="txt" type="text" onblur="checkid(this,'#isnull_ntPath')" value="<%=forumPath %>" disabled="disabled"><span id="isnull_ntPath" style="color:#ff0000;display:none">此处不能为空!</span>
  126. </td>
  127. </tr>
  128. </tbody>
  129. </table>
  130. </form>
  131. </div>
  132. </div>
  133. <div class="btn_box">
  134.     <button type="submit" name="back" id="back" value="true" onclick="location.href='step3.aspx'">上一步</button>
  135.     <button type="submit" name="next" id="next"  value="true" onserverclick="Setup" runat="server" onclick="if(!checkValue()) return false;" >下一步</button>
  136.     
  137. </div>
  138. </div>
  139. </div>
  140. </body>
  141. </html>