⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 view-membersettings.ascx

📁 cnForums是功能强大的论坛。开发语言c#,三层结构。模块设计很值得学习
💻 ASCX
字号:
<%@ Control %>
<%@ Register TagPrefix="Forums" Namespace="AspNetForums.Controls" Assembly="AspNetForums.Controls" %>

<span class="forumName"><%= AspNetForums.Components.ResourceManager.GetString("Admin_Member_Configuration") %></span>
<br>
<span class="forumThread"><%= AspNetForums.Components.ResourceManager.GetString("Admin_Member_Description") %></span>
<table class="tableBorder" cellPadding="4" cellSpacing="1">
		<tr>
			<td class="column" colspan="2">Manage by Domain</td>
		</tr>
		<tr>
			<td class="f" width="100%">
				<b>Application</b>
				<br>
				Choose the application you wish to administer.
			</td>
			<td class="fh" width="400" nowrap>
				<forums:DomainDropDownList id="Domain" runat="server" /> <asp:Button id="SelectDomain" runat="server" Text=" Select "/>
			</td>
		</tr>
</table>

<p>

 <table class="tableBorder" cellPadding="4" cellSpacing="1" width="100%">
    <tr>
      <td class="column" colspan="2">User Registration</td>
    </tr>

    <tr>
      <td class="f">
        <b>Allow Login</b>
        <br>
        When disabled, only administrators can login to the site.
      </td>
      <td class="fh">
        <asp:RadioButtonList CssClass="txt1" id="AllowLogin" RepeatColumns="2" runat="server">
          <asp:listitem Text="Yes" Value="True" />
          <asp:listitem Text="No" Value="False" />
        </asp:RadioButtonList>
      </td>
    </tr>

    <tr>
      <td class="f">
        <b>Allow New User Registration</b>
        <br>
        When disabled, new users cannot register. 
      </td>
      <td class="fh">
        <asp:RadioButtonList CssClass="txt1" id="AllowNewUserRegistration" RepeatColumns="2" runat="server">
          <asp:listitem Text="Yes" Value="True" />
          <asp:listitem Text="No" Value="False" />
        </asp:RadioButtonList>
      </td>
    </tr>

    <tr>
      <td class="f">
        <b>New user Moderation Level</b>
        <br>
        New users are moderated by default requiring a moderator to approve posts.
      </td>
      <td class="fh">
        <forums:ModerationLevelDropDownList CssClass="txt1" id="NewUserModerationLevel" runat="server" />
      </td>
    </tr>

    <tr>
      <td class="f" width="100%">
        <b>Username minimum length<font color="red"> (NOT YET ENABLED)</font></b>
      </td>
      <td class="fh" width="400" nowrap>
        <asp:TextBox id="UsernameMinLength" runat="server" MaxLength="4" />
      </td>
    </tr>

    <tr>
      <td class="f">
        <b>Username maximum length<font color="red"> (NOT YET ENABLED)</font></b>
      </td>
      <td class="fh">
        <asp:TextBox id="UsernameMaxLength" runat="server" MaxLength="4" />
      </td>
    </tr>

    <tr>
      <td class="f">
        <b>Auto-Register for Windows Authentication<font color="red"> (NOT ENABLED IN ALPHA)</font></b>
        <br>
        When enabled the board will auto-register users who authenticate via Windows authentication (Primarily for Intranet use of the fourms).
      </td>
      <td class="fh">
        <asp:RadioButtonList CssClass="txt1" id="AutoRegisterForWindowsAuthentication" RepeatColumns="2" runat="server">
          <asp:listitem Text="Yes" Value="True" />
          <asp:listitem Text="No" Value="False" />
        </asp:RadioButtonList>
      </td>
    </tr>

    <tr>
      <td class="f" width="100%">
        <b>Account Activation</b>
        <br>
        Controls how users obtain access to the forums. Automatic allows users to create their own accounts. Email will email a password to the new user. Admin approval requires the administrator to approve new users.
      </td>
      <td class="fh" width="400" nowrap>
        <asp:RadioButtonList CssClass="txt1" id="AccountActivation" RepeatColumns="3" runat="server">
          <asp:listitem Text="Automatic" Value="Automatic" />
          <asp:listitem Text="Email" Value="Email" />
          <asp:listitem Text="Admin Approval" Value="AdminApproval" />
        </asp:RadioButtonList>
      </td>
    </tr>
    <tr>
      <td class="f">
        <b>Password Recovery</b>
        <br>
        Controls how users recover forgotten passwords.
      </td>
      <td class="fh">
        <asp:RadioButtonList CssClass="txt1" id="PasswordRecovery" RepeatColumns="3" runat="server">
          <asp:listitem Text="Email" Value="Email" />
          <asp:listitem Text="Question & Answer" Value="QuestionAnswer" />
          <asp:listitem Text="Reset" Value="Reset" />
        </asp:RadioButtonList>
      </td>
    </tr>

    <tr>
      <td class="f">
        <b>Password Storage</b>
        <br>
        Determines how passwords are stored in the database (MD5Hash is the most secure).
      </td>
      <td class="fh">
        <asp:DropDownList CssClass="txt1" id="PasswordFormat" runat="server">
          <asp:listitem Text="Clear Text" Value="ClearText" />
          <asp:listitem Text="MD5 Hash" Value="MD5Hash" />
          <asp:listitem Text="Sha1 Hash" Value="Sha1Hash" />
          <asp:listitem Text="Encyrpted" Value="Encyrpted" />
        </asp:DropDownList>
      </td>
    </tr>

    <tr>
      <td class="f">
        <b>Use COPPA Registration<font color="red"> (NOT ENABLED IN ALPHA)</font></b>
        <br>
        Use the COPPA registration system to comply with COPPA laws requiring children under the age of 13 to get parental consent before they can post (<a target="_blank" href="http://www.ftc.gov/opa/1999/9910/childfinal.htm">http://www.ftc.gov/opa/1999/9910/childfinal.htm</a>.
      </td>
      <td class="fh">
        <asp:RadioButtonList CssClass="txt1" id="EnableCOPPA" RepeatColumns="2" runat="server">
          <asp:listitem Text="Yes" Value="True" />
          <asp:listitem Text="No" Value="False" />
        </asp:RadioButtonList>
      </td>
    </tr>

 </table>

 <p>

 <table class="tableBorder" cellPadding="4" cellSpacing="1" width="100%">
    <tr>
      <td class="column" colspan="2">User Profile</td>
    </tr>
    <tr>
      <td class="f">
        <b>Allow Username changes</b>
        <br>
        Allows users to change usernames. It's <u>not recommended</u> to enable this feature, since a username is a user's handle on the board. The administrator can change any username.
      </td>
      <td class="fh">
        <asp:RadioButtonList CssClass="txt1" id="EnableUsernameChange" RepeatColumns="2" runat="server">
          <asp:listitem Text="Yes" Value="True" />
          <asp:listitem Text="No" Value="False" />
        </asp:RadioButtonList>
      </td>
    </tr>

    <tr>
      <td class="f" width="100%">
        <b>Allow Signatures</b>
        <br>
        Allow user to edit a message that can appear at the bottom of all their posts. 
      </td>
      <td class="fh" width="400" nowrap>
        <asp:RadioButtonList CssClass="txt1" id="AllowSignatures" RepeatColumns="2" runat="server">
          <asp:listitem Text="Yes" Value="True" />
          <asp:listitem Text="No" Value="False" />
        </asp:RadioButtonList>
      </td>
    </tr>

    <tr>
      <td class="f" width="100%">
        <b>Enable Signatures</b>
        <br>
        When enabled a signatures will be added to posts.
      </td>
      <td class="fh" width="400" nowrap>
        <asp:RadioButtonList CssClass="txt1" id="EnableSignatures" RepeatColumns="2" runat="server">
          <asp:listitem Text="Yes" Value="True" />
          <asp:listitem Text="No" Value="False" />
        </asp:RadioButtonList>
      </td>
    </tr>

    <tr>
      <td class="f">
        <b>Signature maximum length</b>
      </td>
      <td class="fh">
        <asp:TextBox id="SignatureMaxLength" runat="server" MaxLength="4" />
      </td>
    </tr>

    <tr>
      <td class="f" width="100%">
        <b>Allow Gender</b>
        <br>
        When enabled (and specified by the user) the user's gender is displayed. 
      </td>
      <td class="fh" width="400" nowrap>
        <asp:RadioButtonList CssClass="txt1" id="AllowGender" RepeatColumns="2" runat="server">
          <asp:listitem Text="Yes" Value="True" />
          <asp:listitem Text="No" Value="False" />
        </asp:RadioButtonList>
      </td>
    </tr>

    <tr>
      <td class="f">
        <b>Enable User Theme Selection<font color="red"> (NOT ENABLED IN ALPHA)</font></b>
        <br>
        If various themes are available this option allows the user to select a theme for his/her display preferences.
      </td>
      <td class="fh">
        <asp:RadioButtonList CssClass="txt1" id="AllowUserToSelectTheme" RepeatColumns="2" runat="server">
          <asp:listitem Text="Yes" Value="True" />
          <asp:listitem Text="No" Value="False" />
        </asp:RadioButtonList>
      </td>
    </tr>

    <tr>
      <td class="f">
        <b>Enable Referrer System<font color="red"> (NOT ENABLED IN ALPHA)</font></b>
        <br>
        Provides users with a URL that when clicked on will increment a users referrer credit for new users that join the forums.
      </td>
      <td class="fh">
        <asp:RadioButtonList CssClass="txt1" id="EnableUserReferrer" RepeatColumns="2" runat="server">
          <asp:listitem Text="Yes" Value="True" />
          <asp:listitem Text="No" Value="False" />
        </asp:RadioButtonList>
      </td>
    </tr>
  </table>

<P>

  <table class="tableBorder" cellPadding="4" cellSpacing="1" width="100%">
    <tr>
      <td class="column" colspan="2">User Avatars</td>
    </tr>
    <tr>
      <td class="f" width="100%">
        <b>Enable Avatars</b>
        <br>
        When enabled avatars are used.
      </td>
      <td class="fh" width="400" nowrap>
        <asp:RadioButtonList CssClass="txt1" id="EnableAvatars" RepeatColumns="2" runat="server">
          <asp:listitem Text="Yes" Value="True" />
          <asp:listitem Text="No" Value="False" />
        </asp:RadioButtonList>
      </td>
    </tr>
    <tr>
      <td class="f">
        <b>Enable Remote Avatars</b>
        <br>
        Allows avatars to be images hosted at another website.
      </td>
      <td class="fh">
        <asp:RadioButtonList CssClass="txt1" id="EnableRemoteAvatars" RepeatColumns="2" runat="server">
          <asp:listitem Text="Yes" Value="True" />
          <asp:listitem Text="No" Value="False" />
        </asp:RadioButtonList>
      </td>
    </tr>
    <tr>
      <td class="f">
        <b>Avatar Dimensions</b>
        <br>
        Maximum dimensions used when displaying avatars.
      </td>
      <td class="fh">
        <asp:TextBox id="AvatarHeight" columns="1" MaxLength="3" runat="server" />
        x
        <asp:TextBox id="AvatarWidth" columns="1" MaxLength="3" runat="server" />
      </td>
    </tr>
  </table>

  <table width="100%">
    <tr>
      <td align="right" class="txt3">
        <asp:button runat="server" Text="&nbsp; Save &nbsp;" ID="Save" />
        <asp:button runat="server" Text="&nbsp; Reset &nbsp;" ID="Reset" />
      </td>
    </tr>
  </table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -