<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="install_step3.aspx.cs" Inherits="PPFOR.Install.install_step3" Title="安装步骤3" %>

<!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>
    <title>PPfor.com Install</title>
    <link href="install.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body style="background:url(/Admin/images/install/install_bg.gif);" scroll="no">
<form id="Form1" runat="server" action="install_step3.aspx" onsubmit="document.getElementById('displayWaitingMsg').style.display='';"> 
<center>
  <table width="100%" border="0" cellpadding="0" cellspacing="0" background="/Admin/images/install/install_topbg.gif">
    <tr>
      <td width="50%" height="68" align="left"><img src="/Admin/images/install/logo.gif" width="152" height="40" /></td>
      <td align="right" valign="top"><table width="522" border="0" cellspacing="0" cellpadding="0">
        <tr>
             <td height="64" background="/Admin/images/install/install_top.gif" align="right">
                <div class="toplink">
                    <asp:HyperLink ID="PPFOR_goIndex" runat="server"></asp:HyperLink>
                </div>
                <div class="toplink">
                    <asp:HyperLink ID="PPFOR_goHelp" runat="server"></asp:HyperLink>
                </div>
                <div class="toplink">
                    <asp:HyperLink ID="PPFOR_goBBS" runat="server"></asp:HyperLink>
                </div>
            </td>
        </tr>
      </table></td>
    </tr>
  </table>
  <table width="738" border="0" cellspacing="0" cellpadding="0" style="margin-top:50px">
    <tr>
      <td width="188" height="420" valign="top" background="/Admin/images/install/install_cod.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="56" align="center" background="/Admin/images/install/install_cog.gif"><table width="90%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="36"><img src="/Admin/images/install/no1.gif" width="24" height="25" /></td>
                <td align="left" class="install_f16">欢迎</td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td height="55" align="center" background="/Admin/images/install/install_cof.gif"><table width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="36"><img src="/Admin/images/install/no2.gif" width="24" height="25" /></td>
              <td align="left" class="install_f16">环境检测</td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td height="55" align="center" background="/Admin/images/install/install_cofo.gif"><table width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="36"><img src="/Admin/images/install/rno3.gif" width="24" height="25" /></td>
              <td align="left" class="install_f16">创建数据库</td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td height="55" align="center" background="/Admin/images/install/install_cof.gif"><table width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="36"><img src="/Admin/images/install/no4.gif" width="24" height="25" /></td>
              <td align="left" class="install_f16">设置管理员</td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td height="56" align="center" background="/Admin/images/install/install_coe.gif"><table width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="36"><img src="/Admin/images/install/no5.gif" width="24" height="25" /></td>
              <td align="left" class="install_f16">安装完毕</td>
            </tr>
          </table></td>
        </tr>
      </table></td>
      <td width="550" align="center" valign="top" background="/Admin/images/install/install_coc.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="/Admin/images/install/install_cob.gif" width="550" height="8" /></td>
        </tr>
      </table>
        <table width="90%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:10px; margin-top:5px">
          <tr>
            <td height="30" align="left" class="install_f14">创建数据库</td>
          </tr>
        </table>
        <table width="90%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="280" valign="top" class="install_bor">
            <table width="98%" border="0" align="center" cellpadding="5" cellspacing="0" class="install_bort">
              <tr>
                <td height="38" align="left"><span class="install_f12"><img src="/Admin/images/install/waring.gif" width="11" height="13" style="vertical-align:middle;" /> “自动创建数据库”选项适用于独立主机或本地安装；选择自动创建数据库时，如果指定的数据库不存在，系统将自动创建；虚主机的用户安装时，请不要勾选“自动创建数据库”</span></td>
              </tr>
            </table>
            <table width="100%">
                <tr>
                    <td style="width:120px" align="right">数据源：</td>
                    <td style="white-space:normal;" align="left"><asp:TextBox ID="PPFOR_source" runat="server" Text="(local)" MaxLength="128" Width="200px"></asp:TextBox>&nbsp;<span style=" cursor:pointer; color:Blue" onclick="javascript:document.getElementById('<%=PPFOR_source.ClientID %>').value='(local)';">本地默认数据源</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="PPFOR_source" runat="server" Display="Dynamic" SetFocusOnError="true"><br />数据源不能为空</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">数据库名称：</td>
                    <td style="white-space:normal;" align="left"><asp:TextBox ID="PPFOR_databaseName" runat="server" Text="ppfor" MaxLength="128" Width="200px"></asp:TextBox>&nbsp;<asp:CheckBox ID="PPFOR_autoCreate" runat="server"  Text="自动创建数据库" Checked="false"/>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="PPFOR_databaseName" ValidationExpression='^[^*|/\\:"?<>]{1,128}$' Display="Dynamic" SetFocusOnError="true"><br />数据库名称不能包含以下字符：*|/\:"?<></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="PPFOR_databaseName" runat="server" Display="Dynamic" SetFocusOnError="true"><br />数据库名称不能为空</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">表名前缀：</td>
                    <td style="white-space:normal;" align="left"><asp:TextBox ID="PPFOR_namePrefix" runat="server" Text="PPFOR_TZB_" MaxLength="20" Width="200px"></asp:TextBox>   
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ValidationExpression="^[a-zA-Z0-9_]{0,20}$" ControlToValidate="PPFOR_namePrefix" Display="Dynamic" SetFocusOnError="true"><br />表名前缀只能包含字母、数字与下划线，并且长度在20个字符之内</asp:RegularExpressionValidator>               
                    </td>
                </tr>
                <tr>
                    <td align="right">数据库登录账号：</td>
                    <td style="white-space:normal;" align="left"><asp:TextBox ID="PPFOR_userName" runat="server" Text="" MaxLength="128" Width="200px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="PPFOR_userName" runat="server" Display="Dynamic" SetFocusOnError="true"><br />数据库登录账号不能为空</asp:RequiredFieldValidator>
                    </td>
                </tr>
                 <tr>
                    <td align="right">数据库登录密码：</td>
                    <td style="white-space:normal;" align="left"><asp:TextBox ID="PPFOR_userPassword" runat="server" Text="" TextMode="Password" MaxLength="128" Width="200px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="PPFOR_userPassword" runat="server" Display="Dynamic" SetFocusOnError="true"><br />数据库登录密码不能为空</asp:RequiredFieldValidator>
                    </td>
                </tr>                  
                <tr>
                    <td>&nbsp;</td>
                    <td align="left">      
                        <input type="button" value="上一步" onclick="history.go(-1);" class="blueinput"/>                                
                        <asp:Button CssClass="blueinput" ID="PPFOR_createDatabase" runat="server" Text="下一步" OnClick="PPFOR_createDatabaseClick" />
                        <input type="reset" value="重置" class="blueinput" />
                        <div id="displayWaitingMsg" style="display:none; margin-top:5px;">                               
                            <label style="color:Red;">正在创建数据库，请稍后...</label>
                        </div>
                     </td>
                </tr>                   
                </table>  
            </td>
          </tr>
        </table>
       </td>
    </tr>
    <tr>
      <td colspan="2"><img src="/Admin/images/install/install_coa.gif" width="738" height="7" /></td>
    </tr>
  </table>
</center>
</form>
</body>
</html>