- <%@ Page Inherits="huang.list" Language="C#" src="cs/huang.cs" %>
- <%@ OutputCache Duration="5" VaryByParam="page;Fid1;Fid2" %>
- <html>
- <head>
- <title></title>
- <link href="css/css.css" rel="stylesheet" type="text/css">
- </head>
- <BODY
- leftMargin=0 topMargin=0 marginheight="10" marginwidth="10" class=bodycss>
- <form runat="server">
- <!--#include file="inc/top.dat"-->
- <table cellspacing=1 cellpadding=3 align=center class=ziti3 width="95%" >
- <tr><td height=25 valign=middle width=20%>
- <img src="img/ico.gif">斑竹:<%=ban%>
- </td><td Align=left width=20%><img src="img/icon.gif">论坛通知:</td><td width=60%><marquee scrolldelay='50' scrollamount='1' onmouseout="if (document.all!=null){this.start()}" onmouseover="if (document.all!=null){this.stop()}"><%=Noti%></marquee></td></tr>
- </table>
- <table cellspacing="1" cellpadding="0" align=center width="95%" border=0 class=unnamed3 >
- <tr class=bar><td >
- <a href="index.aspx">论坛首页</a> →
- <a href="index.aspx?Fid1=<%=Fid1%>"><%=Fid1Name%></a> → <%=Fid2Name%> → 帖子列表
- </td></tr>
- </table>
- <table cellspacing="1" cellpadding="0" align=center width="95%" border=0>
- <tr class=ziti><td >
- <a href="newtopic.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>"><img src="img/butnew.gif" border=0></a>
- </td></tr>
- </table>
- <asp:Repeater id="score" runat="server" >
- <HeaderTemplate>
- <table width="95%" border="0" align="center" cellpadding="6" cellspacing="1" class=tablemain >
- <tr >
- <td class=tablemain3 >
- 状态
- </td>
- <td class=tablemain3 >
- 主题
- </td>
- <td class=tablemain3 >
- 窗
- </td>
- <td class=tablemain3 >
- 作者
- </td>
- <td class=tablemain3 >
- 最后修改时间
- </td>
- <td class=tablemain3>
- 回复
- </td>
- </tr>
- </HeaderTemplate>
- <ItemTemplate>
- <tr class=tablemain2>
- <td width=10% class=tablemain1>
- <a title="|状态|点击次数|回复数"><%# DataBinder.Eval(Container.DataItem,"Expression") %></a>
- </td>
- <td width=50% >
- <a href="display.aspx?id=<%# DataBinder.Eval(Container.DataItem,"TopicId") %>&Fid1=<%=Fid1%>&Fid2=<%=Fid2%>"><%# DataBinder.Eval(Container.DataItem,"Topic") %></a>
- </td>
- <td width=5% >
- <a href="display.aspx?id=<%# DataBinder.Eval(Container.DataItem,"TopicId") %>&Fid1=<%=Fid1%>&Fid2=<%=Fid2%>" target=_blank title="新开窗口"><img src="img/neww.gif" border=0></a>
- </td>
- <td width=8% class=tablemain1>
- <a href="reg_pre.aspx?Action=modify&UserName=<%# DataBinder.Eval(Container.DataItem,"Postuser") %>" target=_blank><%# DataBinder.Eval(Container.DataItem,"Postuser") %></a>
- </td>
- <td width=19% >
- <%# DataBinder.Eval(Container.DataItem,"DateAndTime") %>
- </td>
- <td width=8% class=tablemain1>
- <a href="reg_pre.aspx?Action=modify&UserName=<%# DataBinder.Eval(Container.DataItem,"LastReply") %>" target=_blank><%# DataBinder.Eval(Container.DataItem,"LastReply") %></a>
- </td>
- </tr>
- </ItemTemplate>
- <FooterTemplate>
- </tr>
- <tr >
- <td colspan="6" class=tablemain3 >
- </td>
- </tr>
- </table>
- </FooterTemplate>
- </asp:Repeater>
- </form>
- <table cellspacing="1" cellpadding="0" align=center width="95%" border=0 class=unnamed3 style="word-break:break-all">
- <tr class=bar><td>
- <%
- int i;
- int Start=100;
- int d;
- int PageTotal=TopicTotal/PageSize+1;
- Response.Write("一共有"+PageTotal.ToString()+"页,(每页"+PageSize.ToString()+"条记录)你先在在"+CurrentPage.ToString()+"页 ");
- Response.Write("<a href='list.aspx?Fid1="+Fid1+"&Fid2="+Fid2+"&page=1'> <font face=webdings>9</font></a> ");
- if (CurrentPage<4&&PageTotal>7){
- for (i=1;i<PageTotal&&i<=7;i++ ) {
- if (i==CurrentPage){
- Response.Write("<a href='list.aspx?Fid1="+Fid1+"&Fid2="+Fid2+"&page="+i+"'><font color=red>"+i+"</font></a> ");
- }
- else{
- Response.Write("<a href='list.aspx?Fid1="+Fid1+"&Fid2="+Fid2+"&page="+i+"'>"+i+"</a> ");
- }
- }
- }
- if (CurrentPage>=4&&CurrentPage<PageTotal-3) {
- for (i=CurrentPage-3;i<PageTotal&&i<=CurrentPage+3;i++ ) {
- if (i==CurrentPage){
- Response.Write("<a href='list.aspx?Fid1="+Fid1+"&Fid2="+Fid2+"&page="+i+"'><font color=red>"+i+"</font></a> ");
- }
- else{
- Response.Write("<a href='list.aspx?Fid1="+Fid1+"&Fid2="+Fid2+"&page="+i+"'>"+i+"</a> ");
- }
- }
- }
- if (CurrentPage>=PageTotal-3){
- for (i=CurrentPage-3;i<PageTotal+1;i++ ) {
- if (i>0){
- if (i==CurrentPage){
- Response.Write("<a href='list.aspx?Fid1="+Fid1+"&Fid2="+Fid2+"&page="+i+"'><font color=red>"+i+"</font></a> ");
- }
- else{
- Response.Write("<a href='list.aspx?Fid1="+Fid1+"&Fid2="+Fid2+"&page="+i+"'>"+i+"</a> ");
- }
- }
- }
- }
- Response.Write("<a href='list.aspx?Fid1="+Fid1+"&Fid2="+Fid2+"&page="+PageTotal+"'> <font face=webdings>:</font></a> ");
- %>
- </td>
- <form name="form1" method="get" action="list.aspx">
- <td><input type="hidden" name="Fid1" value="<%=Fid1%>">
- <input type="hidden" name="Fid2" value="<%=Fid1%>">
- <input type="text" name="page" size="2" class="unnamed2">
- <input type="submit" name="go" value="go" class="btn">
- </td>
- </form>
- </tr>
- </table>
- <br>
- <div align=center>
- <form name="form1" method="get" action="query.aspx">
- <input name="Fid1" type="hidden" id="Fid1" value="<%=Fid1%>">
- <input name="Fid2" type="hidden" id="Fid2" value="<%=Fid2%>">
- <input name="keyword" type="text" class="unnamed2" id="keyword">
- <span class="ziti">主题表
- <input name="table" type="radio" value="topic" checked>
- 回复表</span>
- <input type="radio" name="table" value="reply">
- <select name="type" class="unnamed2" id="type">
- <option value="title" selected>标题</option>
- <option value="author">作者</option>
- </select>
- <input name="Submit" type="submit" class="btn" value="let's go">
- </form>
- 开放的主题:<img src="img/f-open.gif">锁定的主题:<img src="img/f-lock.gif">斑竹推荐的主题:<img src="img/best.gif">
- </div>
- <br>
- <div align=center>
- <%
- Response.Write("脚本执行时间"+n3.TotalMilliseconds.ToString()+"毫秒");
- %>
- </div>
- <body>
- </html>