<%@ page language="C#" autoeventwireup="true" inherits="ask_Default, App_Web_k4nthjel" enableviewstate="false" enableEventValidation="false" %>
<%@ OutputCache Duration="8000" Location="Any" VaryByParam="none" %>
<%@ Import Namespace="System.Linq" %>
<%@ Import Namespace="System.Data" %>
<%@ Register src="~/inc/PageHead.ascx" tagname="PageHead" tagprefix="uc1" %>
<%@ Register src="~/inc/PageSearchBox.ascx" tagname="PageSearchBox" tagprefix="uc2" %>
<%@ Register src="~/inc/PageFooter.ascx" tagname="PageFooter" tagprefix="uc3" %>
<%@ Register src="~/inc/NewsRight.ascx" tagname="NewsRight" tagprefix="uc4" %>
<%@ Register src="~/inc/ParamPageNavigator.ascx" tagname="ParamPageNavigator" tagprefix="uc5" %>
<%@ Register src="~/inc/NewsTopAds.ascx" tagname="NewsTopAds" tagprefix="uc6" %>
<%@ Register src="Searchbox.ascx" tagname="Searchbox" tagprefix="uc7" %>
<%@ Register src="LeftCategorys.ascx" tagname="LeftCategorys" tagprefix="uc8" %>
<%@ Register src="../inc/PageSmallHead.ascx" tagname="PageSmallHead" tagprefix="uc9" %>

