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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" Inherits="Discuz.Web.Admin.topicsgrid" Codebehind="forum_topicsgrid.aspx.cs" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <%@ Register TagPrefix="cc2" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  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>主题列表</title>
  8. <link href="../styles/datagrid.css" type="text/css" rel="stylesheet" />
  9. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />
  10. <script type="text/javascript" src="../js/common.js"></script>
  11. <script type="text/javascript">
  12. function check(browser)
  13.    document.forms[0].operation.value=browser;
  14. }
  15. function CheckAll(form)
  16.   {
  17.   for (var i=0;i<form.elements.length;i++)
  18. {
  19. var e = form.elements[i];
  20. if (e.name == 'tid')
  21.    e.checked = form.chkall.checked;
  22. }
  23. }
  24. function SH_SelectOne(obj)
  25. {
  26. if( obj.checked == false)
  27. {
  28. document.getElementById('chkall').checked = obj.chcked;
  29. }
  30. }
  31. function Check(form)
  32. {
  33. CheckAll(form);
  34. checkedEnabledButton(form,'tid','SetTopicInfo')
  35. }
  36. </script>
  37. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  38. </head>
  39. <body>
  40. <form id="Form1" method="post" runat="server">
  41. <div class="ManagerForm">
  42. <fieldset>
  43. <legend style="background:url(../images/icons/legendimg.jpg) no-repeat 6px 50%;">操作主题</legend>
  44. <table cellspacing="0" cellpadding="4" width="100%" align="center">
  45. <tr>
  46. <td class="panelbox" colspan="2">
  47. <table width="100%">
  48. <tr>
  49. <td style="width:100px"><input type="radio" name="operation" value="moveforum" onClick="check(this.value)" checked />批量移动到论坛</td>
  50. <td><cc2:dropdowntreelist id="forumid" runat="server"></cc2:dropdowntreelist></td>
  51. </tr>
  52. </table>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td class="panelbox" align="left" width="50%">
  57. <table width="100%">
  58. <tr>
  59. <td style="width:100px"><input type="radio" name="operation" value="delete" onClick="check(this.value)" />批量删除</td>
  60. <td><input type="checkbox" name="nodeletepostnum" value="1" checked id="nodeletepostnum" runat="server" />删帖不减用户发帖数和积分</td>
  61. </tr>
  62. <tr>
  63. <td><input type="radio" name="operation" value="displayorder" onclick="check(this.value)" />批量置顶</td>
  64. <td>
  65. <input type="radio" name="displayorder_level" value="0" checked onclick="check(this.value)" />取消置顶 <br />
  66. <input type="radio" name="displayorder_level" value="1" onclick="check(this.value)" />
  67. <img src="../images/star.gif" width="16" height="16" /> <br /> 
  68. <input type="radio" name="displayorder_level" value="2" onclick="check(this.value)" />
  69. <img src="../images/star.gif" width="16" height="16" />
  70. <img src="../images/star.gif" width="16" height="16" /><br />
  71. <input type="radio" name="displayorder_level" value="3" onclick="check(this.value)" />
  72. <img src="../images/star.gif" width="16" height="16" />
  73. <img src="../images/star.gif" width="16" height="16" />
  74. <img src="../images/star.gif" width="16" height="16" />
  75. </td>
  76. </tr>
  77. </table>
  78. </td>
  79. <td class="panelbox" align="right" width="50%">
  80. <table width="100%">
  81. <tr>
  82. <td style="width:110px"><input type="radio" name="operation" value="deleteattach" onClick="check(this.value)" />删除主题中的附件</td>
  83. <td>&nbsp;</td>
  84. </tr>
  85. <tr>
  86. <td><input type="radio" name="operation" value="adddigest" onclick="check(this.value)" />批量设置精华</td>
  87. <td>
  88. <input type="radio" name="digest_level" value="0" checked /> 取消精华 <br />
  89. <input type="radio" name="digest_level" value="1" />
  90. <img src="../images/star.gif" width="16" height="16" /><br />
  91. <input type="radio" name="digest_level" value="2" />
  92. <img src="../images/star.gif" width="16" height="16" />
  93. <img src="../images/star.gif" width="16" height="16" /><br />
  94. <input type="radio" name="digest_level" value="3" /> 
  95. <img src="../images/star.gif" width="16" height="16" />
  96. <img src="../images/star.gif" width="16" height="16" />
  97. <img src="../images/star.gif" width="16" height="16" />
  98. </td>
  99. </tr>
  100. </table>
  101. </td>
  102. </tr>
  103. <tr>
  104. <td align="center" colspan="2"><cc1:Button id="SetTopicInfo" runat="server" Text=" 提 交 " Enabled="false"></cc1:Button></td>
  105. </tr>
  106. </table>
  107. </fieldset>
  108. </div>
  109. <cc1:datagrid id="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" PageSize="15">
  110. <Columns>
  111. <asp:TemplateColumn HeaderText="<input title='选中/取消' onclick='Check(this.form)' type='checkbox' name='chkall' id='chkall' />">
  112. <HeaderStyle Width="20px" />
  113. <ItemTemplate>
  114. <input id="tid" onclick="checkedEnabledButton(this.form,'tid','SetTopicInfo')" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.tid").ToString() %>" name="tid" />
  115. </ItemTemplate>
  116. </asp:TemplateColumn>
  117. <asp:BoundColumn DataField="tid" SortExpression="tid" HeaderText="帖子ID" Visible="false" ></asp:BoundColumn>
  118. <asp:TemplateColumn HeaderText="标题">
  119. <ItemTemplate>
  120. <a href="../../showtopic.aspx?topicid=<%# DataBinder.Eval(Container, "DataItem.tid").ToString() %>" target="_blank">
  121. <%# DataBinder.Eval(Container, "DataItem.title").ToString() %>
  122. </a>
  123. </ItemTemplate>
  124. </asp:TemplateColumn>
  125. <asp:TemplateColumn HeaderText="发帖人">
  126. <itemtemplate>
  127. <%# (DataBinder.Eval(Container, "DataItem.posterid").ToString() != "-1") ? "<a href='../../userinfo.aspx?userid=" + DataBinder.Eval(Container, "DataItem.posterid").ToString() + "' target='_blank'>" + DataBinder.Eval(Container, "DataItem.poster").ToString() + "</a>" : DataBinder.Eval(Container, "DataItem.poster").ToString()%>
  128. </itemtemplate>
  129. </asp:TemplateColumn>
  130. <asp:BoundColumn DataField="postdatetime" SortExpression="postdatetime" HeaderText="发布日期" ></asp:BoundColumn>
  131. <asp:TemplateColumn HeaderText="最后回复人">
  132. <itemtemplate>
  133. <%# (DataBinder.Eval(Container, "DataItem.lastposterid").ToString() != "-1") ? "<a href='../../userinfo.aspx?userid=" + DataBinder.Eval(Container, "DataItem.lastposterid").ToString() + "' target='_blank'>" + DataBinder.Eval(Container, "DataItem.lastposter").ToString() + "</a>" : DataBinder.Eval(Container, "DataItem.lastposter").ToString()%>
  134. </itemtemplate>
  135. </asp:TemplateColumn>
  136. <asp:TemplateColumn HeaderText="回帖数">
  137. <ItemTemplate>
  138. <%# GetPostLink(DataBinder.Eval(Container, "DataItem.tid").ToString(),DataBinder.Eval(Container, "DataItem.replies").ToString())%>
  139. </ItemTemplate>
  140. </asp:TemplateColumn>
  141. <asp:BoundColumn DataField="views" SortExpression="views" HeaderText="查看数"></asp:BoundColumn>
  142. <asp:BoundColumn DataField="digest" SortExpression="digest" HeaderText="精华帖" ></asp:BoundColumn>
  143. <asp:BoundColumn DataField="displayorder" SortExpression="displayorder" HeaderText="显示顺序"></asp:BoundColumn>
  144. <asp:BoundColumn DataField="price" SortExpression="price" HeaderText="价格"></asp:BoundColumn>
  145. <asp:TemplateColumn HeaderText="关闭">
  146. <ItemTemplate>
  147. <%# BoolStr(DataBinder.Eval(Container, "DataItem.closed").ToString())%>
  148. </ItemTemplate>
  149. </asp:TemplateColumn>
  150. </Columns>
  151. </cc1:datagrid>
  152. <div id="topictypes" style="display:none;width:100%;">
  153. <tr>
  154. <td class="td2"><input type="radio" name="operation" value="movetype" onClick="check(this.value)">
  155. 批量移动到分类</td>
  156. <td class="td2"><cc2:dropdownlist id="typeid" runat="server"></cc2:dropdownlist></td>
  157. </tr>
  158. </div>
  159. </form>
  160. <%=footer%>
  161. </body>
  162. </html>