<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
  CodeBehind="UserPurview.aspx.cs" Inherits="PowerEasy.Module.General.WebSite.Admin.User.UserPurview"
  Title="会员权限设置" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphNavigation" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphContent" runat="server">
  <base target="_self" />
  <table width="100%" border="0" cellpadding="5" cellspacing="1" class="border">
    <tr class='tdbg' id="PnlPublicInfo" runat="server" visible="false">
      <td class='tdbgleft'>
        <strong>发布权限：</strong>
      </td>
      <td>
        <asp:CheckBox ID="ChkSetEditor" runat="server" /><pe:ExtendedLabel HtmlEncode="false"
          ID="LblSetEditor" runat="server" Text="发表信息时HTML编辑器为高级模式（默认为简洁模式）<br />" />
        <asp:Label ID="LblMaxPublicInfoOneDay" runat="server" Text="每天最多发布" /><asp:TextBox
          ID="TxtMaxPublicInfoOneDay" MaxLength="5" Columns="5" runat="server" Text="0" /><pe:ExtendedLabel
            HtmlEncode="false" ID="LblMaxPublicInfoOneDay2" runat="server" Text="条信息（不想限制请设置为<b>0</b>）。<br /> " />
        <asp:RangeValidator ID="VallgMaxPublicInfoOneDay" ControlToValidate="TxtMaxPublicInfoOneDay"
          runat="server" ErrorMessage="范围在0—10000之间" Type="Integer" Display="Dynamic" MaximumValue="10000"
          MinimumValue="0"></asp:RangeValidator>
        <asp:Label ID="LblGetExp" runat="server" Text="发布信息时获取积分为栏目设置的" /><asp:TextBox ID="TxtGetExp"
          MaxLength="5" Columns="5" runat="server" /><pe:ExtendedLabel HtmlEncode="false" ID="LblGetExp2"
            runat="server" Text="倍<br />" />
        <asp:RangeValidator ID="ValgGetExp" ControlToValidate="TxtGetExp" runat="server"
          ErrorMessage="范围在0—100之间" Type="Double" Display="Dynamic" MaximumValue="100" MinimumValue="0"></asp:RangeValidator>
        <asp:Label ID="LblGetPoint" runat="server" Text="发布信息时获取点券为栏目设置的" /><asp:TextBox
          ID="TxtGetPoint" MaxLength="5" Columns="5" runat="server" /><pe:ExtendedLabel HtmlEncode="false"
            ID="LblGetPoint2" runat="server" Text="倍<br />" />
        <asp:RangeValidator ID="ValgGetPoint" ControlToValidate="TxtGetPoint" runat="server"
          ErrorMessage="范围在0—100之间" Type="Double" Display="Dynamic" MaximumValue="100" MinimumValue="0"></asp:RangeValidator>
        <asp:CheckBox ID="ChkIsXssFilter" runat="server" />
        <pe:ExtendedLabel HtmlEncode="false" ID="LblIsXssFilter" runat="server" Text="会员发表信息时是否启用XSS（跨站攻击）<br />（如果启用，可能导致会员添加的图片/Flash/视频等不能正常显示，如果禁用，则有跨站攻击漏洞。<br />如果您信任此用户组的用户，可以禁用此功能，否则建议您启用此功能）" />
      </td>
    </tr>
    <tr class='tdbg' id="PnlComment" runat="server" visible="false">
      <td class='tdbgleft'>
        <strong>评论权限：</strong>
      </td>
      <td>
        <asp:CheckBox ID="ChkEnableComment" runat="server" />在禁止发表评论的栏目里仍然可发表评论<br />
        <asp:CheckBox ID="ChkCommentNeedCheck" runat="server" />在评论需要审核的栏目里发表评论不需要审核
      </td>
    </tr>
    <asp:PlaceHolder ID="PnlMessage" runat="server" Visible="false">
      <tr class='tdbg'>
        <td class='tdbgleft'>
          <strong>短消息权限：</strong>
        </td>
        <td>
          每次最多可同时向
          <asp:TextBox ID="TxtMessageMaxSendToUsers" runat="server" MaxLength="6" Columns="6"
            Text="2000" />
          人发送短消息（如果为0，则不允许发送短消息）
          <asp:RangeValidator ID="ValgTxtMaxSendToUsers" ControlToValidate="TxtMessageMaxSendToUsers"
            runat="server" ErrorMessage="范围在0—10000之间" Type="Integer" Display="Dynamic" MaximumValue="10000"
            MinimumValue="0"></asp:RangeValidator>
        </td>
      </tr>
      <tr class='tdbg'>
        <td class='tdbgleft'>
          <strong>短消息附件上传权限：</strong>
        </td>
        <td>
          <asp:CheckBox ID="ChkIsMessageAllowPostAttach" runat="server" />允许在短消息中上传附件<br />
          最大允许上传
          <asp:TextBox ID="TxtMessageAttachSize" MaxLength="6" Columns="6" runat="server"
            Text="5000" />
          K 的文件（当所设置值大于字段的设置时，以字段设置为准。）
        </td>
      </tr>
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="PnlEmail" runat="server" Visible="false">
      <tr class='tdbg'>
        <td class='tdbgleft'>
          <strong>Email权限：</strong>
        </td>
        <td>
          每次最多可同时向
          <asp:TextBox ID="TxtEmailMaxSendToUsers" runat="server" MaxLength="6" Columns="6"
            Text="2000" />
          人发送Email（如果为0，则不允许发送Email）
          <asp:RangeValidator ID="ValgTxtEmailMaxSendToUsers" ControlToValidate="TxtEmailMaxSendToUsers"
            runat="server" ErrorMessage="范围在0—10000之间" Type="Integer" Display="Dynamic" MaximumValue="10000"
            MinimumValue="0"></asp:RangeValidator>
        </td>
      </tr>
      <tr class='tdbg'>
        <td class='tdbgleft'>
          <strong>Email附件上传权限：</strong>
        </td>
        <td>
          <asp:CheckBox ID="ChkEmailAllowPostAttach" runat="server" />允许在Email中上传附件<br />
          最大允许上传
          <asp:TextBox ID="TxtEmailAttachSize" MaxLength="6" Columns="6" runat="server"
            Text="5000" />
          K 的文件（当所设置值大于字段的设置时，以字段设置为准。）
        </td>
      </tr>
    </asp:PlaceHolder>
    <tr class='tdbg' id="PnlFavorite" runat="server" visible="false">
      <td class='tdbgleft'>
        <strong>收藏夹权限：</strong>
      </td>
      <td>
        会员收藏夹内最多可收录<asp:TextBox ID="TxtMaxSaveInfos" MaxLength="6" Columns="6" runat="server"
          Text="5000" />
        条信息（如果为0，则没有收藏权限，包括商品收藏权限）
        <asp:RangeValidator ID="ValgTxtMaxSaveInfos" ControlToValidate="TxtMaxSaveInfos"
          runat="server" ErrorMessage="范围在0—10000之间" Type="Integer" Display="Dynamic" MaximumValue="10000"
          MinimumValue="0"></asp:RangeValidator>
      </td>
    </tr>
    <tr class='tdbg' id="PnlShop" runat="server" visible="false">
      <td class='tdbgleft'>
        <strong>商店权限：</strong>
      </td>
      <td>
        <asp:CheckBox ID="ChkSetEnableSale" runat="server" />
        会员中心添加商品时候，可以指定为立即销售<br />
      </td>
    </tr>
    <tr class='tdbg' id="PnlCharge" runat="server" visible="false">
      <td class='tdbgleft'>
        <strong>计费方式：</strong>
      </td>
      <td>
        <asp:RadioButton ID="RadChargeByPoint" GroupName="RadCharge" runat="server" Checked="true" />只判断<pe:ShowPointName
          ID="ShowPointName" runat="server"></pe:ShowPointName>：有<pe:ShowPointName ID="ShowPointName1"
            runat="server"></pe:ShowPointName>时，即使有效期已经到期，仍可以查看收费内容；<pe:ShowPointName ID="ShowPointName4"
              runat="server"></pe:ShowPointName>用完后，即使有效期没有到期，也不能查看收费内容。<br />
        <asp:RadioButton ID="RadChargeByValidDate" GroupName="RadCharge" runat="server" />只判断有效期：只要在有效期内，<pe:ShowPointName
          ID="ShowPointName2" runat="server"></pe:ShowPointName>用完后仍可以查看收费内容；过期后，即使会员有<pe:ShowPointName
            ID="ShowPointName5" runat="server"></pe:ShowPointName>也不能查看收费内容。<br />
        <asp:RadioButton ID="RadChargeByPointOrValidDate" GroupName="RadCharge" runat="server" />同时判断<pe:ShowPointName
          ID="ShowPointName3" runat="server"></pe:ShowPointName>和有效期：<pe:ShowPointName ID="ShowPointName6"
            runat="server"></pe:ShowPointName>用完或有效期到期后，就不可查看收费内容。<br />
        <asp:RadioButton ID="RadChargeByPointAndValidDate" GroupName="RadCharge" runat="server" />同时判断<pe:ShowPointName
          ID="ShowPointName7" runat="server"></pe:ShowPointName>和有效期：<pe:ShowPointName ID="ShowPointName8"
            runat="server"></pe:ShowPointName>用完并且有效期到期后，才不能查看收费内容。
      </td>
    </tr>
    <tr class='tdbg' id="PnlMinusPoint" runat="server" visible="false">
      <td class='tdbgleft'>
        <strong>扣<pe:ShowPointName ID="ShowPointName9" runat="server"></pe:ShowPointName>方式：</strong>
      </td>
      <td>
        <asp:RadioButton ID="RadNotMinusPointNotWriteToLog" GroupName="RadPoint" runat="server" />有效期内，查看收费内容不扣<pe:ShowPointName
          ID="ShowPointName10" runat="server"></pe:ShowPointName>，也不做记录。<br />
        <asp:RadioButton ID="RadWriteToLog" GroupName="RadPoint" runat="server" />有效期内，查看收费内容不扣<pe:ShowPointName
          ID="ShowPointName11" runat="server"></pe:ShowPointName>，但做记录。<br />
        <asp:RadioButton ID="RadMinusPoint" GroupName="RadPoint" runat="server" Checked="true" />有效期内，查看收费内容也扣<pe:ShowPointName
          ID="ShowPointName12" runat="server"></pe:ShowPointName>。<br />
        有效期内，总共可以看<asp:TextBox ID="TxtTotalViewInfoNumber" MaxLength="5" Columns="5" runat="server"
          Text="50" />条收费信息（如果为0，则不限制）<br />
        有效期内，每天最多可以看<asp:TextBox ID="TxtViewInfoNumberOneDay" MaxLength="5" Columns="5" runat="server"
          Text="1" />条收费信息（如果为0，则不限制）
      </td>
    </tr>
    <tr class='tdbg' id="PnlUpload" runat="server" visible="false">
      <td class='tdbgleft'>
        <strong>上传权限：</strong>
      </td>
      <td>
        <asp:CheckBox ID="ChkEnableUpload" runat="server" />允许在开放上传的模型中上传文件<br />
        最大允许上传<asp:TextBox ID="TxtFileUploadSize" MaxLength="6" Columns="6" runat="server"
          Text="5000" />
        K的文件（当所设置值大于字段的设置时，以字段设置为准。）
      </td>
    </tr>
    <tr class='tdbg' id="PnlHeadUpload" runat="server" visible="false">
      <td class='tdbgleft'>
        <strong>上传头像：</strong>
      </td>
      <td>
        <asp:CheckBox ID="ChkHeadEnableUpload" runat="server" />允许会员上传自定义头像<br />
        需要<asp:TextBox ID="TxtUploadCondition" MaxLength="6" Columns="6" runat="server" Text="2000" /><asp:Label
          ID="LblPointName" runat="server"></asp:Label>
      </td>
    </tr>
  </table>
  <br />
  <center>
    <br />
    <asp:Button ID="BtnSubmit" runat="server" Text="保存返回权限设置" OnClick="BtnSubmit_Click" />&nbsp;&nbsp;
    <input type="button" value="取消返回权限设置" onclick="parent.PE_FrameTab.CloseCurrentTab();" />
  </center>
</asp:Content>
