bbstat.aspx
上传用户:scene123
上传日期:2010-02-19
资源大小:3311k
文件大小:5k
源码类别:

.net编程

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="bbstat.aspx.cs" AutoEventWireup="false" Inherits="kuangren.bbstat" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <meta name="vs_showGrid" content="False">
  6. <title>狂人论坛-论坛状态图例</title>
  7. <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
  8. <meta name="CODE_LANGUAGE" Content="C#">
  9. <meta name="vs_defaultClientScript" content="JavaScript">
  10. <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  11. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  12. <LINK href="skin/dvbbs/style.css" type="text/css" rel="stylesheet">
  13. </HEAD>
  14. <body leftmargin="0" topmargin="0">
  15. <!--#include file="sitehead.aspx" -->
  16. <div align="center">
  17. <table cellSpacing="1" cellPadding="3" width="97%" align="center" bgColor="#6595d6" border="0">
  18. <tr>
  19.       <td bgColor="#F0F0F0" height="25"><IMG height="9" hspace="3" src="skin/dvbbs/images/nav_position.gif" width="9" align="absMiddle"> 
  20.         <uc1:jianinclude2 id="Jianinclude21" runat="server"></uc1:jianinclude2> 
  21.         → 论坛状态 → <%=title%></td>
  22. </tr>
  23. </table>
  24. <br>
  25.   <table width="97%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6595d6"
  26. style="BORDER-COLLAPSE: collapse">
  27.     <tr class="title_link"> 
  28.       <td class="title"><div align="center"> <strong><a href="bbstat.aspx?action=1">今日帖数图例</a></strong></div></td>
  29.       <td class="title"><div align="center"> <strong> <a href="bbstat.aspx?action=2">主题帖数图例</a></strong></div></td>
  30.       <td class="title"><div align="center"> <strong><a href="bbstat.aspx?action=3">总帖数图例</a></strong></div></td>
  31.       <td class="title"><div align="center"> <strong><a href="bbsonline.aspx">在线图例</a></strong> 
  32.         </div></td>
  33.       <td class="title"><div align="center"> <strong><a href="bbsonline_detail.aspx">在线情况</a></strong> 
  34.         </div></td>
  35.     </tr>
  36.     <tr > 
  37.       <td colspan="5" ><div align="center">目前<strong>狂人论坛</strong> 今日帖数:<%=sumthree1%> 
  38.           帖子总数:<%=(sumone+sumtwo)%> 主题总数:<%=sumone%></div></td>
  39.     </tr>
  40.   </table>
  41.   <br>
  42.   <table cellSpacing="1" cellPadding="4" width="97%" align="center" bgColor="#6595d6" border="0">
  43.     <tr class="title_link" align="center"> 
  44.       <td class="title" style="HEIGHT: 2px" width="27%">论坛名称</td>
  45.       <td width="56%" class="title" style="HEIGHT: 2px">图形比例</td>
  46.       <td width="17%" class="title" style="HEIGHT: 2px">总帖数</td>
  47.     </tr>
  48.     <asp:repeater id="bbstat1" runat="server"> 
  49.       <itemtemplate> 
  50.         <tr align="center" bgcolor="#FFFFFF" style="padding-top: 5px; padding-bottom: 5px;"> 
  51.           <td width="27%" bgcolor="#e2ebf5"><%# DataBinder.Eval(Container.DataItem,"f2_caption") %> </td>
  52.           <td bgcolor="#FFFFFF"><div align="left">
  53.               <table width="480" height="12" border="0" cellpadding="0" cellspacing="0">
  54.                 <tr> <%if (Convert.ToUInt32(Request.QueryString["action"])==1){%>                 
  55.                   <td width="<%#(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"f2_todaynum").ToString())/sumthree)*480+1%>" bgcolor="#6595d6"></td>
  56.                   <td width="<%#480-(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"f2_todaynum").ToString())/sumthree)*480%>" bgcolor="#F0F0F0"></td>
  57.   <%}if (Convert.ToUInt32(Request.QueryString["action"])==2){%>
  58.      <td width="<%#(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"f2_topicnum").ToString())/sumone)*480+1%>" bgcolor="#6595d6"></td>
  59.                   <td width="<%#480-(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"f2_topicnum").ToString())/sumone)*480%>" bgcolor="#F0F0F0"></td>
  60. <%}if (Convert.ToUInt32(Request.QueryString["action"])==3){%>
  61.      <td width="<%#((Convert.ToInt32(DataBinder.Eval(Container.DataItem,"f2_topicnum").ToString())+Convert.ToInt32(DataBinder.Eval(Container.DataItem,"f2_replynum").ToString()))/(sumone+sumtwo))*480+1%>" bgcolor="#6595d6"></td>
  62.                   <td width="<%#480-((Convert.ToInt32(DataBinder.Eval(Container.DataItem,"f2_topicnum").ToString())+Convert.ToInt32(DataBinder.Eval(Container.DataItem,"f2_replynum").ToString()))/(sumone+sumtwo))*480%>" bgcolor="#F0F0F0"></td>
  63.  <%}%>
  64.                 </tr>
  65.               </table>
  66.             </div></td>
  67.           <td bgcolor="#e2ebf5">
  68.             <%# Judgenum(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"f2_todaynum").ToString()),Convert.ToInt32(DataBinder.Eval(Container.DataItem,"f2_topicnum").ToString()),Convert.ToInt32(DataBinder.Eval(Container.DataItem,"f2_replynum").ToString())) %>
  69.           </td>
  70.         </tr>
  71.       </itemtemplate>
  72.     </asp:repeater>
  73.     <tr align="center" bgColor="#ffffff" height="28"> 
  74.       <td colSpan="3"></td>
  75.     </tr>
  76.   </table>
  77. </div>
  78. <!--#include file="sitefloor.aspx" -->
  79. </body>
  80. </HTML>