⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admincount.asp

📁 一个不错的论坛原代码
💻 ASP
📖 第 1 页 / 共 2 页
字号:
end if
if int(u_startid)>int(u_endid) then
errormsg="<Li>开始id必须小于结束id</li>"
call error(errormsg)
response.end
end if

sql="select t_id from topic  where t_id>="&u_startid&" and t_id<="&u_endid&""
set rs=conn.execute(sql)
do while not rs.eof
sql1="select count(r_id) as tid from reply where t_id="&rs("t_id")&""
set rs1=conn.execute(sql1)
i=0
if not rs1.eof then i=rs1("tid")
set rs1=nothing
sql2="update topic set t_replynum="&i&" where t_id="&rs("t_id")&""
conn.execute(sql2)
rs.MoveNext 
loop
set rs=nothing
succmsg="<li>主题回复计数更新完毕</li>"
call succ(succmsg)
response.end
else
%>

     <table border=1 borderColor=<%=tdc2%> cellPadding=4 cellSpacing=1 width=<%=tdc3%> style="border-collapse: collapse" align=center>
 

<form action="?action=topic" method=post>
 <tr> 
      <td align="right" width="20%" bgcolor=<%=tColor2%> class=tdc>更新帖子统计数据:</td>
      <td bgcolor=<%=tColor2%> class=tdc> <input type="submit" name="Submit" value="更新" class="bdtj" >
        对论坛帖子论坛的数据进行更新,如果帖子数量很多,更新过程会比较长
    </td>
    </tr>

    
</form>

<form action="?action=lanmu_topic" method=post>
 <tr> 
      <td align="right" width="20%" bgcolor=<%=tColor2%> class=tdc>更新论坛主题数据:</td>
      <td bgcolor=<%=tColor2%> class=tdc> <input type="submit" name="Submit" value="更新" class="bdtj" >
        对论坛主题数据进行更新,如果论坛版块主题计数有误,请运行本项

    </td>
    </tr>

    
</form>

<form action="?action=lanmu_reply" method=post>
 <tr> 
      <td align="right" width="20%" bgcolor=<%=tColor2%> class=tdc>更新论坛回复数据:</td>
      <td bgcolor=<%=tColor2%> class=tdc> <input type="submit" name="Submit" value="更新" class="bdtj" >
        对论坛回复数据进行更新,如果论坛版块回复计数有误,请运行本项


    </td>
    </tr>

    
</form>

<form action="?action=total" method=post>
 <tr> 
      <td align="right" width="20%" bgcolor=<%=tColor2%> class=tdc>更新会员统计数据:</td>
      <td bgcolor=<%=tColor2%> class=tdc> <input type="submit" name="Submit" value="更新" class="bdtj">
      对论坛会员统计数据的更新



    </td>
    </tr>

    
</form>


 <form action="?action=online" method=post> 

 <tr> 
      <td align="right" width="20%" bgcolor=<%=tColor2%> class=tdc>更新论坛在线数据:</td>
      <td bgcolor=<%=tColor2%> class=tdc> <input type="submit" name="Submit" value="更新" class="bdtj"   onclick="{if(confirm('一定要运行此项吗?论坛的在线统计将为0')){return true;}return false;}">
    将论坛的在线统计数据归零,即是将论坛的在线统计归零



    </td>
    </tr>
 </form>



 <form action="?action=tongji" method=post> 

 <tr> 
      <td align="right" width="20%" bgcolor=<%=tColor2%> class=tdc>更新论坛统计数据:</td>
      <td bgcolor=<%=tColor2%> class=tdc> <input type="submit" name="Submit" value="更新" class="bdtj"   onclick="{if(confirm('一定要运行此项吗?论坛的总访问量,和点击都将为0哦,你舍得吗?')){return true;}return false;}">
    将论坛的统计数据归零,即是将论坛的总访问量,和点击归零



    </td>
    </tr>
 </form>
 
  <form action="?action=vote" method=post> 

 <tr> 
      <td align="right" width="20%" bgcolor=<%=tColor2%> class=tdc>删除论坛投票数据:</td>
      <td bgcolor=<%=tColor2%> class=tdc> <input type="submit" name="Submit" value="更新" class="bdtj"   onclick="{if(confirm('一定要运行此项吗?论坛的投票项目全部都将删除')){return true;}return false;}">
    将论坛的投票项目全部删除,但会保留投票所属主题



    </td>
    </tr>
 </form>
 
 
 <tr> 

  
          <td height="21" width="100%" align="center"  <%=tColor%> class=tdc1 colspan="5" >
        更新主题回复数据</td>
        </tr>
        
       <form action="?action=topic_reply" method=post> 
         <tr> 
      <td align="right" width="20%" bgcolor=<%=tColor2%> class=tdc>开始ID:</td>
        <td bgcolor=<%=tColor2%> class=tdc><input type="text" size="10" name="u_startid"  class="bdtj" value="1"> 
