<%@ page language="C#" autoeventwireup="true" inherits="news_gallery_list, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="Pager" Namespace="Wuqi.Webdiyer" TagPrefix="DataPager" %>
<%@ Register TagName="meta" TagPrefix="UC" Src="~/s/include/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/s/include/head.ascx" %>
<%@ Register TagName="tip_bar" TagPrefix="UC" Src="~/s/include/tip_bar.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/s/include/foot.ascx" %>
<%@ Register TagName="GalleryNav" TagPrefix="UC" Src="~/news/gallery/GalleryNav.ascx" %>
<!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>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title><%=WMread.GetBy("n", "info_class", "id", classid)%>_<%=ZK.config("sitetitle") %></title><meta name="keywords" content="<%=ZK.config("sitekeywords") %>" />
    <meta name="description" content="<%=ZK.config("sitedescription") %>" />
    <UC:meta ID="meta1" runat="server" />
    <link type="text/css" rel="stylesheet" href="/news/gallery/skin/style.css" />
</head>
<body>
    <div class="wrap"><a name="pagetop" id="pagetop"></a><UC:head ID="head1" runat="server" />
        <UC:tip_bar ID="tip_bar1" runat="server" />
        <UC:GalleryNav ID="GalleryNav1" runat="server" />

        <script type="text/javascript" src="/s/js/jquery-1.8.3.min.js"></script>

        <div class="box pt5">
            <asp:Panel ID="Panel_Nodata" runat="server" Visible="false">
                <div class="NoData">亲，对不起，此分类下面还没有数据！</div>
            </asp:Panel>
            <asp:Panel ID="Panel_List" runat="server">
                <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_OnItemDataBound">
                    <HeaderTemplate>
                        <div id="CaseListBox">
                            <ul>
                    </HeaderTemplate>
                       <ItemTemplate>
                          <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                                <div class="con1"><a href="<%#WMcompare.IsEqual(WM.RQ("path"),"","View.aspx?id="+Eval("ID").ToString(),WM.RQ("path").Replace("$",Eval("ID").ToString()))%>" target="_blank"><img alt="<%#Server.HtmlEncode(Eval("Title").ToString())%>" <asp:Literal ID="Literal2" runat="server"></asp:Literal><%#GetThumbnail(Eval("Thumbnail").ToString())%>" /></a></div>
                                <div class="con2"><a href="<%#WMcompare.IsEqual(WM.RQ("path"),"","View.aspx?id="+Eval("ID").ToString(),WM.RQ("path").Replace("$",Eval("ID").ToString()))%>" target="_blank"><%# WM.cut(Eval("Title").ToString(),26,"..")%></a></div>
                                <div class="con3">
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                        <tr>
                                            <td class="td1">
                                                <%#GetClassName(Eval("ClassID").ToString(),8,"..")%>
                                                <div><span>阅读：</span><%#Eval("Click")%></div>
                                            </td>
                                            <td class="td2">
                                                <a href="<%#WMcompare.IsEqual(WM.RQ("path"),"","View.aspx?id="+Eval("ID").ToString(),WM.RQ("path").Replace("$",Eval("ID").ToString()))%>" target="_blank"><span>去看看</span></a>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                          </li>
                    </ItemTemplate>
                    <FooterTemplate>
                        </ul><div class="clear"></div>
                        </div>
                    </FooterTemplate>
                </asp:Repeater>
            </asp:Panel>
            <asp:Panel ID="Panel_Turn" runat="server" Visible="false" Style="padding-top: 5px;">
                <div id="DataPager">
                    <table border="0" cellspacing="0" cellpadding="0" style="margin: 0 auto">
                        <tr>
                            <td>
                                <DataPager:AspNetPager ID="Pager1" runat="server" OnPageChanged="Pager1_PageChanged" UrlPagingTarget="_self" PageSize="32" UrlPaging="true" FirstPageText="最前页" PrevPageText="上一页" NextPageText="下一页" LastPageText="最后页" PagingButtonSpacing="0" CssClass="turn" CurrentPageButtonClass="turn_on" SubmitButtonClass="pager_but" PageIndexBoxClass="pager_inp" SubmitButtonText="转到" ShowPageIndexBox="Auto" ShowBoxThreshold="0" ShowDisabledButtons="false" NumericButtonCount="6" FirstLastButtonsClass="turn_flpn" PrevNextButtonsClass="turn_flpn" AlwaysShow="true">
                                </DataPager:AspNetPager>
                            </td>
                        </tr>
                    </table>
                    <div class="clear" style="height: 5px"></div>
                </div>
            </asp:Panel>
        </div>
        <UC:foot ID="foot1" runat="server" />
    </div>
</body>
</html>

<script type="text/javascript">

    $(function() {
        $.getScript('/s/js/jquery.lazyload.min.js', function() {
            $.getScript('/s/js/jquery.scrollstop.js', function() {
                $("img").lazyload({
                    effect: "fadeIn",
                    event: "scrollstop",
                    threshold: 10
                });
            });
        });
    });
</script>

