<%@ Page Title="" Language="C#" MasterPageFile="~/Portal/default.Master" AutoEventWireup="true" CodeBehind="Forums_list.aspx.cs" Inherits="Dotnetcms.Web.Portal.Forumslist" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<link href="Images/forum.css" rel="stylesheet" type="text/css" />
<link href="Style/style_4.css" rel="stylesheet" type="text/css" />

<style>
     img{ border:0px;}
</style>


  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="RaCe">
  <tr valign="top">
    <td style="padding-left:18px;padding-right:18px"><table width="964" height="500" border="0" align="center" cellpadding="0" cellspacing="0" class="RaCeCenter">
      <tr valign="top">
        <td width="6" class="RaCeLeft">&nbsp;</td>
        <td valign="top" style="padding:0px 15px">
 
 
 
 <br />
  <asp:label runat="server" ID="lbl_nav"></asp:label>
	
	<br /><br />
	<a title="发新话题" id="newtopic" href="Forums_newspost.aspx?smallid=<%=Request.QueryString["smallid"] %>"  ><img alt="发新话题" border=0px src="Images/forums_img/newtopic.gif"></a>
	
版主：<asp:Label ID="lbl_boardnames"
            runat="server" Text=""></asp:Label>




<div class="maintable">
<div class="spaceborder" style="width: 98%; border-bottom: none">

<table cellspacing="0" cellpadding="4" width="100%">


<tr>
<td class="header" colspan="6">
    <table width="100%" cellspacing="0" cellpadding="0"><tr>
    <td>
    
    <a   id="currentboardname"  class="bold"></a>
    
    <script>

        document.getElementById("currentboardname").innerHTML =   document.getElementById("boardname").innerHTML;
        document.getElementById("currentboardname").href = document.getElementById("boardname").href;
       
    </script>
    
 
    
    
    
    
    </td>
    <td align="right" style=" color:#ffffff">




<!-- 排序 -->

排序方式&nbsp;
 
  <asp:DropDownList ID="ddl_field" runat="server">
        <asp:ListItem Text="回复时间" Value="lastreplydate"></asp:ListItem>
        <asp:ListItem Text="发布时间" Value="createdate"></asp:ListItem>
        <asp:ListItem Text="回复数量" Value="replycount"></asp:ListItem>
        <asp:ListItem Text="浏览次数" Value="click"></asp:ListItem>
   </asp:DropDownList>&nbsp;


     <asp:DropDownList ID="ddl_isdesc" runat="server">
        <asp:ListItem Text="按降序排列" Value="1"></asp:ListItem>
        <asp:ListItem Text="按升序排列" Value="0"></asp:ListItem>
      
    </asp:DropDownList>

 &nbsp;

        <asp:Button ID="btn_order" runat="server" Text="提交" onclick="btn_order_Click" />



<!--  -->








    </td></tr>
    </table>
</td>
</tr>

<tr class="category">
<td width="4%">&nbsp;</td>
<td width="25px">&nbsp;</td>
<td width="55%" align="left">标题</td>
<td width="12%" align="center">作者</td>
<td width="8%" align="center">查看/回复</td>
<td width="17%" align="center">最后发表</td>
</tr>




<!-- 置顶3 -->


	<asp:Repeater runat="server" ID="rpt_toplists3"    >
			<ItemTemplate>
	 
<tr class="row" style=" background-color:#f0f0f0"  >
<td class="f_folder">
  
  		  <a href="Forums_details.aspx?id=<%#Eval("id")%>&smallid=<%=Request.QueryString["smallid"]%>" target="_blank"><img  border=0px src="images/forums_img/t_top<%#Eval("posttype") %>.gif"></a>
</td>


<td class="f_icon">

  <img src="images/heart/face<%#Eval("hearttype").ToString()=="1"?"spacer":Eval("hearttype") %>.gif" alt="listicon" border=0px>  
 
</td>



<td class="f_title">
 
 
 
	<a href="Forums_details.aspx?id=<%#Eval("id")%>&smallid=<%=smallid%>">
          	 <span <%#Eval("style") %> ><%#Eval("title") %></span>
   </a>
  
</td>





<td class="f_author">
<a href="../myprofile.aspx?id=<%#Eval("senderid")%>" target="_blank"><%#Eval("senderusername")%></a>
                <br><span class="smalltxt lighttxt"><%#Eval("createdate")%></span></td>
                
                
                
<td class="f_views"><%#Eval("click")%> / <span class="lighttxt"><%#Eval("replycount")%></span>
</td>







<td class="f_last">
<span class="smalltxt"><%#Eval("lastreplydate")%></span>
<br>by 
<a href='../myProfile.aspx?id=<%#Eval("lastreplyuserid")%>' target="_blank" ><%#Eval("lastreplyusername")%></a>
</td>

</tr> 
 
   </ItemTemplate>
</asp:Repeater>
			
	
	
<!-- /置顶3 -->

<!-- 2 -->

	<asp:Repeater runat="server" ID="rpt_toplists2"    >
			<ItemTemplate>
	 
