Display.aspx
上传用户:xuming1973
上传日期:2014-02-27
资源大小:17511k
文件大小:9k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

C#

  1. <%@ Import Namespace="UDS.Components"%>
  2. <%@ Import Namespace="System"%>
  3. <%@ Import Namespace="System.Data"%>
  4. <%@ Page language="c#" Codebehind="Display.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.BBS.Display" %>
  5. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  6. <HTML>
  7. <HEAD>
  8. <title>
  9. <%=title%>
  10. </title>
  11. <META http-equiv="Content-Type" content="text/html; charset=gb2312">
  12. <meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
  13. <meta content="C#" name="CODE_LANGUAGE">
  14. <meta content="JavaScript" name="vs_defaultClientScript">
  15. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  16. <LINK href="../../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  17. <script language="javascript">
  18. <!--
  19. function addcontent(str1,str2)
  20. {
  21. Display.Content.focus();
  22. if ((document.selection)&&(document.selection.type== "Text"))
  23. {
  24. var range= document.selection.createRange();
  25. var ch_text=range.text;
  26. range.text= str1 + ch_text + str2;
  27. else
  28. {
  29. document.Display.Content.value=document.Display.Content.value+str1+str2;
  30. Display.Content.focus();
  31. }
  32. }
  33. //-->
  34. </script>
  35. <script language="C#" runat="server">
  36. private bool GetReplayOpt(string author)
  37. {
  38. if((string.Compare(username.Trim(),author.Trim(),true)==0)||(isboardmaster))
  39. {
  40. return(true);
  41. }
  42. else
  43. return(false);
  44. }
  45. </script>
  46. </HEAD>
  47. <body>
  48. <form id="Display" method="post" runat="server" encType="multipart/form-data">
  49. <div align="center">
  50. <center>
  51. <table id="AutoNumber1" style="BORDER-COLLAPSE: collapse" height="224" cellSpacing="0"
  52. cellPadding="0" width="96%" border="1">
  53. <tr bgcolor="#93bee2">
  54. <td class="Gbtext" align="center" colSpan="2" height="26"><asp:label id="lblTitle" runat="server" Font-Bold="True" Font-Names="宋体" Font-Size="Medium"></asp:label><asp:CheckBox ID="cbx_sysBulletin" Text="系统公告" Visible="False" AutoPostBack="True" Runat="server"></asp:CheckBox><asp:CheckBox ID="cbx_DeskTop" Text="桌面显示" Visible="False" AutoPostBack="True" Runat="server"></asp:CheckBox><asp:CheckBox ID="cbx_boardBulletin" Text="板块公告" Visible="False" AutoPostBack="True" Runat="server"></asp:CheckBox></td>
  55. </tr>
  56. <tr>
  57. <td class="Gbtext" align="left" bgColor="#e8f4ff" height="26" valign="top">
  58. <B>发送日期</B>:<br>
  59. <asp:literal id="sendtime" runat="server"></asp:literal><br>
  60. <B>浏览次数</B>:
  61. <asp:literal id="browsetime" runat="server"></asp:literal><br>
  62. <B>回复次数</B>:
  63. <asp:literal id="replaytimes" runat="server"></asp:literal><br>
  64. <B>作者</B>:<br>
  65. <asp:literal id="sendman" runat="server"></asp:literal><br>
  66. </td>
  67. <td class="Gbtext" id="itemcontent" vAlign="top" align="left" bgColor="#e8f4ff" height="26"
  68. runat="server">
  69. </td>
  70. <asp:repeater id="replaylist" Runat="server">
  71. <ItemTemplate>
  72. <tr>
  73. <td height="26" align="left" class="Gbtext" bgcolor='#e8f4ff' valign=top>
  74. <B>发送日期</B>:<br>
  75. <asp:Literal id="replaytime" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"replay_time")%>'>
  76. </asp:Literal><br>
  77. <B>回复人</B>:<br>
  78. <asp:Literal id="replayer" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"replayer")%>'>
  79. </asp:Literal><br>
  80. </td>
  81. <td height="26" align="left" class="Gbtext" bgcolor='#e8f4ff' id="replaycontent" vAlign="top" runat="server">
  82. <asp:Panel ID = "pnlReplayOp" Visible=<%# GetReplayOpt(DataBinder.Eval(Container.DataItem,"replayer").ToString())%> Runat=server>
  83. <b>操