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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" Codebehind="forum_topictypesgrid.aspx.cs" Inherits="Discuz.Web.Admin.topictypesgrid" %>
  2. <%@ Register TagPrefix="uc1" TagName="PageInfo" Src="../UserControls/PageInfo.ascx" %>
  3. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  4. <%@ Register TagPrefix="cc2" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html>
  7. <head>
  8. <title>主题分类</title>
  9. <link href="../styles/datagrid.css" type="text/css" rel="stylesheet" />
  10. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />
  11. <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet" />
  12. <script type="text/javascript" src="../js/common.js"></script>
  13. <script type="text/javascript" src="../js/modalpopup.js"></script>
  14. <script type="text/javascript">
  15. function Check(form)
  16. {
  17. CheckAll(form);
  18. checkedEnabledButton(form,'id','delButton');
  19. }
  20. </script>
  21. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  22. </head>
  23. <body>
  24. <form id="Form1" method="post" runat="server">
  25. <div class="ManagerForm">
  26. <fieldset>
  27. <legend style="background: transparent url(../images/icons/icon32.jpg) no-repeat scroll 6px 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">搜索主题分类</legend>
  28. <asp:Panel ID="searchtable" runat="server" Visible="true">
  29. <table width="100%">
  30. <tr>
  31. <td style="width: 80px">主题分类名:</td>
  32. <td style="width:150px">
  33. <cc1:TextBox ID="topictypename" runat="server" RequiredFieldType="暂无校验" Width="100"></cc1:TextBox>
  34. </td>
  35. <td><cc1:Button ID="Search" runat="server" Text="开始搜索"></cc1:Button></td>
  36. </tr>
  37. </table>
  38. </asp:Panel>
  39. <cc1:Button ID="ResetSearchTable" runat="server" Text="重设搜索条件" Visible="False"></cc1:Button>
  40. </fieldset>
  41. </div>
  42. <cc1:datagrid id="DataGrid1" runat="server" IsFixConlumnControls="true" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" PageSize="10">
  43. <Columns>
  44. <asp:TemplateColumn HeaderText="<input title='选中/取消选中' onclick='Check(this.form)' type='checkbox' name='chkall' id='chkall' />">
  45. <HeaderStyle Width="20px" />
  46. <ItemTemplate>
  47. <input id="id" onclick="checkedEnabledButton(this.form,'id','delButton')" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.id").ToString() %>" name="id" />
  48. <%# DataGrid1.LoadSelectedCheckBox(DataBinder.Eval(Container, "DataItem.id").ToString())%>
  49. </ItemTemplate>
  50. </asp:TemplateColumn>
  51. <asp:BoundColumn DataField="name" SortExpression="name" HeaderText="主题分类"></asp:BoundColumn>
  52. <asp:BoundColumn DataField="displayorder" SortExpression="displayorder" HeaderText="显示顺序"></asp:BoundColumn>
  53. <asp:BoundColumn DataField="description" HeaderText="描述"></asp:BoundColumn>
  54. <asp:TemplateColumn HeaderText="关联的版块">
  55. <ItemStyle HorizontalAlign="Left"></ItemStyle>
  56. <ItemTemplate>
  57. <%# LinkForum(DataBinder.Eval(Container, "DataItem.id").ToString()) %>
  58. </ItemTemplate>
  59. </asp:TemplateColumn>
  60. </Columns>
  61. </cc1:datagrid>
  62. <p style="text-align:right;">
  63. <cc1:Button id="SaveTopicType" runat="server" Text="保存主题分类"></cc1:Button>&nbsp;&nbsp;
  64. <cc1:Button id="delButton" runat="server" Text="删除主题分类" Enabled="false" ButtonImgUrl="../images/del.gif" OnClientClick="if(!confirm('你确认要删除所选主题分类吗?')) return false;"></cc1:Button>&nbsp;&nbsp;
  65. <button type="button" class="ManagerButton" id="Button2" onclick="BOX_show('neworedit');"><img src="../images/add.gif"/> 建立主题分类 </button>
  66. </p>
  67. <div id="BOX_overlay" style="background: #000; position: absolute; z-index:100; filter:alpha(opacity=50);-moz-opacity: 0.6;opacity: 0.6;"></div>
  68. <div id="neworedit" style="display: none; background :#fff; padding:10px; border:1px solid #999; width:400px;">
  69. <div class="ManagerForm">
  70. <fieldset>
  71. <legend style="background:url(../images/icons/icon45.jpg) no-repeat 6px 50%;">添加主题分类</legend>
  72. <table cellspacing="0" cellpadding="4" width="100%" align="center">
  73. <tr>
  74. <td style="width: 90px;height:35px">主题分类名:</td>
  75. <td>
  76. <cc2:TextBox id="typename" runat="server" RequiredFieldType="暂无校验" IsReplaceInvertedComma="true" MaxLength="200"></cc2:TextBox>
  77. </td>
  78. </tr>
  79. <tr>
  80. <td style="height:35px">显示顺序:</td>
  81. <td>
  82. <cc2:TextBox id="displayorder" runat="server" RequiredFieldType="数据校验"  size="3" MaxLength="4" HintInfo="在版块中显示顺序,序号按升序排序" Text="0"></cc2:TextBox>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td style="height:35px">描述:</td>
  87. <td>
  88. <cc2:TextBox id="description" runat="server" RequiredFieldType="暂无校验" MaxLength="500"></cc2:TextBox>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td align="center" colspan="2" style="height:35px">
  93. <cc1:Button id="AddNewRec" runat="server" Text=" 提 交 "></cc1:Button>&nbsp;&nbsp;
  94. <button type="button" class="ManagerButton" id="Button1" onclick="BOX_remove('neworedit');"><img src="../images/state1.gif"/> 取 消 </button>
  95. </td>
  96. </tr>
  97. </table>
  98. </fieldset>
  99. </div>
  100. </div>
  101. </form>
  102. <cc1:Hint id="Hint1" runat="server" HintImageUrl="../images"></cc1:Hint>
  103. <div id="setting" />
  104. <%=footer%>
  105. </body>
  106. </html>