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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" Inherits="Discuz.Web.Admin.updateforumstatic" Codebehind="forum_updateforumstatic.aspx.cs" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html >
  5. <head>
  6. <title>updateforumstatic</title>
  7. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" /> 
  8. <script type="text/javascript" src="../js/common.js"></script>
  9. <script type="text/javascript">
  10. var lastnumber=0;
  11. var currentnum=0;
  12.  
  13. function runstatic(opname,pertask)
  14. {  
  15.   if(lastnumber>-1)
  16.   { 
  17.  currentnum=lastnumber/1+pertask/1;    // alert(currentnum);
  18.  var result;
  19.  switch (opname)      
  20.  {
  21. case "ReSetFourmTopicAPost":     result="rn重建论坛帖数";break
  22. case "ReSetUserDigestPosts":     result = "rn重建所有用户的精华贴数"; break
  23. case "ReSetUserPosts":           result = "rn重建分表" + lastnumber + " 的用户发帖数"; break
  24. case "ReSetTopicPosts": result = "rn重建分表" + lastnumber + " 的主题最后回复等信息"; break
  25. case "UpdatePostSP": result = "rn重建分表" + lastnumber + " 的存储过程"; break
  26. case "UpdateMyPost": result = "rn更新分表" + lastnumber + " 中我的帖子"; break
  27.  }
  28.  
  29.  document.getElementById('Layer5').innerHTML ="<br /><table><tr><td valign=top><img border="0" src="../images/ajax_loading.gif"  /></td><td valign=middle style="font-size: 14px;" >"+result+"<BR /></td></tr></table><BR />";
  30.  document.getElementById('success').style.display ="block"; 
  31.  lastnumber=getReturn('../global/global_ajaxcall.aspx?opname='+opname+'&lastnumber='+lastnumber+'&pertask='+pertask);
  32.  if(lastnumber==null)
  33.  {
  34. document.getElementById('Layer5').innerHTML="<br />操作成功执行";
  35. document.getElementById('success').style.display = "block";
  36. count(); 
  37. document.getElementById('Form1').submit();
  38.  }
  39. }
  40.   else
  41.   {
  42.  document.getElementById('Layer5').innerHTML="<br />操作成功执行";
  43.  document.getElementById('success').style.display = "block";
  44.  count(); 
  45.  document.getElementById('Form1').submit();
  46.   }
  47. }
  48. function clearflag()
  49. {
  50.  bar=0;
  51.  document.getElementById('Layer5').innerHTML="<br />操作成功执行";
  52.  document.getElementById('success').style.display = "block";
  53.  count(); 
  54. }
  55. var bar=0;
  56. function count()
  57. bar=bar+4;
  58. if (bar<99) {setTimeout("count()",100);} 
  59. else { document.getElementById('success').style.display ="none"; } 
  60. }
  61. function run(opname,pertask)
  62. {
  63.   if(pertask=="")
  64.   {   
  65.   alert('每个循环更新数量不能为空!');return;
  66.   }
  67.   lastnumber=1;
  68.   currentnum=0;
  69.   bar=0;
  70.   
  71.   document.getElementById('Layer5').innerHTML="<br /><table><tr><td valign=top><img border="0" src="../images/ajax_loading.gif"  /></td><td valign=middle style="font-size: 14px;" >正在处理数据, 请稍等...<BR /></td></tr></table><BR />";
  72.   document.getElementById('success').style.display = "block";
  73.   //runstatic(opname,pertask);
  74.   setInterval('runstatic("'+opname+'",'+pertask+')',1000); //每次提交时间为1秒
  75. }
  76. var result=0;
  77. function run2(opname,startvalue,endvalue)
  78. {
  79.   document.getElementById('Layer5').innerHTML="<br /><table><tr><td valign=top><img border="0" src="../images/ajax_loading.gif"  /></td><td valign=middle style="font-size: 14px;" >正在处理数据, 请稍等...<BR /></td></tr></table><BR />";
  80.   document.getElementById('success').style.display = "block";
  81.   //alert(opname); 
  82.   pageurl='../global/global_ajaxcall.aspx?opname='+opname+'&startvalue='+startvalue+'&endvalue='+endvalue;
  83.   setTimeout('getforumdata("'+pageurl+'")',1000); //每次提交时间为5秒
  84. }
  85. function getforumdata(pageurl)
  86. {
  87.   result=getReturn(pageurl);
  88.   if((result>0)||(result==null))
  89.   {
  90. bar=0;
  91. document.getElementById('Layer5').innerHTML="<br />操作成功执行";
  92. document.getElementById('success').style.display = "block";
  93. count();
  94. document.getElementById('Form1').submit();
  95.   }
  96.   result=0;
  97. }
  98. </script>
  99. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  100. </head>
  101. <body>
  102. <form id="Form1" runat="server">
  103. <div style="width:98%;margin:0 auto;">
  104. <table cellspacing="0" cellpadding="4" width="100%" align="center">
  105. <tr>
  106. <td class="panelbox">
  107. <table width="100%">
  108. <tr>
  109. <td style="width:260px">重建论坛全部帖数:</td>
  110. <td style="width:260px">
  111. <!--每个循环更新数量:&nbsp;&nbsp;&nbsp;&nbsp;
  112. <cc1:TextBox id="pertask1" runat="server" Text="15" RequiredFieldType="暂无校验" size="5"></cc1:TextBox>-->
  113. </td>
  114. <td>
  115. <span id="ReSetFourmTopicAPost_id"  onmouseover="showhintinfo(this,0,0,'','重建论坛全部帖数','50','up');" onmouseout="hidehintinfo();">
  116. <span>
  117. <button type="button" id="ReSetFourmTopicAPost_id" class="ManagerButton" onclick="javascript:run('ReSetFourmTopicAPost','1');">
  118. <img src="../images/submit.gif" />提 交</button>
  119. </span>
  120. </span>
  121. </td>
  122. </tr>
  123. <tr>
  124. <td style="width:260px">重建所有版块的主题数:</td>
  125. <td style="width:260px"></td>
  126. <td><cc1:Button id="UpdateCurTopics" runat="server" Text="提 交" HintInfo="如果版块内主题数缺少或分页不准, 可执行此操作"></cc1:Button></td>
  127. </tr>
  128. <tr>
  129. <td style="width:260px">重建所有版块今日发帖数:</td>
  130. <td style="width:260px"></td>
  131. <td><cc1:Button id="ResetTodayPosts" runat="server" Text="提 交" HintInfo="如果版块内今日发帖数缺少或不准, 可执行此操作"></cc1:Button></td>
  132. </tr>
  133. <tr>
  134. <td>重建全部用户精华帖数:</td>
  135. <td>
  136. <!--每个循环更新数量:&nbsp;&nbsp;&nbsp;&nbsp;
  137. <cc1:TextBox id="pertask2" runat="server" Text="1000" RequiredFieldType="暂无校验" size="5"></cc1:TextBox>-->
  138. </td>
  139. <td>
  140. <span id="ReSetUserDigestPosts_id"  onmouseover="showhintinfo(this,0,0,'','重建全部用户精华帖数','50','up');" onmouseout="hidehintinfo();">
  141. <span>
  142. <button id="ReSetUserDigestPosts_id" type="button" class="ManagerButton" onclick="javascript:run('ReSetUserDigestPosts','1');">
  143. <img src="../images/submit.gif" />提 交
  144. </button>
  145. </span>
  146. </span>
  147. </td>
  148. </tr>
  149. <tr>
  150. <td>重建全部用户发帖数:</td>
  151. <td>
  152. 每个循环更新的分表个数:&nbsp;&nbsp;&nbsp;&nbsp;
  153. <cc1:TextBox id="pertask3" runat="server" Text="1" RequiredFieldType="暂无校验" size="5"></cc1:TextBox>
  154. </td>
  155. <td>
  156. <span id="ReSetUserPosts_id"  onmouseover="showhintinfo(this,0,0,'','重建全部用户发帖数','50','up');" onmouseout="hidehintinfo();">
  157. <span>
  158. <button id="ReSetUserPosts_id" type="button" class="ManagerButton" onclick="javascript:run('ReSetUserPosts',pertask3.value);">
  159. <img src="../images/submit.gif" />提 交
  160. </button>
  161. </span>
  162. </span>
  163. </td>
  164. </tr>
  165. <tr>
  166. <td>重建全部主题的最后回复等信息:</td>
  167. <td>
  168. 每个循环更新的分表个数:&nbsp;&nbsp;
  169. <cc1:TextBox id="pertask4" runat="server" Text="1" RequiredFieldType="暂无校验" size="5"></cc1:TextBox>
  170. </td>
  171. <td>
  172. <span id="ReSetTopicPosts_id"  onmouseover="showhintinfo(this,0,0,'','重建全部主题最后回复等信息','50','up');" onmouseout="hidehintinfo();">
  173. <span>
  174. <button id="ReSetTopicPosts_id" type="button" class="ManagerButton" onclick="javascript:run('ReSetTopicPosts',pertask4.value);" >
  175. <img src="../images/submit.gif" />提 交
  176. </button>
  177. </span>
  178. </span>
  179. </td>
  180. </tr>
  181. </table>
  182. </td>
  183. </tr>
  184. </table>
  185. <hr style="border-top:0; border-bottom:1px solid #ccc;display:none;" size="1" />
  186. <table cellspacing="0" cellpadding="4" width="100%" align="center" style="display:none">
  187. <tr>
  188. <td class="panelbox">
  189. <table width="100%">
  190. <tr>
  191. <td style="width:260px">重建指定论坛区间帖数:</td>
  192. <td style="width:260px">
  193. 开始版块FID:
  194. <cc1:TextBox id="startfid" runat="server" Text="1" RequiredFieldType="数据校验" size="10"></cc1:TextBox><br />
  195. 结束版块FID:
  196. <cc1:TextBox id="endfid" runat="server" Text="20" RequiredFieldType="数据校验" size="10"></cc1:TextBox>
  197. </td>
  198. <td>
  199. <span id="ReSetFourmTopicAPost_StartEnd_id"  onmouseover="showhintinfo(this,0,0,'','重建指定论坛区间帖数','50','up');" onmouseout="hidehintinfo();">
  200. <span>
  201. <button id="ReSetFourmTopicAPost_StartEnd_id" type="button" class="ManagerButton" 
  202. onclick="javascript:run2('ReSetFourmTopicAPost_StartEnd',startfid.value,endfid.value);">
  203. <img src="../images/submit.gif" />提 交
  204. </button>
  205. </span>
  206. </span>
  207. </td>
  208. </tr>
  209. <tr>
  210. <td>重建指定用户区间精华帖数:</td>
  211. <td>
  212. 开始用户UID:
  213. <cc1:TextBox id="startuid_digest" runat="server" Text="1" RequiredFieldType="暂无校验" size="10"></cc1:TextBox><br />
  214. 结束用户UID:
  215. <cc1:TextBox id="enduid_digest" runat="server" Text="20" RequiredFieldType="暂无校验" size="10"></cc1:TextBox>
  216. </td>
  217. <td>
  218. <span id="ReSetUserDigestPosts_StartEnd_id"  onmouseover="showhintinfo(this,0,0,'','重建指定用户区间精华帖数','50','up');" onmouseout="hidehintinfo();">
  219. <span>
  220. <button id="ReSetUserDigestPosts_StartEnd_id" type="button" class="ManagerButton" 
  221. onclick="javascript:run2('ReSetUserDigestPosts_StartEnd',startuid_digest.value,enduid_digest.value);">
  222. <img src="../images/submit.gif" />提 交
  223. </button>
  224. </span>
  225. </span>
  226. </td>
  227. </tr>
  228. <tr>
  229. <td>重建指定用户区间发帖数:</td>
  230. <td>
  231. 开始用户UID:
  232. <cc1:TextBox id="startuid_post" runat="server" Text="1" RequiredFieldType="暂无校验" size="10"></cc1:TextBox><br />
  233. 结束用户UID:
  234. <cc1:TextBox id="enduid_post" runat="server" Text="20" RequiredFieldType="暂无校验" size="10"></cc1:TextBox>
  235. </td>
  236. <td>
  237. <span id="ReSetUserPosts_StartEnd_id"  onmouseover="showhintinfo(this,0,0,'','重建指定用户区间发帖数','50','up');" onmouseout="hidehintinfo();">
  238. <span>
  239. <button id="ReSetUserPosts_StartEnd_id" type="button" class="ManagerButton" 
  240. onclick="javascript:run2('ReSetUserPosts_StartEnd',startuid_post.value,enduid_post.value);">
  241. <img src="../images/submit.gif" />提 交
  242. </button>
  243. </span>
  244. </span>
  245. </td>
  246. </tr>
  247. <tr>
  248. <td>重建主题回复信息:</td>
  249. <td>
  250. 从分表:
  251. <cc1:TextBox id="starttid" runat="server" Text="" RequiredFieldType="暂无校验" size="10"></cc1:TextBox><br />
  252. 到分表:
  253. <cc1:TextBox id="endtid" runat="server" Text="" RequiredFieldType="暂无校验" size="10"></cc1:TextBox>
  254. </td>
  255. <td>
  256. <span id="ReSetTopicPosts_StartEnd_id"  onmouseover="showhintinfo(this,0,0,'','重建指定主题区间帖数','50','up');" onmouseout="hidehintinfo();">
  257. <span>
  258. <button id="ReSetTopicPosts_StartEnd_id" type="button" class="ManagerButton" 
  259. onclick="javascript:run2('ReSetTopicPosts_StartEnd',starttid.value,endtid.value);">
  260. <img src="../images/submit.gif" />提 交
  261. </button>
  262. </span>
  263. </span>
  264. </td>
  265. </tr>
  266. </table>
  267. </td>
  268. </tr>
  269. </table>
  270. <hr style="border-top:0; border-bottom:1px solid #ccc;" size="1" />
  271. <table cellspacing="0" cellpadding="4" width="100%" align="center">
  272. <tr>
  273. <td class="panelbox">
  274. <table width="100%">
  275. <tr>
  276. <td style="width:540px">清理移动标记:</td>
  277. <td><cc1:Button ID="SubmitClearFlag" runat="server" HintInfo="清理移动标记" Text="提 交" /></td>
  278. </tr>
  279. <tr>
  280. <td>重建论坛统计(表)数据:</td>
  281. <td><cc1:Button ID="ReSetStatistic" runat="server" HintInfo="重建论坛统计(表)数据" Text="提 交" /></td>
  282. </tr>
  283. <tr>
  284. <td>系统调整论坛版块:</td>
  285. <td><cc1:Button ID="SysteAutoSet" runat="server" HintInfo="系统调整论坛版块,对论坛版块表中的链接, 子版数等相关内容进行调整. " Text="提 交" /></td>
  286. </tr>
  287. <asp:Panel ID="UpdateStoreProcPanel" Visible="true" runat="server">
  288. <tr>
  289. <td>更新分表存储过程:</td>
  290. <%--<td><cc1:Button ID="UpdatePostSP" runat="server" HintInfo="更新分表存储过程" Text="提 交" /></td>--%>
  291. <td>
  292.     <span id="UpdatePostSP"  onmouseover="showhintinfo(this,0,0,'','更新分表存储过程','50','up');" onmouseout="hidehintinfo();">
  293. <span>
  294. <button id="UpdatePostSP" type="button" class="ManagerButton" onclick="javascript:run('UpdatePostSP','1');">
  295. <img src="../images/submit.gif" />提 交
  296. </button>
  297. </span>
  298. </span>
  299. </td>
  300. </tr>
  301. </asp:Panel>
  302. <tr>
  303. <td>更新分表最大和最小主题ID:</td>
  304. <td><cc1:Button ID="UpdatePostMaxMinTid" runat="server" HintInfo="更新分表最大和最小主题ID" Text="提 交" /></td>
  305. </tr>
  306. <tr>
  307. <td>为未建立全文索引的帖子表建立全文索引:</td>
  308. <td>
  309. <cc1:Button id="CreateFullTextIndex" runat="server" Text="提 交" 
  310. HintInfo="为未建立全文索引的帖子表建立全文索引,同时为已建全文索引的帖子表进行完全填充,操作时间与帖子数据量多少有关. 操作的结果要参见SqlServer相应数据库的“全文目录”的填充进度.">
  311. </cc1:Button>
  312. </td>
  313. </tr>
  314. <%--<tr>
  315. <td>更新所有版块的当前帖数:</td>
  316. <td><cc1:Button id="UpdateCurTopics" runat="server" Text="提 交" HintInfo="如果版块内主题数缺少或分页不准, 可执行此操作"></cc1:Button></td>
  317. </tr>--%>
  318. <tr>
  319. <td>更新所有版块最后发帖:</td>
  320. <td><cc1:Button ID="UpdateForumLastPost" runat="server" HintInfo="更新版块最后发帖" Text="提 交" /></td>
  321. </tr>
  322. </table>
  323. </td>
  324. </tr>
  325. </table>
  326. <hr style="border-top:0; border-bottom:1px solid #ccc;" size="1" />
  327. <table cellspacing="0" cellpadding="4" width="100%" align="center">
  328. <tr>
  329. <td class="panelbox">
  330. <table width="100%">
  331. <tr>
  332. <td style="width:540px">更新我的主题:</td>
  333. <td><cc1:Button ID="UpdateMyTopic" runat="server" HintInfo="更新我的主题" Text="提 交" /></td>
  334. </tr>
  335. <tr>
  336. <td>更新我的帖子:</td>
  337. <%--<td><cc1:Button ID="UpdateMyPost" runat="server" HintInfo="更新我的帖子" Text="提 交" /></td>--%>
  338. <td>
  339.     <span id="UpdateMyPost"  onmouseover="showhintinfo(this,0,0,'','更新我的帖子','50','up');" onmouseout="hidehintinfo();">
  340. <span>
  341. <button id="UpdateMyPost" type="button" class="ManagerButton" onclick="javascript:run('UpdateMyPost','1');">
  342. <img src="../images/submit.gif" />提 交
  343. </button>
  344. </span>
  345. </span>
  346. </td>
  347. </tr>
  348. </table>
  349. </td>
  350. </tr>
  351. </table>
  352. <cc1:Hint id="Hint1" runat="server" HintImageUrl="../images"></cc1:Hint>
  353.   </div>
  354. </form>
  355. <%=footer%>
  356. </body>
  357. </html>