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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="c#" Inherits="Discuz.Install.install" %>
  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.1.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 message = "";
  22.     var urlStr = "";
  23.     var dbExists = false;
  24.     var ischecked = function() {
  25.         if ($("#cb_newDatabase").attr("checked")) {
  26.             urlStr = "type=checked" + postData();
  27.             ajaxCheck(urlStr);
  28.             if (!flag && !dbExists) {
  29.                 Boxy.alert(message, false, { width: 400 });
  30.                 return false;
  31.             }
  32.             else if (dbExists) {
  33.             Boxy.confirm(message, function() { __doPostBack('next', ''); })
  34.                 return false;
  35.             }
  36.         }
  37.         else {
  38.             urlStr = "type=unchecked" + postData();
  39.             ajaxCheck(urlStr);
  40.             if (!flag) {
  41.                 Boxy.alert(message, false, { width: 400 });
  42.                 return false;
  43.             }
  44.         }
  45.         return true;
  46.     }
  47.     var ajaxCheck = function(dataStr) {
  48.         $.ajax(
  49.         {
  50.             type: "GET",
  51.             async: false,
  52.             url: window.location.href,
  53.             dataType: "json",
  54.             data: dataStr,
  55.             success: function(data) {
  56.                 flag = data.Result;
  57.                 message = data.Message;
  58.                 dbExists = data.Exists;
  59.             }
  60.         });
  61.     }
  62.     function postData() {
  63.         var post = "";
  64.         $(":text").each(function() {
  65.             post += "&" + this.name + "=" + this.value;
  66.         });
  67.         $(":password").each(function() {
  68.         post += "&" + this.name + "=" + this.value;
  69.         });
  70.         return post;
  71.     }
  72.     
  73. function checkid(obj,id)
  74. {
  75.     var v = obj.value;
  76.     if(v.length == 0)
  77.         $('#isnull_' + id).show();
  78.     else
  79.         $('#isnull_' + id).hide();
  80. }
  81. function isSelected() {
  82.     if ($("#cb_newDatabase").attr("checked")) {
  83.         $('#newDatabase').show();
  84.         $('#confirmPassword').show();
  85.     }
  86.     else {
  87.         $('#newDatabase').hide();
  88.         $('#confirmPassword').hide();
  89.     }
  90. }
  91. </script>
  92. <body>
  93. <div class="wrap">
  94. <div class="side s_clear">
  95. <div class="side_bar">
  96. <h1><%=Discuz.Common.Utils.ASSEMBLY_VERSION%></h1>
  97. <ul>
  98. <li class="currentitem">欢迎</li>
  99. <li class="currentitem">环境检测</li>
  100. <li class="currentitem">数据库信息</li>
  101. <li>论坛设置信息</li>
  102. <li>安装</li>
  103. </ul>
  104. <div class="copy">康盛创想(北京)科技有限公司</div>
  105. </div>
  106. </div>
  107. <div class="main s_clear">
  108. <div class="content">
  109. <h1>数据库信息</h1>
  110. <div class="info">请认真填写下面的数据库信息:</div>
  111. <div class="inner">
  112. <div class="hint_info">自动创建数据库选项适用于独立主机或本地安装;选择自动创建数据库时,如果数据库用户名不存在,系统将自动创建;虚拟主机的用户安装时,请不要勾选"自动创建数据库"
  113. </div>
  114. <form id="form_sql" action="step3.aspx"  method="post" runat="server">
  115. <table width="100%" cellspacing="0" cellpadding="0" summary="setup" class="setup">
  116. <tr>
  117. <td class="title">数据库名称:</td>
  118. <td>
  119.     <input name="sql_name" id="sql_name" class="txt" type="text" onblur="checkid(this,'sql_name')"  value="<%=dataBaseName %>"><span id='isnull_sql_name' style="color:#ff0000;display:none">此处不能为空!</span>
  120.     <input name="cb_newDatabase" id="cb_newDatabase" type="checkbox" onclick="isSelected()" runat="server">自动创建数据库
  121. </td>
  122. </tr>
  123. <tbody id="newDatabase" class="other_item" style="display:none">
  124. <tr>
  125. <td class="title">数据库管理帐号:</td>
  126. <td>
  127.     <input name="sql_manager" id="sql_manager" class="txt" type="text" value="<%=Request.Form["sql_manager"]%>" onblur="checkid(this,'sql_manager')">
  128.     <span id='isnull_sql_manager' style="color:#ff0000;display:none">此处不能为空!</span>
  129.     <span style="color:#CCCCCC">例如:sa(创建数据库时使用)</span>
  130. </td>
  131. </tr>
  132. <tr>
  133. <td class="title">数据库管理帐号密码:</td>
  134. <td>
  135.     <input name="sql_managerpassword" id="sql_managerpassword" class="txt" type="password" value="<%=Request.Form["sql_managerpassword"]%>" onblur="checkid(this,'sql_managerpassword')"><span id='isnull_sql_managerpassword' style="color:#ff0000;display:none">此处不能为空!</span>
  136. </td>
  137. </tr>
  138. <tr>
  139.     <td colspan="2"><div style="border-top:1px dashed #cccccc;height: 1px;overflow:hidden"></div></td>
  140. </tr>
  141. </tbody>
  142. <tbody>
  143. <tr>
  144. <td class="title">数据库用户名:</td>
  145. <td>
  146.     <input name="sql_username" id="sql_username" class="txt" type="text" onblur="checkid(this,'sql_username')"  value="<%=sqlUID %>">
  147.     <span id='isnull_sql_username' style="color:#ff0000;display:none">此处不能为空!</span>
  148.     <span style="color:#CCCCCC">连接数据库时使用</span>
  149. </td>
  150. </tr>
  151. <tr>
  152. <td class="title">数据库密码:</td>
  153. <td>
  154.     <input name="sql_password" id="sql_password" class="txt" type="password" onblur="checkid(this,'sql_password')"  value="<%=sqlPassword %>">
  155.     <span id='isnull_sql_password' style="color:#ff0000;display:none">此处不能为空!</span>
  156. </td>
  157. </tr>
  158. <tbody id="confirmPassword" style="display:none">
  159.     <tr >
  160.     <td class="title">数据库密码确认:</td>
  161.     <td>
  162.         <input name="sql_confirmPassword" id="sql_confirmPassword" class="txt" type="password" onblur="checkid(this,'sql_password_second')" value="<%=sqlPasswordConfirm %>">
  163.         <span id='isnull_sql_password_second' style="color:#ff0000;display:none">此处不能为空!</span>
  164.         <span style="color:#CCCCCC">密码不支持复制粘贴</span>
  165.     </td>
  166.     </tr>
  167. </tbody>
  168. <tr>
  169.     <td colspan="2"><div style="border-top:1px dashed #cccccc;height: 1px;overflow:hidden"></div></td>
  170. </tr>
  171. <tr>
  172. <td class="title">表前辍:</td>
  173. <td>
  174.     <input name="table_prefix" id="table_prefix" class="txt" type="text" onblur="checkid(this,'table_prefix')" value="<%=tablePrefix %>"><span id='isnull_table_prefix' style="color:#ff0000;display:none">此处不能为空!</span>
  175. </td>
  176. </tr>
  177. <tr>
  178. <td class="title">数据库服务器:</td>
  179. <td >
  180.     <input name="sql_ip" id="sql_ip" class="txt" type="text" onblur="checkid(this,'sql_ip')"  value="<%=sqlServerIP %>">
  181.     <span id='isnull_sql_ip' style="color:#ff0000;display:none">此处不能为空!</span>
  182.     <span style="color:#CCCCCC">例如:127.0.0.1,(local),"."</span>
  183. </td>
  184. </tr>
  185. </tbody>
  186. </table>
  187. <input type="hidden" id="Hidden1" name="Hidden1" value="0" />
  188. <input type="hidden" id="secondSubmit" name="secondSubmit" value="0" />
  189. </form>
  190. </div>
  191. </div>
  192. <div class="btn_box">
  193.     <button type="submit" name="next" id="next" value="true" onserverclick="CheckConnection" runat="server" onclick="if(!ischecked()) return false;">下一步</button>
  194. </div>
  195. </div>
  196. </div>
  197. <asp:Literal id="MessageInfo" runat="server" />
  198. </body>
  199. </html>