display.aspx
资源名称:论坛源码.rar [点击查看]
上传用户:scene123
上传日期:2010-02-19
资源大小:3311k
文件大小:5k
源码类别:
.net编程
开发平台:
C#
- <%@ Page Inherits="huang.display" Language="C#" src="cs/huang.cs" %>
- <%@ OutputCache Duration="3" VaryByParam="id;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>
- <!--#include file="inc/top.dat"-->
- <form runat="server">
- <div Align="center" class=ziti>
- <table cellspacing="1" cellpadding="0" align=center width="95%" border=0>
- <tr class=ziti><td >
- <%if (Islocked!=1){%>
- <a href="Reply.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&TopicId=<%=id%>"><img src="img/butreply.gif" border=0></a>
- <%}%>
- </td></tr>
- </table>
- <table width="95%" border="0" align="center" cellpadding="4" cellspacing="1" class=tablemain>
- <tr class=tablemain1>
- <td width="16%">
- </td>
- <td>主题
- </td>
- </tr>
- <tr class=tablemain2 ><td><a href="reg_pre.aspx?Action=modify&UserName=<%=Topic_UserName%>" target=_blank><%=Topic_UserName%></a><br><img src="<%=Topic_HeadImg%>" width="<%=Topic_width%>" height="<%=Topic_height%>"><br>发贴数:<%=Topic_pub%><br>论坛职位:<%=Topic_pos%>
- </td>
- <td><b><%=Topic_Topic%></b><br><%=Topic_Body%>
- <font color=#cccccc><hr align="left" width="40%" size="1" noshade></font>
- <%=Topic_sign%><br>
- <div align="right" ><font color=#cccccc >[发表于<%=Topic_DateAndTime%>]</font></div>
- </td>
- </tr>
- </table>
- <asp:DataGrid id="score" runat="server"
- AutoGenerateColumns="False"
- Width="95%"
- BorderColor="#89BA89" BorderStyle="None" BorderWidth="1px" BackColor="#DEEEDE" CellPadding="4"
- PageSize="12"
- PagerStyle-Mode="NumericPages"
- AllowPaging="True"
- OnPageIndexChanged="DataGrid_PageChanged"
- CssClass="datagrid"
- >
- <Columns>
- <asp:TemplateColumn ItemStyle-Width=15% >
- <ItemTemplate>
- <a href="reg_pre.aspx?Action=modify&UserName=<%# DataBinder.Eval(Container.DataItem,"UserName")%>" target=_blank><%# DataBinder.Eval(Container.DataItem,"UserName")%></a><br>
- <img src="<%# DataBinder.Eval(Container.DataItem,"HeadImg")%>" width="<%# DataBinder.Eval(Container.DataItem,"width")%>" height="<%# DataBinder.Eval(Container.DataItem,"height")%>"><br>
- 发贴数:<%# DataBinder.Eval(Container.DataItem,"pub")%><br>
- 论坛职位:<%# DataBinder.Eval(Container.DataItem,"pos")%><br>
- </ItemTemplate>
- </asp:TemplateColumn>
- </Columns>
- <Columns>
- <asp:TemplateColumn ItemStyle-Width=80% ItemStyle-Height=100>
- <ItemTemplate>
- <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class=ziti height=100%><tr><td vAlign=top><b><%# DataBinder.Eval(Container.DataItem,"Title")%></b><br>
- <%# DataBinder.Eval(Container.DataItem,"Body")%>
- <font color=#cccccc><hr align="left" width="40%" size="1" noshade></font>
- <%# DataBinder.Eval(Container.DataItem,"sign")%><br>
- <div align="right" ><font color=#cccccc >[回复于<%# DataBinder.Eval(Container.DataItem,"DateAndTime")%>]</font></div>
- <td>
- <tr><td height=10 class=ziti2><a href="Reply.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&TopicId=<%=id%>&Type=Reply"e=<%# DataBinder.Eval(Container.DataItem,"id")%>"><img src="img/butedit.gif" border=0></a> <a href="admin_front.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&Id=<%# DataBinder.Eval(Container.DataItem,"id")%>&type=reply&Action=del"><img src="img/butdel.gif" border=0</a> <a href="Reply.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&TopicId=<%=id%>"><img src="img/butreply.gif" border=0></a></td></tr>
- </table>
- </ItemTemplate>
- </asp:TemplateColumn>
- </Columns>
- </asp:DataGrid>
- </div>
- </form>
- <form name="form1" method="post" action="post_reply.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&type=fast" class=ziti>
- <table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" class=unnamed3>
- <%if (Islocked!=1){%>
- <tr align="center" class=tablemain1>
- <td colspan="2" >快速回复<font color="#666666">[UBB]代码可用</font></td>
- </tr>
- <tr align="center" class=tablemain1>
- <td width="100%" ><input name="zhuti" type="text" class="unnamed2" id="Ttle3" size="98">
- <input name="TopicId" type="hidden" id="TopicId3" value=<%=id%>></td>
- </tr>
- <tr align="center" class=tablemain1>
- <td > <textarea name="nr" cols="100" rows="7" class="unnamed2" id="textarea"></textarea>
- </td>
- </tr>
- <tr align="center" class=tablemain1>
- <td colspan="2" ><div align="center">
- <input name="Submit" type="submit" class="btn" value="提交">
- <input name="Submit2" type="reset" class="btn" value="清除">
- </div></td>
- </tr>
- <%}%>
- <tr align="center" class=tablemain1>
- <td colspan="2">
- <div align=right>
- <a href="admin_front.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&type=topic&Action=del&id=<%=id%>">[删除]</a>
- <a href="admin_front.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&type=topic&Action=lock&id=<%=id%>">[锁定]</a>
- <a href="admin_front.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&type=topic&Action=unlock&id=<%=id%>">[解除锁定]</a>
- <a href="admin_front.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&type=topic&Action=best&id=<%=id%>">[推荐]</a>
- <a href="admin_front.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&type=topic&Action=unbest&id=<%=id%>">[解除推荐]</a>
- <a href="admin_notice.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>">[本版块通知]</a>
- </div>
- </td>
- </tr>
- </table>
- <br>
- <br>
- <br>
- </form>
- <div align=center>
- <%
- Response.Write("执行时间"+n3.TotalMilliseconds.ToString()+"毫秒");
- %>
- </div>
- </body>
- </html>