主题ID,填写您想从哪一个ID号开始进行更新


    </td>
    </tr>

    <tr> 
      <td align="right" width="20%" bgcolor=<%=tColor2%> class=tdc>结束ID:</td>
        
      <td bgcolor=<%=tColor2%> class=tdc>  
      <input type="text" size="10" name="u_endid"  class="bdtj" value="500"> 
      将更新开始到结束ID之间的主题数据,之间的数值最好不要太大
      


    </td>
    </tr>
    
       <tr> 
      <td align="right" width="20%" bgcolor=<%=tColor2%> class=tdc></td>
      <td bgcolor=<%=tColor2%> class=tdc> <input type="submit" name="Submit" value="更新" class="bdtj">
      对主题回复数据进行更新,如果主题回复计数有误,请运行本项


    </td>
    </tr>
</form>


 <tr> 

  
          <td height="21" width="100%" align="center"  <%=tColor%> class=tdc1 colspan="5" >
         更新会员发帖量,经验值,财产,魅力统计数据</td>
        </tr>
        
       <form action="?action=userfen" method=post> 
         <tr> 
      <td align="right" width="20%" bgcolor=<%=tColor2%> class=tdc>开始ID:</td>
        <td bgcolor=<%=tColor2%> class=tdc><input type="text" size="10" name="u_startid"  class="bdtj" value="1"> 
用户ID,填写您想从哪一个ID号开始进行更新


    </td>
    </tr>

    <tr> 
      <td align="right" width="20%" bgcolor=<%=tColor2%> class=tdc>结束ID:</td>
        
      <td bgcolor=<%=tColor2%> class=tdc>  <input type="text" size="10" name="u_endid"  class="bdtj" value="100"> 
      将更新开始到结束ID之间的用户数据,之间的数值最好不要太大
      


    </td>
    </tr>
    
       <tr> 
      <td align="right" width="20%" bgcolor=<%=tColor2%> class=tdc></td>
      <td bgcolor=<%=tColor2%> class=tdc> <input type="submit" name="Submit" value="更新" class="bdtj">
      对论坛会员发帖量,经验值,财产,魅力统计数据的更新


    </td>
    </tr>
</form>


<tr> 

  
          <td height="21" width="100%" align="center"  <%=tColor%> class=tdc1 colspan="5" >
        更新会员等级</td>
        </tr>
        
       <form action="?action=grade" method=post> 
         <tr> 
      <td align="right" width="20%" bgcolor=<%=tColor2%> class=tdc>开始ID:</td>
        <td bgcolor=<%=tColor2%> class=tdc><input type="text" size="10" name="u_startid"  class="bdtj" value="1"> 
用户ID,填写您想从哪一个ID号开始进行更新


    </td>
    </tr>

    <tr> 
      <td align="right" width="20%" bgcolor=<%=tColor2%> class=tdc>结束ID:</td>
        
      <td bgcolor=<%=tColor2%> class=tdc>  <input type="text" size="10" name="u_endid"  class="bdtj" value="100"> 
      将更新开始到结束ID之间的用户数据,之间的数值最好不要太大
      


    </td>
    </tr>
    
       <tr> 
      <td align="right" width="20%" bgcolor=<%=tColor2%> class=tdc></td>
      <td bgcolor=<%=tColor2%> class=tdc> <input type="submit" name="Submit" value="更新" class="bdtj">
      对论坛会员等级更新


    </td>
    </tr>
</form>



      </table>

    </center>
    
    
<%end if%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -