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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" Inherits="Discuz.Web.Admin.forumhottopic" Codebehind="aggregation_forumhottopic.aspx.cs" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <%@ Register TagPrefix="uc1" TagName="AjaxTopicInfo" Src="../UserControls/AjaxTopicInfo.ascx" %>
  4. <%@ Register Src="../UserControls/PageInfo.ascx" TagName="PageInfo" TagPrefix="uc1" %>
  5. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  6. <html>
  7. <head>
  8. <title>websitesetting</title>
  9. <link href="../styles/gridStyle.css" type="text/css" rel="stylesheet" />
  10. <link href="../styles/calendar.css" type="text/css" rel="stylesheet" />
  11. <link href="../styles/datagrid.css" type="text/css" rel="stylesheet" />
  12. <script type="text/javascript" src="../js/common.js"></script>
  13. <script language="JavaScript" type="text/javascript" src="../../javascript/ajax.js"></script>
  14. <script type="text/javascript" src="../js/AjaxHelper.js"></script>
  15. <script type="text/javascript" src="../js/calendar.js"></script>
  16. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />
  17. <script type="text/javascript" src="../js/draglist.js"></script>
  18. <link href="../styles/draglist.css" type="text/css" rel="stylesheet" />
  19. <script type="text/javascript">
  20. function validate(theform)
  21. {
  22. var idColl = $("dom0").getElementsByTagName("input");
  23. var idlist = "";
  24. for(i = 0 ; i < idColl.length ; i++)
  25. {
  26. if(idlist=="")
  27. {
  28.    idlist = idColl[i].value;
  29. }
  30. else
  31. {
  32.    idlist = idlist + "," + idColl[i].value;
  33. }
  34. }
  35. $("forumtopicstatus").value = idlist;
  36. return true;
  37. function gettopicinfo()
  38. {
  39. var tid=$('ajaxtid').value;
  40. if(!isNumber(tid))
  41. {
  42.   $('adderror').innerHTML='ID必须是整数'
  43.   return;
  44. }
  45. _sendRequest('../global/global_ajaxcall.aspx?opname=gettopicinfo', gettopicinfo_callback, false, 'tid='+tid);
  46. }
  47. function gettopicinfo_callback(doc)
  48. {
  49.   var data=eval(doc);
  50.   if(data[0]==undefined)
  51.   {
  52.   $('adderror').innerHTML='主题不存在'
  53.   }
  54.   else
  55.   {
  56.   addElement('tid',data[0].tid,data[0].title);
  57.   $('adderror').innerHTML='添加主题成功'
  58.   }
  59.   $('ajaxtid').value='';
  60. }
  61.    function checkformid()
  62.    {
  63. if(!isNumber($('forumid').value))
  64. {
  65. alert("版块ID必须为数字");
  66. return false;
  67. }
  68. }
  69. </script>
  70. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  71. </head>
  72. <body >
  73. <form id="Form1" runat="server">
  74. <div class="ManagerForm" id="searchcondition">
  75. <fieldset>
  76. <legend style="background: url(&quot;../images/icons/icon32.jpg&quot;) no-repeat scroll 6px 50% transparent;">搜索论坛主题帖</legend>
  77. <div id="searchtable">
  78. <table width="100%">
  79. <tbody>
  80. <tr>
  81. <td><span style="padding-right:4px;">排序方式</span>
  82. <select name="showtype" id="showtype" style="margin-right:8px;">
  83. <option value="replies"  <%if (showtype=="replies"){%>selected<%}%>>按回复数排序</option>
  84. <option value="views"  <%if (showtype=="views"){%>selected<%}%>>按浏览量排序</option>
  85. </select><span style="padding-right:4px;">时间范围</span>
  86. <select name="timebetween" id="timebetween" style="margin-right:8px;">
  87. <option value="1" <%if (timebetween==1){%>selected<%}%>>一天</option>
  88. <option value="7" <%if (timebetween==7){%>selected<%}%>>一周</option>
  89. <option value="30" <%if (timebetween==30){%>selected<%}%>>一月</option>
  90. <option value="0" <%if (timebetween==0){%>selected<%}%>>全部</option>
  91. </select><span style="padding-right:4px;">版块Fid</span>
  92. <input name="forumid" type="text"  id="forumid" style="margin-right:8px;" value="<%if (forumid!=0){%><%=forumid%><%}%>" size="4"/>
  93. <input name="search" type="submit" value="开始搜索" class="ManagerButton" onClick="return  checkformid();"/>
  94. </td>
  95. </tr>
  96. </tbody>
  97. </table>
  98. </div>
  99. </fieldset>
  100. </div>
  101. <div id="topiclistgrid" style="width:98%;margin:0 auto;"><uc1:AjaxTopicInfo id="AjaxTopicInfo1" runat="server"></uc1:AjaxTopicInfo></div>
  102. <br />
  103. <div class="ManagerForm">
  104. <fieldset>
  105. <legend style="background: url(&quot;../images/icons/icon32.jpg&quot;) no-repeat scroll 6px 50% transparent;">直接添加热帖</legend>
  106. <div id="addhottopics">
  107. <table width="100%">
  108. <tbody>
  109. <tr>
  110. <td><span style="padding-right:4px;">主题ID:</span>
  111. <input name="ajaxtid" type="text" id="ajaxtid" style="margin-right:8px;"><input name="button" type="button" id="dsfsdafsa" onClick="gettopicinfo()" value="添加帖子"  class="ManagerButton"><span style="color:#FF0000;padding-left:8px;" id="adderror"></span>
  112. </td>
  113. </tr>
  114. </tbody>
  115. </table>
  116. </div>
  117. </fieldset>
  118. </div>
  119. <uc1:PageInfo ID="info1" runat="server" Icon="information" Text="<ul><li>上下拖动主题可以对主题进行排序 </li><li>将主题拖离已选择主题列表区,则将主题从列表中删除</li><li>点击保存按钮确认保存</li></ul>" />
  120. <span>&nbsp;&nbsp;<b>已选择主题列表</b></span>
  121. <div class="content">
  122. <div class="left" id="dom0">
  123. <asp:Literal id="forumlist" runat="server"></asp:Literal>
  124. </div>
  125.  </div>
  126.  <br />
  127. <div class="Navbutton">
  128. <cc1:Button id="SaveTopic" runat="server" Text=" 保存 "></cc1:Button>&nbsp;&nbsp;
  129. </div>
  130.   <cc1:Hint id="Hint1" runat="server" HintImageUrl="../images"></cc1:Hint>
  131.   <input id="forumtopicstatus" type="hidden" runat="server" />
  132. </form>
  133. <%=footer%>
  134. </body>
  135. </html>