index.aspx
上传用户:jdb8708888
上传日期:2013-05-29
资源大小:19971k
文件大小:7k
源码类别:

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

开发平台:

C#

  1. <%@ Page language="c#" Codebehind="index.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.BBS.Search.index" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>index</title>
  6. <META http-equiv="Content-Type" content="text/html; charset=gb2312">
  7. <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  8. <meta content="C#" name="CODE_LANGUAGE">
  9. <meta content="JavaScript" name="vs_defaultClientScript">
  10. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  11. <LINK href="../../../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  12. <script language="C#" runat="server">
  13. private string GetImagePath(string hittimes,string sysbulletin,string bulletin)
  14. {
  15. if(sysbulletin=="True")
  16. {
  17. return("../../../../images/sysbulletin.gif");
  18. }
  19. else if(bulletin=="True")
  20. {
  21. return("../../../../images/bulletin.gif");
  22. }
  23. else if(hittimes!="")
  24. {
  25. if(Int32.Parse(hittimes) > hotitemhittimes)
  26. return("../../../../images/hotfolder.gif");
  27. else
  28. return("../../../../images/folder.gif");
  29. }
  30. else
  31. return("../../../../images/folder.gif");
  32. </script>
  33. </HEAD>
  34. <body MS_POSITIONING="GridLayout" topmargin="0" leftmargin="0">
  35. <form id="Form1" method="post" runat="server">
  36. <table style="BORDER-COLLAPSE: collapse" borderColor="#111111" height="1" cellSpacing="0"
  37. cellPadding="0" width="100%" border="0">
  38. <tr height="30">
  39. <td class="GbText" width="3%" background="../../../../Images/treetopbg.jpg" bgColor="#c0d9e6"><font color="#003366" size="3"><IMG height="16" src="../../../../DataImages/page.gif" width="16"></font></td>
  40. <td bgcolor="#c0d9e6" class="GbText" background="../../../../Images/treetopbg.jpg"><b>公司论坛 
  41. BBS</b> | <a href='<%="index.aspx?classid="+classid%>'>搜索</a> |</td>
  42. </tr>
  43. </table>
  44. <TABLE id="Table2"  cellSpacing="0"
  45. cellPadding="0" width="100%" border="0">
  46. <TR>
  47. <TD>
  48. <TABLE id="tbl_Search" cellSpacing="0" cellPadding="0" width="100%" style="BORDER-COLLAPSE: collapse" borderColor="#93bff2" border="1" runat="server" class=gbtext>
  49. <TR>
  50. <TD colSpan="2" height=40px>&nbsp;输入关键字&nbsp;&nbsp;<asp:textbox id="tbx_Key" runat="server" Width="440" CssClass=inputcss></asp:textbox><FONT face="宋体">&nbsp;&nbsp;<asp:button id="btn_OK" runat="server" Text="开始搜索" CssClass=redbuttoncss Width=80px></asp:button></FONT></TD>
  51. </TR>
  52. <TR>
  53. <TD align="left" colSpan="2" height=40px>&nbsp;<FONT face="宋体">高级搜索选项</FONT>&nbsp;<FONT face="宋体"><asp:radiobutton id="rbtn_author" runat="server" Text="搜索作者" GroupName="searchoption" Checked="True"></asp:radiobutton></FONT><asp:radiobutton id="Radiobutton1" runat="server" Text="搜索主题" GroupName="searchoption"></asp:radiobutton>
  54. &nbsp;&nbsp;<FONT style="FONT-SIZE: x-small" face="宋体">日期范围</FONT>
  55. <asp:textbox id="tbx_Time" runat="server" Width="80px" CssClass=inputcss></asp:textbox><asp:dropdownlist id="ddl_Time" runat="server" Width=80>
  56. <asp:ListItem Value="0">全部</asp:ListItem>
  57. <asp:ListItem Value="w">星期</asp:ListItem>
  58. <asp:ListItem Value="d">日</asp:ListItem>
  59. <asp:ListItem Value="m">月</asp:ListItem>
  60. <asp:ListItem Value="y">年</asp:ListItem>
  61. </asp:dropdownlist>
  62. &nbsp;&nbsp;<FONT style="FONT-SIZE: x-small" face="宋体">论坛选择
  63. <asp:DropDownList id="dll_Board" runat="server" Width="80px"></asp:DropDownList></FONT></TD>
  64. </TR>
  65. </TABLE>
  66. </TD>
  67. </TR>
  68. <TR>
  69. <TD>
  70. <asp:DataGrid id="dgrd_Result" runat="server" Visible="False" Width="100%" AutoGenerateColumns="False"  BorderColor="#93BFF2">
  71. <HeaderStyle Font-Size="X-Small" HorizontalAlign="Center" Height="10px" ForeColor="White" VerticalAlign="Top"
  72. BackColor="#337FB2"></HeaderStyle>
  73. <AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
  74. <ItemStyle HorizontalAlign="Center" ForeColor="Black" VerticalAlign="Middle" BackColor="White"
  75. Font-Size="X-Small"></ItemStyle>
  76. <Columns>
  77. <asp:TemplateColumn HeaderText="状态">
  78. <HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
  79. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  80. <ItemTemplate>
  81. <img id="image" src='<%# GetImagePath(DataBinder.Eval(Container.DataItem,"hit_times").ToString(),(DataBinder.Eval(Container.DataItem,"sysbulletin").ToString()),(DataBinder.Eval(Container.DataItem,"bulletin").ToString()))%>' runat=server/>
  82. </ItemTemplate>
  83. </asp:TemplateColumn>
  84. <asp:TemplateColumn HeaderText="贴子主题">
  85. <ItemStyle HorizontalAlign="Left"></ItemStyle>
  86. <ItemTemplate>
  87. <a onclick="javascript:window.open('../display.aspx?ItemID=<%# DataBinder.Eval(Container, "DataItem.item_id") %>&BoardID=<%# DataBinder.Eval(Container, "DataItem.board_id")%>','_blank','')" href="#" >
  88. <%# DataBinder.Eval(Container, "DataItem.title") %>
  89. </a>
  90. </ItemTemplate>
  91. <EditItemTemplate>
  92. <asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.title") %>' ID="Textbox1">
  93. </asp:TextBox>
  94. </EditItemTemplate>
  95. </asp:TemplateColumn>
  96. <asp:BoundColumn DataField="sender" HeaderText="发布人">
  97. <HeaderStyle Width="10%"></HeaderStyle>
  98. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  99. </asp:BoundColumn>
  100. <asp:BoundColumn DataField="send_time" HeaderText="发布时间">
  101. <HeaderStyle Width="20%"></HeaderStyle>
  102. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  103. </asp:BoundColumn>
  104. <asp:BoundColumn DataField="last_replayer" HeaderText="最后回复">
  105. <HeaderStyle Width="10%"></HeaderStyle>
  106. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  107. </asp:BoundColumn>
  108. <asp:BoundColumn DataField="last_replay_time" HeaderText="最后回复时间">
  109. <HeaderStyle Width="20%"></HeaderStyle>
  110. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  111. </asp:BoundColumn>
  112. <asp:TemplateColumn HeaderText="人气">
  113. <HeaderStyle Width="10%"></HeaderStyle>
  114. <ItemStyle HorizontalAlign="Center"></ItemStyle>
  115. <ItemTemplate>
  116. <%# DataBinder.Eval(Container.DataItem,"replay_times")%>
  117. <asp:Label Runat="server" ID="bias" Text="/"></asp:Label><%# DataBinder.Eval(Container.DataItem,"hit_times")%>
  118. </ItemTemplate>
  119. </asp:TemplateColumn>
  120. </Columns>
  121. <PagerStyle Font-Size="12px" BorderStyle="Dotted" HorizontalAlign="Right" ForeColor="#93bff2"
  122. BackColor="#e8f4ff" Mode="NumericPages"></PagerStyle>
  123. </asp:DataGrid>
  124. </TD>
  125. </TR>
  126. <TR>
  127. <TD align="center">
  128. <a href='<%="../Catalog.aspx?classid="+classid%>'>返回论坛</a>
  129. </TD>
  130. </TR>
  131. </TABLE>
  132. </form>
  133. </body>
  134. </HTML>