<%@ Page Title="" Language="C#" MasterPageFile="~/Master/HelpMaster.master" CodeBehind="List.aspx.cs" Inherits="WAP2P.Web.PC.Help.List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="m-globalbox pb10">
        <h3 class="fs24 fcblue-2 pl20 pr20 pt10 pb10"><% =article == null ? category.Name : article.Title %></h3>
        <ruson:Space runat="server" ID="onArticle" Visible="false">
            <div class="mt10">
                <% =article.Detail %>
            </div>
        </ruson:Space>
        <ruson:Space runat="server" ID="list" Visible="false">
            <div class="m-helplist">                        
                <ruson:Space runat="server" ID="helpArticle" Visible="false">
                    <ruson:Repater runat="server" ID="rptList" ItemType="WAP2P.Article.HelpArticle">
                        <ItemTemplate>                            
                            <dl class="helplist-help js-show">
                                <dt><a href="javascript:void(0);" ><i class="iconfont fs16 g-right js-arrow">&#xe60b;</i><i class="iconfont fs20 mr10">&#xe62d;</i><%# Item.Title %></a></dt>
                                <dd><%# Item.Detail %></dd>
                            </dl>                                
                        </ItemTemplate>                        
                    </ruson:Repater>
                </ruson:Space>
                <ruson:Space runat="server" ID="helpCategory" Visible="false">
                    <ruson:Repater runat="server" ID="helpCategoryList" ItemType="WAP2P.Article.HelpCategory" >
                        <ItemTemplate>                        
                            <div class="helplist-help">
                                <span><%# Item.Name %></span>
                                <div>
                                    <ruson:Repater runat="server" ID="helpArticleList" ItemType="WAP2P.Article.HelpArticle">
                                        <ItemTemplate>
                                            <dl class="helplist-help js-show" id="a<%# Item.Id %>">
                                                <dt><a href="javascript:void(0);"><i class="iconfont fs16 g-right js-arrow">&#xe60b;</i><i class="iconfont fs20 mr10">&#xe62d;</i><%# Item.Title %></a></dt>
                                                <dd><%# Item.Detail %></dd>
                                            </dl>
                                        </ItemTemplate>                                   
                                    </ruson:Repater>
                                </div>
                            </div>
                        </ItemTemplate>                    
                    </ruson:Repater>
                </ruson:Space>            
            </div>
        </ruson:Space>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
    <script>
        $('.js-show dt').on('click', function () {
            var me = $(this);
            if (me.next().is(':hidden')) {
                me.find('a').addClass('on').find('.js-arrow').html('&#xe621;');
                me.next().stop().slideDown('fast');
                me.next().imageWidthReset();
            } else {
                me.find('a').removeClass('on').find('.js-arrow').html('&#xe60b;');
                me.next().stop().slideUp('fast');
            }
        });

        if (location.hash) {
            $(location.hash).find('dt').trigger('click');
        }
    </script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="list" runat="server"></asp:Content>
