<%@ page language="C#" masterpagefile="~/Master/Default/Page.master" autoeventwireup="true" inherits="Pic, App_Web_besrbn5f" title="Untitled Page" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<asp:Content ID="SideContent" ContentPlaceHolderID="Side" runat="Server">
    <div class="sideMenu">
        <shanRui:SideMenu ID="PageSideMenu" runat="server" />
    </div>
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="siteMapPath">
        <asp:Literal ID="SiteMapPath" runat="server" EnableViewState="False"></asp:Literal>
    </div>
    <div class="pageMainContent">
        <asp:Panel ID="NoLoginPanel" runat="server" Visible="false" EnableViewState="False">
            <asp:Label ID="PlealseLogin" runat="server" CssClass="plealseLogin" Text=""></asp:Label>
            <shanRui:MemberLogin ID="MemberLogin1" runat="server" EnableViewState="false" />
        </asp:Panel>
        <asp:Panel ID="LoginPanel" runat="server" EnableViewState="False">
            <h2>
                <asp:Literal ID="PageMainContentTitle" runat="server" EnableViewState="False"></asp:Literal></h2>
            <asp:DataList ID="PicList" runat="server" EnableViewState="False" CssClass="picList"  RepeatDirection="Horizontal" >
                <HeaderTemplate>
                    <asp:Label ID="PicListTitle" runat="server" CssClass="picListTitle"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <a href='<%# ShanRui.Web.Website.IsURLRewriter() ? String.Format("{1}-D2_{0}_{2}.{3}",Eval("PicId").ToString(),Eval("FileName").ToString(),ShanRui.Web.Website.GetLanguage(),ShanRui.Web.Website.HTMLExtension()) : String.Format("PicDetail.aspx?id={0}&fileName={1}&Language={2}",Eval("PicId").ToString(),Eval("FileName").ToString(),ShanRui.Web.Website.GetLanguage()) %>'>
                        <asp:Image ID="SmallImage" CssClass="picImage" Width="<%# new Unit(_width)%>" Height="<%# new Unit(_height)%>"
                            runat="server" ImageUrl='<%# Bind("PicPathSmall") %>' AlternateText='<%# Bind("Title") %>' /></a>
                    <div class="picText">
                        <asp:Label ID="ClassName" CssClass="picClassName" runat="server" Text='<%# String.Format("[{0}]",Eval("ClassName").ToString()) %>'></asp:Label>
                        <asp:HyperLink ID="PicTitle" CssClass="picTitle" runat="server" NavigateUrl='<%# ShanRui.Web.Website.IsURLRewriter() ? String.Format("{1}-D2_{0}_{2}.{3}",Eval("PicId").ToString(),Eval("FileName").ToString(),ShanRui.Web.Website.GetLanguage(),ShanRui.Web.Website.HTMLExtension()) : String.Format("~/PicDetail.aspx?id={0}&fileName={1}&Language={2}",Eval("PicId").ToString(),Eval("FileName").ToString(),ShanRui.Web.Website.GetLanguage()) %>'
                            Text='<%# ShanRui.Web.Strings.CutLenStr(Eval("Title").ToString(),_titleLength) %>'
                            ToolTip='<%# Eval("Title") %>'></asp:HyperLink>
                        <asp:Label ID="PicShortContent" CssClass="picShortContent" runat="server" Text='<%# ShanRui.Web.Strings.CutLenStr(Eval("PicShortContent").ToString(),_shortContentLength) %>'></asp:Label>
                    </div>
                </ItemTemplate>
                <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" CssClass="picItem" />
                <AlternatingItemStyle CssClass="picAlternating" />
                <SeparatorStyle CssClass="picSeparator" />
                <HeaderStyle CssClass="picHeader" />
            </asp:DataList>
            <div class="pageMenu">
                <webdiyer:AspNetPager ID="PicListPager" runat="server" AlwaysShow="True" UrlPaging="true"
                    EnableUrlRewriting="false" OnPageChanged="PicListPager_PageChanged" ShowBoxThreshold="20"
                    EnableViewState="False" InputBoxClass="pagerInputBox" OnPageChanging="PicListPager_PageChanging"
                    SubmitButtonClass="pagerSubmitButton" CurrentPageButtonClass="pagerCurrentPageButton">
                </webdiyer:AspNetPager>
            </div>
        </asp:Panel>
    </div>
</asp:Content>
