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

SCSI/ASPI

开发平台:

Others

  1. <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="usergrouppowersetting.ascx.cs" Inherits="Discuz.Web.Admin.usergrouppowersetting" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <script type="text/javascript">
  4.     function bonusPriceSet(checked)
  5.     {
  6.         document.getElementById("minbonusprice").disabled = !checked;
  7.         document.getElementById("maxbonusprice").disabled = !checked;
  8.     }
  9.     function validatebonusprice()
  10.     {
  11.         if(document.getElementById("<%=usergroupright.ClientID%>_16").checked)
  12.         {
  13.             var min = document.getElementById("minbonusprice").value;
  14.             var max = document.getElementById("maxbonusprice").value;
  15.             if(!isNumber(min))
  16.             {
  17.                 resetPage();
  18.                 alert("最低悬赏价格非数字");
  19.                 document.getElementById("minbonusprice").focus();
  20.                 document.getElementById("minbonusprice").value = "";
  21.                 return false;
  22.             }
  23.             if(!isNumber(max))
  24.             {
  25.                 resetPage();
  26.                 alert("最高悬赏价格非数字");
  27.                 document.getElementById("maxbonusprice").focus();
  28.                 document.getElementById("maxbonusprice").value = "";
  29.                 return false;
  30.             }
  31.             if(parseInt(min) < 1)
  32.             {
  33.                 resetPage();
  34.                 alert("最低悬赏价格必须大于0");
  35.                 document.getElementById("minbonusprice").focus();
  36.                 document.getElementById("minbonusprice").value = "";
  37.                 return false;
  38.             }
  39.             if(parseInt(max) > 32767)
  40.             {
  41.                 resetPage();
  42.                 alert("最高悬赏价格必须小于32767");
  43.                 document.getElementById("maxbonusprice").focus();
  44.                 document.getElementById("maxbonusprice").value = "";
  45.                 return false;
  46.             }
  47.             if (parseInt(max) <= parseInt(min))
  48.             {
  49.                 resetPage();
  50.                 alert("最高悬赏价格必须高于最低悬赏价格");
  51.                 document.getElementById("minbonusprice").focus();
  52.                 return;
  53.             }
  54.         }
  55.         else
  56.         {
  57.             document.getElementById("minbonusprice").value = 0;
  58.             document.getElementById("maxbonusprice").value = 0;
  59.         }
  60.         return true;
  61.     }
  62. </script>
  63. <table width="100%">
  64. <tr><td class="item_title" colspan="2">操作理由短消息通知作者</td></tr>
  65. <tr>
  66. <td class="vtop rowform">
  67. <cc1:RadioButtonList ID="reasonpm" runat="server" RepeatColumns="1" Width="96%" Font-Size="12px">
  68.     <asp:ListItem Value="0" Selected>不强制</asp:ListItem>
  69.     <asp:ListItem Value="1">强制输入理由</asp:ListItem>
  70.     <asp:ListItem Value="2">强制通知作者</asp:ListItem>
  71.     <asp:ListItem Value="3">强制输入理由和通知作者</asp:ListItem>
  72. </cc1:RadioButtonList>
  73. </td>
  74. <td class="vtop"></td>
  75. </tr>
  76. <tr><td class="item_title" colspan="2">是否允许搜索</td></tr>
  77. <tr>
  78. <td class="vtop rowform">
  79. <cc1:RadioButtonList ID="allowsearch" runat="server" RepeatColumns="1" Width="96%" Font-Size="12px">
  80.     <asp:ListItem Value="0" Selected>不允许</asp:ListItem>
  81.     <asp:ListItem Value="1">允许搜索标题或全文</asp:ListItem>
  82.     <asp:ListItem Value="2">仅允许搜索标题</asp:ListItem>
  83. </cc1:RadioButtonList>
  84. </td>
  85. <td class="vtop"></td>
  86. </tr>
  87. <tr><td class="item_title" colspan="2">其它权限</td></tr>
  88. <tr>
  89. <td class="vtop" colspan="2">
  90. <cc1:CheckBoxList ID="usergroupright" runat="server" RepeatColumns="3" Font-Size="12px">
  91.     <asp:ListItem Value="allowvisit">是否允许访问论坛</asp:ListItem>
  92.     <asp:ListItem Value="allowpost">是否允许发帖</asp:ListItem>
  93.     <asp:ListItem Value="allowreply">是否允许回复</asp:ListItem>
  94.     <asp:ListItem Value="allowpostpoll">是否允许发起投票</asp:ListItem>
  95.     <asp:ListItem Value="allowvote">是否允许参与投票</asp:ListItem>
  96.     <asp:ListItem Value="allowpostattach">是否发布附件</asp:ListItem>
  97.     <asp:ListItem Value="allowgetattach">是否允许下载附件</asp:ListItem>
  98.     <asp:ListItem Value="allowsetreadperm">是否允许设置主题阅读积分权限</asp:ListItem>
  99.     <asp:ListItem Value="allowsetattachperm">是否允许设置附件阅读积分限制</asp:ListItem>
  100.     <asp:ListItem Value="allowhidecode">是否允许使用hide代码</asp:ListItem>
  101.     <asp:ListItem Value="allowcusbbcode">是否允许使用Discuz!NT代码</asp:ListItem>
  102.     <asp:ListItem Value="allowsigbbcode">签名是否支持Discuz!NT代码</asp:ListItem>
  103.     <asp:ListItem Value="allowsigimgcode">签名是否支持图片代码</asp:ListItem>
  104.     <asp:ListItem Value="allowviewpro">是否允许查看用户资料</asp:ListItem>
  105.     <asp:ListItem Value="disableperiodctrl">是否不受时间段限制</asp:ListItem>
  106.     <asp:ListItem Value="allowdebate">是否允许辩论</asp:ListItem>
  107.     <asp:ListItem Value="allowbonus">是否允许悬赏</asp:ListItem>
  108.     <asp:ListItem Value="allowviewstats">是否允许查看统计数据</asp:ListItem>
  109.     <asp:ListItem Value="allowdiggs">是否允许辩论支持</asp:ListItem>
  110.     <asp:ListItem Value="allowhtml">是否允许HTML</asp:ListItem>
  111.     <asp:ListItem Value="allowtrad">是否允许交易</asp:ListItem>
  112. </cc1:CheckBoxList>
  113. <asp:Literal ID="outscript" runat="server" />
  114. </td>
  115. </tr>
  116. </table>