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

SCSI/ASPI

开发平台:

Others

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