<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="aspublic.aspx.cs" Inherits="Maticsoft.Web.forum.aspublic" %>

<%@ Register src="../UserControls/CHeaderControl.ascx" tagname="CHeaderControl" tagprefix="uc1" %>
<%@ Register src="../UserControls/CFooterControl.ascx" tagname="CFooterControl" tagprefix="uc2" %>
<%@ Register src="../UserControls/blocksubscribe.ascx" tagname="blocksubscribe" tagprefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title><%=Getbbs(Request["ASNzY"])%>讨论区话题讨论区 | </title>
</head>
<body>
    <form id="form1" runat="server">
     
    <uc1:CHeaderControl ID="CHeaderControl1" runat="server" />
    <div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="forum">
	<div class="dashboard" id="dashboard">
				<ul>
        <li><a href="/forum/index.aspx">所有</a><span></span></li>
    
            <li><a href="/forum/city.aspx">
        <%if (CurrentCity != null)
          { %>
          
        <%=CurrentCity.Name%>讨论区
        
        <% }
          else
          {%>
            全部城市讨论区
        <% }%>

        </a><span></span></li>
        
        <%if (falg)
          { %>
          <li><a href="/forum/aspublic.aspx" >公共讨论区</a><span></span></li>
         <li class="current"><a href="/forum/aspublic.aspx?ASNzY=<%=ASNzY %>" ><%=bbsname%></a><span></span></li>
        <% }
          else
          {%>
            <li class="current"><a href="/forum/aspublic.aspx" >公共讨论区</a><span></span></li>

        <% }%>
        </ul>
	
	</div>
    <div id="content" class="coupons-box clear">
		<div class="box clear">
            
            <div class="box-content">
                <div class="head">
				
                 
					<h2><%=Getbbs(Request["ASNzY"])%>讨论区话题</h2>
				

                     <%if (falg)
                       { %>
					<ul class="filter"><li><a href="/forum/new.aspx?ASNzY=<%=ASNzY %>">＋发表新话题</a></li></ul>
                    <% }
                       else
                       {%>

                       	<ul class="filter"><li><a href="/forum/new.aspx">＋发表新话题</a></li></ul>
                    <% }%>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
						<tr><th width="360">话题</th><th width="80" nowrap>讨论区</th><th width="80" nowrap>回复/阅读</th><th width="100">最后发表</th></tr>
				
						
                        
                        <%int i = 1;
                            foreach (Maticsoft.Model.topic bbsmodel in bbslist)
                          {
                              Maticsoft.Model.UserInfo usermodel = new Maticsoft.Model.UserInfo();
                              Maticsoft.BLL.UserInfo userbll = new Maticsoft.BLL.UserInfo();
                              usermodel = userbll.GetModel(Convert.ToInt32(bbsmodel.User_id));  
                              
                              %>
                        <tr <% if(i%2 !=0 ){%> class="alt" <%} %> ><td style="text-align:left;">
                        
                         <%if (bbsmodel.Head != 0)
                           { %>
                        <a class="deal-title" href="/forum/topic.aspx?id=<%=bbsmodel.id %>" style="color:Red"}"><%=bbsmodel.Title%></a>
                        <%}
                           else if(bbsmodel.Head==0)
                           { %>
                             <a class="deal-title" href="/forum/topic.aspx?id=<%=bbsmodel.id %>" "><%=bbsmodel.Title%></a>
                        <% }%>
                        
                        
                        
                        
                        </td><td nowrap><a href="aspublic.aspx?ASNzY=<%=bbsmodel.Public_id %>"> <%=Gettype(bbsmodel.Public_id.ToString())%></a></td><td align="center" nowrap><%= bbsmodel.Reply_number %>/<%=bbsmodel.View_number %></td><td class="author" nowrap><%=usermodel.Username%><br/><%=bbsmodel.Last_time %></td></tr>
					
                        <%i++; }
                                %>
               
						<tr><td colspan="4"><%=strpage %></td></tr>
                    </table>
				</div>
            </div>
            
        </div>
    </div>
    <div id="sidebar">
	<uc3:blocksubscribe ID="blocksubscribe1" runat="server" />
       
    </div>
</div>

</div> <!-- bd end -->
</div> <!-- bdw end -->
    <uc2:CFooterControl ID="CFooterControl1" runat="server" />
    </form>
</body>
</html>