<tr class="row" style=" background-color:#f0f0f0"   >
<td class="f_folder">
  
  		  <a href="Forums_details.aspx?id=<%#Eval("id")%>&smallid=<%=Request.QueryString["smallid"]%>" target="_blank"><img src="images/forums_img/t_top<%#Eval("posttype") %>.gif" border=0px></a>
</td>


<td class="f_icon">

  <img src="images/heart/face<%#Eval("hearttype").ToString()=="1"?"spacer":Eval("hearttype") %>.gif" border=0px alt="listicon">  
 
</td>



<td class="f_title">
 
 
 
	<a href="Forums_details.aspx?id=<%#Eval("id")%>&smallid=<%=smallid%>">
          	 <span <%#Eval("style") %> ><%#Eval("title") %></span>
   </a>
  
</td>





<td class="f_author">
<a href="../myProfile.aspx?id=<%#Eval("senderid")%>"  target="_blank"><%#Eval("senderusername")%></a>
                <br><span class="smalltxt lighttxt"><%#Eval("createdate")%></span></td>
                
                
                
<td class="f_views"><%#Eval("click")%> / <span class="lighttxt"><%#Eval("replycount")%></span>
</td>







<td class="f_last">
<span class="smalltxt"><%#Eval("lastreplydate")%></span>
<br>by 
<a href="../myProfile.aspx?id=<%#Eval("lastreplyuserid")%>"  target="_blank"><%#Eval("lastreplyusername")%></a>
</td>

</tr> 
 
   </ItemTemplate>
</asp:Repeater>
			
<!-- 2 -->



<!-- 1 -->

	<asp:Repeater runat="server" ID="rpt_toplists1"    >
			<ItemTemplate>
	 
<tr class="row" style=" background-color:#f0f0f0"  >
<td class="f_folder">
  
  		  <a href="Forums_details.aspx?id=<%#Eval("id")%>&smallid=<%=Request.QueryString["smallid"]%>" target="_blank"><img src="images/forums_img/t_top<%#Eval("posttype") %>.gif"></a>
</td>


<td class="f_icon">

  <img src="images/heart/face<%#Eval("hearttype").ToString()=="1"?"spacer":Eval("hearttype") %>.gif" alt="listicon">  
 
</td>



<td class="f_title">
 
 
 
	<a href="Forums_details.aspx?id=<%#Eval("id")%>&smallid=<%=smallid%>">
          	 <span <%#Eval("style") %> ><%#Eval("title") %></span>
   </a>
  
</td>





<td class="f_author">
<a href="../myProfile.aspx?id=<%#Eval("senderid")%>"  target="_blank"><%#Eval("senderusername")%></a>
                <br><span class="smalltxt lighttxt"><%#Eval("createdate")%></span></td>
                
                
                
<td class="f_views"><%#Eval("click")%> / <span class="lighttxt"><%#Eval("replycount")%></span>
</td>







<td class="f_last">
<span class="smalltxt"><%#Eval("lastreplydate")%></span>
<br>by 
<a href='../myProfile.aspx?id=<%#Eval("lastreplyuserid")%>'  target="_blank"><%#Eval("lastreplyusername")%></a>
</td>

</tr> 
 
   </ItemTemplate>
</asp:Repeater>
			
<!-- 1 -->




	<asp:Repeater runat="server" ID="rpt_list" 
                onitemdatabound="rpt_lists_ItemDataBound">
			<ItemTemplate>
			

<tr class="row"  onMouseOver="this.style.backgroundColor='#F5FBFF'" onMouseOut="this.style.backgroundColor='#FFFFFF'" >
<td class="f_folder">
  <img src="images/forums_img/<%#IsNew(Eval("createdate")) %>" alt="listicon">
</td>


<td class="f_icon">

  <img src="images/heart/face<%#Eval("hearttype").ToString()=="1"?"spacer":Eval("hearttype") %>.gif" alt="listicon">  
 
</td>



<td class="f_title">
 
 
 
 
	<a href="Forums_details.aspx?id=<%#Eval("id")%>&smallid=<%=smallid%>">
            <span <%#Eval("style") %> ><%#Eval("title") %></span>
   </a>
  
</td>





<td class="f_author">
<a href="../myProfile.aspx?id=<%#Eval("senderid")%>" target="_blank"><%#Eval("senderusername")%></a>
                <br><span class="smalltxt lighttxt"><%#Eval("createdate")%></span></td>
                
                
                
<td class="f_views"><%#Eval("click")%> / <span class="lighttxt"><%#Eval("replycount")%></span>
</td>







<td class="f_last">
<span class="smalltxt"><%#Eval("createdate")%></span>
<br>by 
<a href="#"><%#Eval("senderusername")%></a>
</td>

</tr> 
 

			
			</ItemTemplate>
			
			</asp:Repeater>



			
			
			
			
			
			


</table>

</div>

</div>
 





 





	<div class="pages_btns">
 
		  <pg:CollectionPager runat="server" ID="cp" PageSize="20"></pg:CollectionPager>
		
	</div>
	
	
 
  
		 
           </td>
        
 
        <td width="7" align="right" class="RaCeRight">&nbsp;</td>
      </tr>
    </table></td>
</tr>
</table>

			 
</asp:Content>
