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

SCSI/ASPI

开发平台:

Others

  1. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  2. <%@ Register TagPrefix="uc1" TagName="TextareaResize" Src="../UserControls/TextareaResize.ascx" %>
  3. <%@ Page language="c#" Inherits="Discuz.Web.Admin.editbbcode" Codebehind="forum_editbbcode.aspx.cs" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html>
  6. <head>
  7. <title>Discuz!NT代码编辑</title>
  8. <script type="text/javascript" src="../js/common.js"></script>
  9. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />        
  10. <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet" />
  11. <script type="text/javascript" src="../js/modalpopup.js"></script>
  12. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  13. </head>
  14. <body>
  15. <form id="Form1" method="post" runat="server">
  16. <div class="ManagerForm">
  17. <fieldset>
  18. <legend style="background:url(../images/icons/icon47.jpg) no-repeat 6px 50%;">编辑Discuz!NT代码</legend>
  19. <table width="100%">
  20. <tr><td class="item_title" colspan="2">是否生效</td></tr>
  21. <tr>
  22. <td class="vtop rowform">
  23. <cc1:radiobuttonlist id="available" runat="server">
  24. <asp:ListItem Value="1">生效</asp:ListItem>
  25. <asp:ListItem Value="0" Selected="True">不生效</asp:ListItem>
  26. </cc1:radiobuttonlist>
  27. </td>
  28. <td class="vtop"></td>
  29. </tr>
  30. <tr><td class="item_title" colspan="2">图标</td></tr>
  31. <tr>
  32. <td class="vtop rowform">
  33. <cc1:UpFile id="icon" runat="server" UpFilePath="../../editor/images/" FileType=".jpg|.gif|.png" IsShowTextArea="false" Width="60px"></cc1:UpFile>
  34. </td>
  35. <td class="vtop"></td>
  36. </tr>
  37. <tr><td class="item_title" colspan="2">标签</td></tr>
  38. <tr>
  39. <td class="vtop rowform">
  40.  <cc1:textbox id="tag" runat="server" CanBeNull="必填" RequiredFieldType="暂无校验" MaxLength="100" TextMode="MultiLine" Rows="3" Cols="20"   ></cc1:textbox>
  41. </td>
  42. <td class="vtop">方括号中的标签代码, 如 [tag] 的标签为 "tag"(不含引号)</td>
  43. </tr>
  44. <tr><td class="item_title" colspan="2">替换内容</td></tr>
  45. <tr>
  46. <td class="vtop rowform">
  47.  <uc1:TextareaResize id="replacement" runat="server" controlname="replacement" cols="30" is_replace="true"  HintShowType="down" HintHeight="0"></uc1:TextareaResize>
  48. </td>
  49. <td class="vtop">标签替换为的 html 代码内容, 支持至多三个动态参数<br />{1} 代表第一个参数<br />{2} 代表第二个参数<br />{3} 代表第三个参数<br />{RANDOM}代表随机生成的字符串</td>
  50. </tr>
  51. <tr><td class="item_title" colspan="2">例子</td></tr>
  52. <tr>
  53. <td class="vtop rowform">
  54.  <uc1:TextareaResize id="example" runat="server" controlname="example" cols="30" is_replace="true" maxlength="254"></uc1:TextareaResize>
  55. </td>
  56. <td class="vtop">本代码作用的例子</td>
  57. </tr>
  58. <tr><td class="item_title" colspan="2">解释</td></tr>
  59. <tr>
  60. <td class="vtop rowform">
  61.  <uc1:TextareaResize id="explanation" runat="server" HintTitle="提示" HintInfo="本代码功能的解释" controlname="explanation" cols="30" is_replace="true"></uc1:TextareaResize>
  62. </td>
  63. <td class="vtop">本代码作用的例子</td>
  64. </tr>
  65. <tr><td class="item_title" colspan="2">参数个数</td></tr>
  66. <tr>
  67. <td class="vtop rowform">
  68. <cc1:TextBox id="param" runat="server" HintTitle="提示" HintInfo="本代码中使用到的动态参数个数" CanBeNull="必填" RequiredFieldType="数据校验" Text="0" size="3"></cc1:TextBox>
  69. </td>
  70. <td class="vtop">本代码中使用到的动态参数个数</td>
  71. </tr>
  72. <tr><td class="item_title" colspan="2">参数描述</td></tr>
  73. <tr>
  74. <td class="vtop rowform">
  75.  <uc1:TextareaResize id="paramsdescript" runat="server" controlname="paramsdescript" cols="30" is_replace="true"></uc1:TextareaResize>
  76. </td>
  77. <td class="vtop">在插入自定义标签时会弹出录入框,此描述为录入框提示信息,对应参数个数.多于一个参数,请用半角逗号(,)分隔.</td>
  78. </tr>
  79. <tr><td class="item_title" colspan="2">嵌套次数</td></tr>
  80. <tr>
  81. <td class="vtop rowform">
  82. <cc1:textbox id="nest" runat="server" CanBeNull="必填" RequiredFieldType="数据校验" size="3"></cc1:textbox>
  83. </td>
  84. <td class="vtop">最大解析的代码嵌套次数(深度), 范围从 1~3</td>
  85. </tr>
  86. <tr><td class="item_title" colspan="2">params默认值</td></tr>
  87. <tr>
  88. <td class="vtop rowform">
  89.  <uc1:TextareaResize id="paramsdefvalue" runat="server" controlname="paramsdefvalue" cols="30" is_replace="true"></uc1:TextareaResize>
  90. </td>
  91. <td class="vtop">在插入自定义标签时会弹出录入框,此默认值为录入框中默认显示的数值,对应参数个数.多于一个参数,请用半角逗号(,)分隔.</td>
  92. </tr>
  93. </table>
  94. <cc1:Hint id="Hint1" runat="server" HintImageUrl="../images"></cc1:Hint>
  95. <div class="Navbutton">
  96. <cc1:Button id="UpdateBBCodeInfo" runat="server" Text=" 提 交 "></cc1:Button>&nbsp;&nbsp;
  97. <cc1:Button id="DeleteBBCode" runat="server" Text=" 删 除 " ButtonImgUrl="../images/del.gif" OnClientClick="if(!confirm('你确认要删除所选的Discuz!NT代码吗?')) return false;"></cc1:Button>
  98. </div>
  99. </fieldset>
  100. </div>
  101. </form>
  102. <%=footer%>
  103. </body>
  104. </html>