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

.net编程

开发平台:

C#

  1. <%@ Page Inherits="huang.display" Language="C#" src="cs/huang.cs"  %>
  2. <%@ OutputCache Duration="3" VaryByParam="id;Fid1;Fid2" %>
  3. <html>
  4. <head>
  5. <title></title>
  6. <link href="css/css.css" rel="stylesheet" type="text/css">
  7. </head>
  8. <BODY 
  9.  leftMargin=0 topMargin=0 marginheight="10" marginwidth="10" class=bodycss>
  10. <!--#include file="inc/top.dat"-->
  11. <form runat="server">
  12. <div Align="center" class=ziti>
  13. <table cellspacing="1" cellpadding="0" align=center   width="95%"  border=0>
  14. <tr class=ziti><td  >
  15. <%if (Islocked!=1){%>
  16. <a href="Reply.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&TopicId=<%=id%>"><img src="img/butreply.gif" border=0></a>
  17. <%}%>
  18. </td></tr>
  19. </table>
  20. <table width="95%" border="0" align="center" cellpadding="4" cellspacing="1"  class=tablemain>
  21. <tr class=tablemain1>
  22. <td width="16%">
  23. </td>
  24. <td>主题
  25. </td>
  26. </tr>
  27. <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%>
  28. </td>
  29. <td><b><%=Topic_Topic%></b><br><%=Topic_Body%>
  30. <font color=#cccccc><hr align="left" width="40%" size="1" noshade></font>
  31. <%=Topic_sign%><br>
  32. <div align="right" ><font color=#cccccc >[发表于<%=Topic_DateAndTime%>]</font></div>
  33. </td>
  34. </tr>
  35. </table>
  36. <asp:DataGrid id="score" runat="server"
  37. AutoGenerateColumns="False"
  38. Width="95%"
  39. BorderColor="#89BA89"  BorderStyle="None" BorderWidth="1px" BackColor="#DEEEDE" CellPadding="4"
  40. PageSize="12"
  41. PagerStyle-Mode="NumericPages"
  42. AllowPaging="True"
  43. OnPageIndexChanged="DataGrid_PageChanged"
  44. CssClass="datagrid"
  45. >
  46. <Columns>
  47. <asp:TemplateColumn ItemStyle-Width=15%  >
  48. <ItemTemplate>
  49. <a href="reg_pre.aspx?Action=modify&UserName=<%# DataBinder.Eval(Container.DataItem,"UserName")%>" target=_blank><%# DataBinder.Eval(Container.DataItem,"UserName")%></a><br>
  50. <img src="<%# DataBinder.Eval(Container.DataItem,"HeadImg")%>" width="<%# DataBinder.Eval(Container.DataItem,"width")%>"  height="<%# DataBinder.Eval(Container.DataItem,"height")%>"><br>
  51.                发贴数:<%# DataBinder.Eval(Container.DataItem,"pub")%><br>
  52. 论坛职位:<%# DataBinder.Eval(Container.DataItem,"pos")%><br>
  53. </ItemTemplate>
  54. </asp:TemplateColumn>
  55. </Columns>
  56. <Columns>
  57. <asp:TemplateColumn ItemStyle-Width=80% ItemStyle-Height=100>
  58. <ItemTemplate>
  59. <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>
  60. <%# DataBinder.Eval(Container.DataItem,"Body")%>
  61. <font color=#cccccc><hr align="left" width="40%" size="1" noshade></font>
  62. <%# DataBinder.Eval(Container.DataItem,"sign")%><br>
  63. <div align="right" ><font color=#cccccc >[回复于<%# DataBinder.Eval(Container.DataItem,"DateAndTime")%>]</font></div>
  64. <td>
  65. <tr><td height=10 class=ziti2><a href="Reply.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&TopicId=<%=id%>&Type=Reply&quote=<%# DataBinder.Eval(Container.DataItem,"id")%>"><img src="img/butedit.gif" border=0></a>&nbsp;&nbsp;&nbsp;&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;<a href="Reply.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&TopicId=<%=id%>"><img src="img/butreply.gif" border=0></a></td></tr>
  66. </table>
  67. </ItemTemplate>
  68. </asp:TemplateColumn>
  69. </Columns>
  70. </asp:DataGrid>
  71. </div>
  72. </form>
  73. <form name="form1" method="post" action="post_reply.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&type=fast" class=ziti>
  74.   <table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" class=unnamed3>
  75.   <%if (Islocked!=1){%>
  76.        <tr align="center" class=tablemain1>
  77.       <td colspan="2"  >快速回复<font color="#666666">[UBB]代码可用</font></td>
  78.     </tr>
  79. <tr align="center" class=tablemain1> 
  80.       <td width="100%" ><input name="zhuti" type="text" class="unnamed2" id="Ttle3" size="98"> 
  81.         <input name="TopicId" type="hidden" id="TopicId3" value=<%=id%>></td>
  82.     </tr>
  83.     <tr align="center" class=tablemain1> 
  84.       <td > <textarea name="nr" cols="100" rows="7" class="unnamed2" id="textarea"></textarea> 
  85.       </td>
  86.     </tr>
  87.     <tr align="center" class=tablemain1> 
  88.       <td colspan="2" ><div align="center"> 
  89.           <input name="Submit" type="submit" class="btn" value="提交">
  90.           <input name="Submit2" type="reset" class="btn" value="清除">
  91.         </div></td>
  92.     </tr>
  93.     <%}%>
  94.         <tr align="center" class=tablemain1> 
  95.       <td colspan="2">
  96.       <div align=right>
  97. <a href="admin_front.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&type=topic&Action=del&id=<%=id%>">[删除]</a>
  98. <a href="admin_front.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&type=topic&Action=lock&id=<%=id%>">[锁定]</a>
  99. <a href="admin_front.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&type=topic&Action=unlock&id=<%=id%>">[解除锁定]</a>
  100. <a href="admin_front.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&type=topic&Action=best&id=<%=id%>">[推荐]</a>
  101. <a href="admin_front.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>&type=topic&Action=unbest&id=<%=id%>">[解除推荐]</a>
  102. <a href="admin_notice.aspx?Fid1=<%=Fid1%>&Fid2=<%=Fid2%>">[本版块通知]</a>
  103. </div>
  104.       </td>
  105.     </tr>
  106.  
  107.   </table>
  108.   
  109.   <br>
  110.   <br>
  111.   <br>
  112. </form>
  113. <div align=center>
  114. <%
  115.  Response.Write("执行时间"+n3.TotalMilliseconds.ToString()+"毫秒");
  116. %>
  117. </div>
  118. </body>
  119. </html>