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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" Inherits="Discuz.Web.Admin.addfirstforum" Codebehind="forum_addfirstforum.aspx.cs" %>
  2. <%@ Register TagPrefix="cc2" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <%@ Register TagPrefix="cc3" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  4. <%@ Register TagPrefix="uc1" TagName="TextareaResize" Src="../UserControls/TextareaResize.ascx" %>
  5. <%@ Register TagPrefix="uc1" TagName="PageInfo" Src="../UserControls/PageInfo.ascx" %>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html>
  8. <head>
  9. <title>添加版块</title>
  10. <link href="../styles/datagrid.css" type="text/css" rel="stylesheet" />
  11. <link href="../styles/tab.css" type="text/css" rel="stylesheet" />
  12. <script type="text/javascript" src="../js/common.js"></script>
  13. <script type="text/javascript" src="../js/tabstrip.js"></script>
  14. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />        
  15. <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet" />
  16. <script type="text/javascript" src="../js/modalpopup.js"></script>
  17. <script type="text/javascript" src="../js/AjaxHelper.js"></script>
  18. <style type="text/css">
  19. .td_alternating_item1{font-size: 12px;}
  20. .td_alternating_item2{font-size: 12px;background-color: #F5F7F8;}
  21. </style>
  22. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  23. </head>
  24. <body >
  25. <form id="Form1" method="post" runat="server">
  26. <cc3:TabControl id="TabControl1" SelectionMode="Client" runat="server" TabScriptPath="../js/tabstrip.js" width="760" height="100%">
  27. <cc3:TabPage Caption="基本信息" ID="tabPage51">
  28. <table width="100%">
  29. <tr><td class="item_title" colspan="2">论坛名称</td></tr>
  30. <tr>
  31. <td class="vtop rowform">
  32.  <cc2:TextBox id="name" runat="server" CanBeNull="必填" width="250" size="30"  MaxLength="49"></cc2:TextBox>
  33. </td>
  34. <td class="vtop"></td>
  35. </tr>
  36. <tr><td class="item_title" colspan="2">是否显示</td></tr>
  37. <tr>
  38. <td class="vtop rowform">
  39. <cc2:RadioButtonList id="status" runat="server" RepeatColumns="2" >
  40. <asp:ListItem Value="1" Selected="True">显示</asp:ListItem>
  41. <asp:ListItem Value="0" >不显示</asp:ListItem>
  42. </cc2:RadioButtonList>
  43. </td>
  44. <td class="vtop"></td>
  45. </tr>
  46. <tr><td class="item_title" colspan="2">论坛描述</td></tr>
  47. <tr>
  48. <td class="vtop rowform">
  49.  <uc1:TextareaResize id="description" runat="server" controlname="TabControl1:tabPage51:description" Cols="40" Rows="5"></uc1:TextareaResize>
  50. </td>
  51. <td class="vtop"></td>
  52. </tr>
  53. <tr><td class="item_title" colspan="2">版主列表</td></tr>
  54. <tr>
  55. <td class="vtop rowform">
  56. <uc1:TextareaResize id="moderators" runat="server" controlname="TabControl1:tabPage51:moderators" Cols="40" Rows="5"></uc1:TextareaResize>
  57. </td>
  58. <td class="vtop">仅供显示使用, 不记录实际权限,以','进行分割,如:lisi,zhangsan</td>
  59. </tr>
  60. </table>
  61. </cc3:TabPage>
  62. <cc3:TabPage Caption="高级设置" ID="tabPage22">
  63. <table width="100%">
  64. <tr><td class="item_title" colspan="2">访问本论坛的密码</td></tr>
  65. <tr>
  66. <td class="vtop rowform">
  67.  <cc2:textbox id="password" runat="server" RequiredFieldType="暂无校验" IsReplaceInvertedComma="false" MaxLength="16" Size="20"></cc2:textbox>
  68. </td>
  69. <td class="vtop">留空为不需密码</td>
  70. </tr>
  71. <tr><td class="item_title" colspan="2">论坛图标</td></tr>
  72. <tr>
  73. <td class="vtop rowform">
  74.  <cc2:textbox id="icon" runat="server" Width="250px" RequiredFieldType="暂无校验" IsReplaceInvertedComma="false"  MaxLength="253"></cc2:textbox>
  75. </td>
  76. <td class="vtop">显示于首页论坛列表等</td>
  77. </tr>
  78. <tr><td class="item_title" colspan="2">指向外部链接的地址</td></tr>
  79. <tr>
  80. <td class="vtop rowform">
  81.  <cc2:textbox id="redirect" runat="server" Width="250px" RequiredFieldType="暂无校验" IsReplaceInvertedComma="false"  MaxLength="253"></cc2:textbox>
  82. </td>
  83. <td class="vtop"></td>
  84. </tr>
  85. <tr><td class="item_title" colspan="2">允许的附件类型</td></tr>
  86. <tr>
  87. <td class="vtop rowform">
  88.  <cc2:CheckBoxList id="attachextensions"  runat="server" RepeatColumns="4"></cc2:CheckBoxList>
  89. </td>
  90. <td class="vtop">允许在本论坛上传的附件类型,留空为使用用户组设置, 且版块设置优先于用户组设置</td>
  91. </tr>
  92. <tr><td class="item_title" colspan="2">本版规则</td></tr>
  93. <tr>
  94. <td class="vtop rowform">
  95.   <cc2:textbox id="rules" runat="server" RequiredFieldType="暂无校验" width="250" height="100" TextMode="MultiLine"  IsReplaceInvertedComma="false"></cc2:textbox>
  96. </td>
  97. <td class="vtop">支持Html</td>
  98. </tr>
  99. <tr><td class="item_title" colspan="2">本版块SEO关键词</td></tr>
  100. <tr>
  101. <td class="vtop rowform">
  102.   <cc2:textbox id="seokeywords" runat="server" RequiredFieldType="暂无校验" width="250" height="100" TextMode="MultiLine" IsReplaceInvertedComma="false"></cc2:textbox>
  103. </td>
  104. <td class="vtop">设置本版块的SEO关键词,用于搜索引擎优化,放在meta的keyword标签中,多个关键字间请用半角逗号","隔开</td>
  105. </tr>
  106. <tr><td class="item_title" colspan="2">本版块SEO说明</td></tr>
  107. <tr>
  108. <td class="vtop rowform">
  109.  <cc2:textbox id="seodescription" runat="server" RequiredFieldType="暂无校验" width="250" height="100" TextMode="MultiLine" IsReplaceInvertedComma="false"></cc2:textbox>
  110. </td>
  111. <td class="vtop">设置本版块的SEO说明,用于搜索引擎优化,放在meta的description标签中,多个说明文字间请用半角逗号","隔开</td>
  112. </tr>
  113. <tr><td class="item_title" colspan="2">本版块URL重写</td></tr>
  114. <tr>
  115. <td class="vtop rowform">
  116.  <cc2:textbox id="rewritename" runat="server" Width="250px" RequiredFieldType="暂无校验" IsReplaceInvertedComma="false"  MaxLength="20"></cc2:textbox>
  117. </td>
  118. <td class="vtop">设置版块URL重写,以字母开头,其后可以是字母或数字,但不可包含<br>"install,upgrade,admin,aspx,tools,archive,space"中任意一个字符串</td>
  119. </tr>
  120. <tr><td class="item_title" colspan="2">定期自动关闭主题</td></tr>
  121. <tr>
  122. <td class="vtop rowform">
  123. <cc2:RadioButtonList id="autocloseoption" runat="server" RepeatColumns="1">
  124. <asp:ListItem Value="0" Selected="True">不自动关闭</asp:ListItem>
  125. <asp:ListItem Value="1">按发布时间</asp:ListItem>
  126. </cc2:RadioButtonList>
  127. <div id="showclose" runat="server">
  128. <cc2:TextBox id="autocloseday" runat="server" RequiredFieldType="数据校验" Size="4" MaxLength="3"></cc2:TextBox>天自动关闭
  129. </div>
  130. </td>
  131. <td class="vtop"></td>
  132. </tr>
  133. <tr><td class="item_title" colspan="2">只允许发布特殊类型主题</td></tr>
  134. <tr>
  135. <td class="vtop rowform">
  136. <cc2:RadioButtonList id="allowspecialonly" runat="server" RepeatColumns="2">
  137. <asp:ListItem Value="1">是</asp:ListItem>
  138. <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
  139. </cc2:RadioButtonList>
  140. </td>
  141. <td class="vtop">设置本版是否只允许发布特殊类型主题</td>
  142. </tr>
  143. <tr><td class="item_title" colspan="2">设置</td></tr>
  144. <tr>
  145. <td class="vtop" colspan="2">
  146. <cc2:CheckBoxList id="setting" runat="server" RepeatColumns="4" >
  147. <asp:ListItem Value="allowsmilies">允许使用表情符</asp:ListItem>
  148. <asp:ListItem Value="allowrss">允许RSS</asp:ListItem>
  149. <asp:ListItem Value="allowbbcode">允许Discuz!NT代码</asp:ListItem>
  150. <asp:ListItem Value="allowimgcode">允许[img]代码</asp:ListItem>
  151. <asp:ListItem Value="recyclebin">打开回收站</asp:ListItem>
  152. <asp:ListItem Value="modnewposts">发帖需要审核</asp:ListItem>
  153. <asp:ListItem Value="jammer">帖子中添加干扰码</asp:ListItem>
  154. <asp:ListItem Value="disablewatermark">禁止附件自动水印</asp:ListItem>
  155. <asp:ListItem Value="inheritedmod">继承上级论坛或分类的版主设定</asp:ListItem>
  156. <asp:ListItem Value="allowthumbnail">主题列表中显示缩略图</asp:ListItem>
  157. <asp:ListItem Value="allowtags">允许标签</asp:ListItem>
  158. <asp:ListItem Value="allowpostpoll">允许发投票</asp:ListItem>
  159. <asp:ListItem Value="allowdebate">允许辩论</asp:ListItem>
  160. <asp:ListItem Value="allowbonus">允许悬赏</asp:ListItem>
  161. <asp:ListItem Value="alloweditrules">允许版主编辑版规</asp:ListItem>
  162. </cc2:CheckBoxList>
  163. </td>
  164. </tr>
  165. </table>
  166. </cc3:TabPage>
  167. <cc3:TabPage Caption="权限设定" ID="tabPage33">
  168. <uc1:PageInfo id="PageInfo1" runat="server" Icon="Information" Text="每个组的权限项不选择为使用用户组设置,且版块设置优先于用户组设置."></uc1:PageInfo>
  169. <table width="100%" id="powerset" align="center" class="table1" cellspacing="0" cellPadding="4"  bgcolor="#C3C7D1" runat="server">
  170. <tr>
  171. <td class="td_alternating_item2" width="1%">&nbsp;</td>
  172. <td class="td_alternating_item2" width="20%" style="word-wrap: break-word">&nbsp;</td>
  173. <td class="td_alternating_item2"><input type="checkbox" id="c1" onclick="seleCol('viewperm',this.checked)"/><label for="c1">浏览论坛</label></td>
  174. <td class="td_alternating_item2"><input type="checkbox" id="c2" onclick="seleCol('postperm',this.checked)"/><label for="c2">发新话题</label></td>
  175. <td class="td_alternating_item2"><input type="checkbox" id="c3" onclick="seleCol('replyperm',this.checked)"/><label for="c3">发表回复</label></td>
  176. <td class="td_alternating_item2"><input type="checkbox" id="c4" onclick="seleCol('getattachperm',this.checked)"/><label for="c4">下载/查看附件</label></td>
  177. <td class="td_alternating_item2"><input type="checkbox" id="c5" onclick="seleCol('postattachperm',this.checked)"/><label for="c5">上传附件</label></td>
  178. </tr>
  179. </table>
  180. </cc3:TabPage>
  181. </cc3:TabControl>
  182. <div id="topictypes" style="display:none;width:100%;">
  183. <table width="100%">
  184. <tr><td class="item_title" colspan="2">主题分类</td></tr>
  185. <tr>
  186. <td class="vtop rowform">
  187. <cc2:textbox id="topictypes" runat="server" RequiredFieldType="暂无校验" width="370" height="50" TextMode="MultiLine"></cc2:textbox>
  188. </td>
  189. <td class="vtop"></td>
  190. </tr>
  191. <tr><td class="item_title" colspan="2">模板风格</td></tr>
  192. <tr>
  193. <td class="vtop rowform">
  194. c2:DropDownList id="templateid" runat="server"></cc2:DropDownList>
  195. </td>
  196. <td class="vtop"></td>
  197. </tr>
  198. </table>
  199. </div>
  200. <div class="Navbutton">
  201. <cc2:Hint id="Hint1" runat="server" HintImageUrl="../images"></cc2:Hint>
  202. <cc2:Button id="Submit" runat="server" Text=" 添 加 "></cc2:Button>
  203. </div>
  204. </form>
  205. <%=footer%>
  206. </body>
  207. </html>