<!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 id="Head1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    
    <title>福建婚嫁问答_<%= ConfigurationManager.AppSettings["site_title"]%></title>
    <link href="/css/style.css" rel="stylesheet" type="text/css" />
    <link href="/css/front.css" rel="stylesheet" type="text/css" />
    <link href="/fsk/style.css" rel="stylesheet" type="text/css" />
    <style type="text/css"></style>
    <script type="text/javascript" src="/Js/jquery.js"></script>
    <script type="text/javascript" src="/Js/utils.js"></script>
    <script type="text/javascript" src="/Js/_effect.js"></script>
    <script type="text/javascript" src="/js/ajax.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="wrapper askbody">
            <uc9:PageSmallHead ID="PageSmallHead1" runat="server" Title="问答"/>
            
            <!-- 主要内容开始 -->
            <uc7:Searchbox ID="Searchbox1" runat="server" />
            
            <div class="clear"></div>
                <uc8:LeftCategorys ID="LeftCategorys1" runat="server" />
            
            <div class="centerlist"><!--
                <%= Utils.GetADHtml("ASK-H-IMG1", "/adimages/12313.jpg", "width:530px;height:90px;",true)%>
                -->
                <div class="topics">
                    <div class="ad"><%= Utils.GetADHtml("ASK-H-LARIMG", "/adimages/aefawefwe.jpg", "width:306px;height:263px;",true)%></div>
                    <div class="list">
                        <div class="hottitle"><%= Utils.GetADHtml("ASK-H-TXT0", "婚嫁问答手机版上线啦","",false)%></div>
                        <ul class="txt">
                            <li><%= Utils.GetADHtml("ASK-H-TXT1-1", "专家在线问答专题汇总", "", false)%></li>
                            <li><%= Utils.GetADHtml("ASK-H-TXT1-2", "1005期“专心”有奖活动", "", false)%></li>
                            <li><%= Utils.GetADHtml("ASK-H-TXT1-3", "福建婚嫁网稳态平台群", "", false)%></li>
                            <li><%= Utils.GetADHtml("ASK-H-TXT1-4", "福建婚嫁网稳态平台群", "", false)%></li>
                        </ul>
                        <div class="ads">
                            <ul>
                                <li><%= Utils.GetADHtml("ASK-H-IMG2-1", "/adimages/2dsvasfdaew.gif", "width:200px;height:70px;", true)%></li>
                                <li><%= Utils.GetADHtml("ASK-H-IMG2-2", "/adimages/1xxfdsdf.gif", "width:200px;height:70px;", true)%></li>
                            </ul>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <!--
                <div class="links">
                    <div class="left block">
                        <ul>
                            <li><%= Utils.GetADHtml("ASK-H-TXT2-1", "爱情专家在线", "", false)%></li>
                            <li><%= Utils.GetADHtml("ASK-H-TXT2-2", "爱情专家在线", "", false)%></li>
                            <li><%= Utils.GetADHtml("ASK-H-TXT2-3", "爱情专家在线", "", false)%></li>
                        </ul>
                    </div>
                    <div class="right block">
                        <ul>
                            <li><%= Utils.GetADHtml("ASK-H-TXT3-1", "国家有奖活动", "", false)%></li>
                            <li><%= Utils.GetADHtml("ASK-H-TXT3-2", "国家有奖活动", "", false)%></li>
                            <li><%= Utils.GetADHtml("ASK-H-TXT3-3", "国家有奖活动", "", false)%></li>
                            <li><%= Utils.GetADHtml("ASK-H-TXT3-4", "国家有奖活动", "", false)%></li>
                            <li><%= Utils.GetADHtml("ASK-H-TXT3-5", "国家有奖活动", "", false)%></li>
                            <li><%= Utils.GetADHtml("ASK-H-TXT3-6", "国家有奖活动", "", false)%></li>
                        </ul>
                    </div>
                    <div class="clear"></div>
                </div>
                -->
                
                <%
                    int _i = 0;
                    foreach (string[] pCate in Utils.arrAskCategorys)
                    {
                        if (pCate[1] == "0")
                        {
                            %>
                <div class="blockitem autotab">
                    <div class="tit"><span><strong><%= pCate[2] %></strong> 最常见的问题</span><a target="_blank" href="<%= Utils.GetAskCateLinkUrl(pCate[0]) %>" class="more" title="<%= pCate[2] %>">更多</a></div>
                    <ul class="tabs">
                    <%
                        bool isFirst = true;
                        _i = 0;
                        foreach (string[] subCate in Utils.arrAskCategorys)
                        {
                            if (subCate[1] == pCate[0])
                            {
                                if (_i > 5) break;
                                %>
                                    <li id="b<%= subCate[0] %>" class="tab <%= isFirst ? "chked" : "" %>"><a href="javascript:void(0);"><%= subCate[2]%></a></li>
                                <%
                                    isFirst = false;

                                    _i++;                        
                            }
                        }
                             %>
                    </ul>
                    
                    <%
                        isFirst = true;
                        foreach (string[] subCate in Utils.arrAskCategorys)
                        {
                            if (subCate[1] == pCate[0])
                            {
                                %>
                        <ul class="list panelitem b<%= subCate[0] %>" <%= !isFirst ? "style='display:none;'" : "" %>>
                        <%
                        foreach (DataRow dr in QuestionItems.Select("subcateid=" + subCate[0]))
                        {%><li><span class="a"><a href="<%= Utils.GetAskItemLinkUrl(dr["subcateid"], dr["topcid"]) %>" target="_blank"><%= Utils.GetShortText(dr["subject"], 45)%></a></span><span class="b"><%= dr["asks"]%>/<%= dr["hots"]%></span><span class="c"><%= subCate[2]%></span></li>
                            <%
                            
                        }%>
                        </ul>
                    <%
                        isFirst = false;
                            }
                            } %>
                </div>
                <%
                        }
                    }
                         %>
            </div>
            <div class="rightlist">
                <div class="hot">
                    <div class="tit">热点问题</div>
                    <div class="bg">
                        <asp:Repeater ID="Repeater8" runat="server" DataSourceID="SqlDataSource8">
                        <HeaderTemplate><ul></HeaderTemplate>
                        <ItemTemplate><li><a target="_blank"href="<%# Utils.GetAskItemLinkUrl(DataBinder.Eval(Container.DataItem, "subcateid"),DataBinder.Eval(Container.DataItem, "topcid")) %>" title="<%# DataBinder.Eval(Container.DataItem, "subject") %>"><%# Utils.GetShortText(DataBinder.Eval(Container.DataItem, "subject"), 10)%></a></li></ItemTemplate>
                        <FooterTemplate></ul></FooterTemplate>
                        </asp:Repeater>
                        <asp:SqlDataSource ID="SqlDataSource8" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:dnt3ConnectionString %>" 
                            SelectCommand="SELECT TOP 8 subcateid, topcid,subject FROM mry_asktopics order by lastaskdate desc,asks desc,hots desc">
                        </asp:SqlDataSource>
                        <div class="clear"></div>
                    </div>
                </div>
                
                <div class="recomm">
                    <div class="tit"><span>推荐回答</span> <a href="#">更多</a></div>
                    <div class="bg">
                        <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
                            <HeaderTemplate><ul></HeaderTemplate>
                            <ItemTemplate>
                            <li>
                                <div class="q"><a target="_blank" href="<%# Utils.GetAskItemLinkUrl(DataBinder.Eval(Container.DataItem, "subcateid"),DataBinder.Eval(Container.DataItem, "topcid")) %>" title="<%# DataBinder.Eval(Container.DataItem, "subject")%>"><%# Utils.GetShortText(DataBinder.Eval(Container.DataItem, "subject"), 22)%></a></div>
                                <div class="a"><%# Utils.GetShortText(DataBinder.Eval(Container.DataItem, "topicdescr"), 50)%></div>
                            </li></ItemTemplate>
                            <FooterTemplate></ul></FooterTemplate>
                            </asp:Repeater>
                            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:dnt3ConnectionString %>" 
                                SelectCommand="SELECT TOP 16 subcateid, topcid,subject,topicdescr FROM mry_asktopics order by questiondate desc">
                                
                        </asp:SqlDataSource>
                        <div class="clear"></div>
                    </div>
                </div>
                
                <div class="levels mg_top">
                    <div class="tit">本月积分排行</div>
                    <div class="bg">
                    <asp:Repeater ID="Repeater2" runat="server" DataSourceID="SqlDataSource2">
                            <HeaderTemplate><ul></HeaderTemplate>
                            <ItemTemplate>
                            <li><span class="a"><a target="_blank" href="<%= ConfigurationManager.AppSettings["url_forum"] %>userinfo.aspx?username=<%# DataBinder.Eval(Container.DataItem, "username")%>"><%# DataBinder.Eval(Container.DataItem, "username")%></a></span><span class="b"><%# DataBinder.Eval(Container.DataItem, "askstores")%></span><span class="c"><%# DataBinder.Eval(Container.DataItem, "askposts")%></span></li>
                            </ItemTemplate>
                            <FooterTemplate></ul></FooterTemplate>
                            </asp:Repeater>
                            <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:dnt3ConnectionString %>" 
                                SelectCommand="SELECT TOP 8 t1.uid,askstores,username,asktopics,askposts FROM mry_userinfoext as t1 left join dnt_users as t2 on t1.uid = t2.uid order by askstores desc ">
                        </asp:SqlDataSource>
                        <div class="clear"></div>
                    </div>
                </div>
                
                <div class="levels mg_top">
                    <div class="tit">本月婚嫁达人</div>
                    <div class="bg">
                        <asp:Repeater ID="Repeater3" runat="server" DataSourceID="SqlDataSource3">
                            <HeaderTemplate><ul></HeaderTemplate>
                            <ItemTemplate>
                            <li><span class="a"><a target="_blank" href="<%= ConfigurationManager.AppSettings["url_forum"] %>userinfo.aspx?username=<%# DataBinder.Eval(Container.DataItem, "username")%>"><%# DataBinder.Eval(Container.DataItem, "username")%></a></span><span class="b"><%# DataBinder.Eval(Container.DataItem, "askstores")%></span><span class="c"><%# DataBinder.Eval(Container.DataItem, "askposts")%></span></li>
                            </ItemTemplate>
                            <FooterTemplate></ul></FooterTemplate>
                            </asp:Repeater>
                            <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:dnt3ConnectionString %>" 
                                SelectCommand="SELECT TOP 8 t1.uid,askstores,username,asktopics,askposts FROM mry_userinfoext as t1 left join dnt_users as t2 on t1.uid = t2.uid order by askposts desc ">
                        </asp:SqlDataSource>
                        <div class="clear"></div>
                    </div>
                </div>
            </div>
            
            <div class="clear"></div>
            
            <!-- 主要内容结束 -->
            <uc3:PageFooter ID="PageFooter1" runat="server" />
        </div>
    </form>
</body>
</html>
