<%@ Page Language="C#" Inherits="UserCenter.BackgroundPages.BackgroundUserConfigIntegration" %>
<%@ Register TagPrefix="bairong" Namespace="BaiRong.Controls" Assembly="BaiRong.Controls" %>
<%@ Register TagPrefix="user" Namespace="UserCenter.Controls" Assembly="UserCenter.Pages" %>
<HTML>
<HEAD>
<!--#include file="../inc/html_head.inc"-->
<user:custom type="style" runat="server"></user:custom>
<bairong:Code type="Prototype" runat="server" />
<bairong:Code type="Scriptaculous" runat="server" />
<meta http-equiv="content-type" content="text/html;charset=gb2312">
</HEAD><body>
<form id="myForm" runat="server">
  <bairong:Message runat="server"></bairong:Message>
  <DIV class="column">
    <div class="columntitle">第三方用户集成</div>
    <table width="95%" align="center" cellpadding="3" cellspacing="3">
      <tr>
        <td align="left"><bairong:help HelpText="选择是否是否集成第三方用户" Text="是否集成第三方用户：" runat="server" ></bairong:help></td>
        <td width="80%" align="left"><asp:RadioButtonList ID="UserIntegrationType" runat="server" RepeatDirection="Horizontal" AutoPostBack="true" OnSelectedIndexChanged="UserIntegrationType_SelectedIndexChanged"></asp:RadioButtonList>
        </td>
      </tr>
      <asp:PlaceHolder ID="phDiscuzNT" runat="server" Visible="false">
        <tr>
          <td align="left" colspan="2" class="tips">在论坛后台中进入“通行证设置”界面，添加“整合程序设置”，获取DisuczNT生成的API Key和密钥并添加到下面。
          </td>
        </tr>
        <tr>
          <td align="left"><bairong:help HelpText="设置论坛访问URL" Text="论坛访问URL：" runat="server" ></bairong:help>
          </td>
          <td width="80%" align="left"><asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" Columns="60" id="DiscuzNTUrl" runat="server" />
            <asp:RequiredFieldValidator ControlToValidate="DiscuzNTUrl" ErrorMessage="*" Display="Dynamic" runat="server" />
            <asp:RegularExpressionValidator runat="server" ControlToValidate="DiscuzNTUrl"
                                        ValidationExpression="[^']+" ErrorMessage="*" Display="Dynamic" />
          </td>
        </tr>
        <tr>
          <td align="left"><bairong:help HelpText="API Key" Text="API Key：" runat="server" ></bairong:help>
          </td>
          <td width="80%" align="left"><asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" Columns="60" id="DiscuzNTAPIKey" runat="server" />
            <asp:RequiredFieldValidator ControlToValidate="DiscuzNTAPIKey" ErrorMessage="*" Display="Dynamic" runat="server" />
            <asp:RegularExpressionValidator runat="server" ControlToValidate="DiscuzNTAPIKey"
                                        ValidationExpression="[^']+" ErrorMessage="*" Display="Dynamic" />
          </td>
        </tr>
        <tr>
          <td align="left"><bairong:help HelpText="密钥" Text="密钥：" runat="server" ></bairong:help>
          </td>
          <td width="80%" align="left"><asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" Columns="60" id="DiscuzNTSecret" runat="server" />
            <asp:RequiredFieldValidator ControlToValidate="DiscuzNTSecret" ErrorMessage="*" Display="Dynamic" runat="server" />
            <asp:RegularExpressionValidator runat="server" ControlToValidate="DiscuzNTSecret"
                                        ValidationExpression="[^']+" ErrorMessage="*" Display="Dynamic" />
          </td>
        </tr>
        <tr>
          <td align="left" colspan="2" class="tips">在此添加DisuczNT论坛数据库连接字符串(SQL SERVER)
          </td>
        </tr>
        <tr>
          <td align="left"><bairong:help HelpText="数据库所在的IP地址或者服务器名" Text="数据库IP地址或者服务器名：" runat="server" ></bairong:help></td>
          <td align="left"><asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" id="DatabaseServer" runat="server" Columns="40" MaxLength="200" value="(local)"></asp:textbox>
          <asp:RequiredFieldValidator ControlToValidate="DatabaseServer" ErrorMessage="*" Display="Dynamic" runat="server" />
          </td>
        </tr>
        <TR>
          <TD align="left"><bairong:help HelpText="登录数据库的账号" Text="数据库登录账号：" runat="server" ></bairong:help></TD>
          <TD align="left"><asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" id="DatabaseUserName" style="width:150px;" runat="server"></asp:textbox>
          <asp:RequiredFieldValidator ControlToValidate="DatabaseUserName" ErrorMessage="*" Display="Dynamic" runat="server" /></TD>
        </TR>
        <TR>
          <TD align="left"><bairong:help HelpText="登录数据库的密码" Text="数据库登录密码：" runat="server" ></bairong:help></TD>
          <TD align="left"><asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" id="DatabasePassword" style="width:150px;" runat="server" TextMode="Password"></asp:textbox>
          <asp:RequiredFieldValidator ControlToValidate="DatabasePassword" ErrorMessage="*" Display="Dynamic" runat="server" />
          </TD>
        </TR>
        <TR>
          <TD align="left"><bairong:help HelpText="数据库的库名" Text="数据库库名称：" runat="server" ></bairong:help></TD>
          <TD align="left"><asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" id="DatabaseName" style="width:150px;" runat="server"></asp:textbox>
          <asp:RequiredFieldValidator ControlToValidate="DatabaseName" ErrorMessage="*" Display="Dynamic" runat="server" /></TD>
        </TR>
      </asp:PlaceHolder>
      <tr>
        <td colspan="2" align="center"><asp:Button class="button" id="Submit" text="保 存" onclick="Submit_OnClick" runat="server" />
        </td>
      </tr>
    </table>
  </div>
</form>
</body>
</HTML>
