?? updateforumstatic.aspx
字號:
?<%@ Register TagPrefix="cc2" Namespace="Discuz.Admin.Controls.TreeView" Assembly="Discuz.Controls" %>
<%@ Register TagPrefix="cc1" Namespace="Discuz.Admin.Controls" Assembly="Discuz.Controls" %>
<%@ Page language="c#" Codebehind="updateforumstatic.aspx.cs" AutoEventWireup="false" Inherits="Discuz.admin.Forums.updateforumstatic" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML >
<HEAD>
<title>updateforumstatic</title>
<LINK href="../styles/default.css" type="text/css" rel="stylesheet">
<script language="javascript1.2" type="text/javascript">
var xmlhttp;
function getReturn(Url) //提交為aspx,aspx頁面路徑, 返回頁面的值
{
try { xmlhttp=new ActiveXObject("Msxml2.XMLHTTP") }
catch (e)
{
try {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch (E)
{
//alert("請安裝Microsofts XML parsers")
}
}
if ( !xmlhttp && typeof XMLHttpRequest != "undefined" )
{
xmlhttp=new XMLHttpRequest()
}
try
{
xmlhttp.open('GET',Url,false);
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded')
xmlhttp.send(null);
if((xmlhttp.readyState == 4)&&(xmlhttp.status ==200)){
return xmlhttp.responseText;
}
else
{ return null;
}
}
catch (e)
{
alert("你的瀏覽器不支持XMLHttpRequest對象, 請升級");
}
return null;
}
var lastnumber=0;
var currentnum=0;
function runstatic(opname,pertask)
{
if(lastnumber>-1)
{
currentnum=lastnumber/1+pertask/1; // alert(currentnum);
var result;
switch (opname)
{
case "ReSetFourmTopicAPost": result="\r\n重建論壇帖數:"+lastnumber+" 至 "+currentnum;break
case "ReSetUserDigestPosts": result="\r\n重建用戶精華帖數"+lastnumber+" 至 "+currentnum;break
case "ReSetUserPosts": result="\r\n重建用戶發帖數"+lastnumber+" 至 "+currentnum;break
case "ReSetTopicPosts": result="\r\n重建主題帖數"+lastnumber+" 至 "+currentnum;break
}
if(navigator.appName.indexOf("Explorer") > -1)
{
document.getElementById('Layer5').innerText = result;
}
else
{
document.getElementById('Layer5').textContent = result;
}
document.getElementById('success').style.display ="block";
lastnumber=getReturn('runforumstatic.aspx?opname='+opname+'&lastnumber='+lastnumber+'&pertask='+pertask);
//alert(lastnumber);
if(lastnumber==null)
{
document.getElementById('Layer5').innerText="\r\n提交成功, 請稍等...";
document.getElementById('success').style.display = "block";
count();
document.getElementById('Form1').submit();
}
}
else
{
document.getElementById('Layer5').innerText="\r\n提交成功, 請稍等...";
document.getElementById('success').style.display = "block";
count();
document.getElementById('Form1').submit();
}
}
function clearflag()
{
bar=0;
document.getElementById('Layer5').innerText="\r\n提交成功, 請稍等...";
document.getElementById('success').style.display = "block";
count();
}
var bar=0;
function count()
{
bar=bar+4;
if (bar<99) {setTimeout("count()",100);}
else { document.getElementById('success').style.display ="none"; }
}
function run(opname,pertask)
{
if(pertask=="")
{
alert('每個循環更新數量不能為空!');return;
}
lastnumber=0;
currentnum=0;
bar=0;
if(navigator.appName.indexOf("Explorer") > -1)
{
document.getElementById('Layer5').innerText="\r\n正在處理數據, 請稍等...";
}
else
{
document.getElementById('Layer5').textContent = "\r\n正在處理數據, 請稍等...";
}
document.getElementById('success').style.display = "block";
//runstatic(opname,pertask);
setInterval('runstatic("'+opname+'",'+pertask+')',1000); //每次提交時間為5秒
}
/*
function Pause(obj,iMinSecond){
if (window.eventList==null) window.eventList=new Array();
var ind=-1;
for (var i=0;i<window.eventList.length;i++){
if (window.eventList[i]==null) {
window.eventList[i]=obj;
ind=i;
break;
}
}
if (ind==-1){
ind=window.eventList.length;
window.eventList[ind]=obj;
}
setTimeout("GoOn(" + ind + ")",iMinSecond);
}
function GoOn(ind){
var obj=window.eventList[ind];
window.eventList[ind]=null;
if (obj.NextStep) obj.NextStep();
else obj();
}
function Test(name){
alert(name);
Pause(this,10000);//調用暫停函數
this.NextStep=function hello(name){
alert('hello'+name);
}
}
Test('dai');
*/
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<div id="success" style="position:absolute;z-index:300;height:120px;width:284px;left:50%;top:50%;margin-left:-150px;margin-top:-80px;display:none">
<div id="Layer2" style="position:absolute;z-index:300;width:270px;height:90px;background-color: #FFFFFF;border:solid #000000 1px;font-size:14px;">
<div id="Layer4" style="height:26px;background:#D3DBDE;line-height:26px;padding:0px 3px 0px 3px;font-weight:bolder;">操作提示</div>
<div id="Layer5" style="height:64px;line-height:150%;padding:0px 3px 0px 3px;" align="center" ><br>提交成功, 請稍等...</div>
</div><br>
<div id="Layer3" style="position:absolute;width:270px;height:90px;z-index:299;left:4px;top:5px;background-color: #E8E8E8;"></div>
</div>
<form id="Form1" runat="server">
<table cellspacing="1" cellpadding="4" width="95%" class="tableborder">
<tr>
<TD class="td1"><STRONG>重建論壇帖數</STRONG></TD>
<TD class="td1">
每個循環更新數量:
<cc1:TextBox id="pertask1" runat="server" Text="15" RequiredFieldType="暫無校驗"></cc1:TextBox></TD>
<td colspan="2" class="td1">
<A href="#" class="ImageTextButton" style="BACKGROUND-IMAGE: url(../images/submit.gif);background-position=2px;" onclick="javascript:run('ReSetFourmTopicAPost',pertask1.value);">提 交</A>
</tr>
<tr >
<TD class="td2"><STRONG>重建用戶精華帖數</STRONG></TD>
<TD class="td2">每個循環更新數量:
<cc1:TextBox id="pertask2" runat="server" Text="1000" RequiredFieldType="暫無校驗"></cc1:TextBox></TD>
<td class="td2">
<A href="#" class="ImageTextButton" style="BACKGROUND-IMAGE: url(../images/submit.gif);background-position=2px;" onclick="javascript:run('ReSetUserDigestPosts',pertask2.value);">提 交</A>
</td>
</tr>
<TR>
<TD class="td1"><STRONG>重建用戶發帖數</STRONG></TD>
<TD class="td1">每個循環更新數量:
<cc1:TextBox id="pertask3" runat="server" Text="1000" RequiredFieldType="暫無校驗"></cc1:TextBox></TD>
<TD class="td1">
<A href="#" class="ImageTextButton" style="BACKGROUND-IMAGE: url(../images/submit.gif);background-position=2px;" onclick="javascript:run('ReSetUserPosts',pertask3.value);">提 交</A>
</TD>
</TR>
<TR>
<TD class="td2"><FONT face="宋體">每個循環更新數量:
<cc1:TextBox id="pertask4" runat="server" Text="500" RequiredFieldType="暫無校驗"></cc1:TextBox></FONT></TD>
<TD class="td2">
<A href="#" class="ImageTextButton" style="BACKGROUND-IMAGE: url(../images/submit.gif);background-position=2px;" onclick="javascript:run('ReSetTopicPosts',pertask4.value);" >提 交</A>
</TD>
</TR>
<TR>
<TD class="td1"><STRONG>清理移動標記</STRONG></TD>
<TD class="td1"></TD>
<TD class="td1">
<cc1:Button id="SubmitClearFlag" runat="server" Text="提 交"></cc1:Button></TD>
</TR>
<TR>
<TD class="td2"><STRONG>系統調整論壇版塊</STRONG><br>對論壇版塊表中的鏈接, 子版數等相關內容進行調整. </TD>
<TD class="td2"></TD>
<TD class="td2">
<cc1:Button id="SysteAutoSet" runat="server" Text="提 交"></cc1:Button></TD>
</TR>
<TR>
<TD class="td1"><STRONG>更新分表存儲過程</STRONG></TD>
<TD class="td1"></TD>
<TD class="td1">
<cc1:Button id="UpdatePostSP" runat="server" Text="提 交"></cc1:Button></TD>
</TR>
<TR>
<TD class="td2"><STRONG>更新分表最大和最小主題ID</STRONG></TD>
<TD class="td2"></TD>
<TD class="td2">
<cc1:Button id="UpdatePostMaxMinTid" runat="server" Text="提 交"></cc1:Button></TD>
</TR>
</table>
<br>
</form>
<%=footer%>
</body>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -