<%@ Page Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register TagPrefix="UI" Namespace="ASPNET.WebControls" Assembly="ASPNET.WebControls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Import Namespace="Hishop.SystemServices" %>
<!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>
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../../utility/validate/pagevalidator.css" type="text/css" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../utility/validate/pagevalidator.js"></script>
    
    <script type="text/javascript" src="../js/Hishopv5.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="PageTitleArea">
            <div class="PageTitle">
                <asp:Literal ID="lblPageTitle" runat="server" Text="<%$ Resources:ArticleList,IDS_PageTitle %>"></asp:Literal>
            </div>
            <div style="width: 80%;">
                <asp:Literal ID="lblPageDesc" runat="server" Text="<%$ Resources:ArticleList,IDS_PageDesc %>"></asp:Literal>
            </div>
        </div>
        <Hishop:ArticleList ID="ArticleList" runat="server">
            <SkinTemplate>
                <Hishop:StatusMessage ID="Status" runat="server" Visible="False" />
                <fieldset class="AdminSearchform">
                    <legend>
                        <asp:Literal ID="lblSearchTitle" Text='<%$Resources:ArticleList,IDS_Label_SearChTitle %>'
                            runat="server"></asp:Literal>
                    </legend>
                    <table width="60%" border="0" cellspacing="0" cellpadding="0" style="margin-left: 10px">
                        <tr>
                            <td class="searchTableLeftTD">
                                <nobr><asp:Literal ID="lblArticleKeywords" Text='<%$Resources:ArticleList,IDS_Label_SearChKeyWords %>' runat="server"></asp:Literal>：</nobr>
                            </td>
                            <td class="searchTableControlTD">
                                <Hishop:DefaultButtonTextBox ID="txtKeywords" runat="server" Button="btnQueryProductTemplet"></Hishop:DefaultButtonTextBox>
                            </td>
                            <td class="searchTableLeftTD">
                                <nobr><asp:Literal ID="lblArticleCategory" Text='<%$Resources:ArticleList,IDS_Label_ArticleCategory %>' runat="server"></asp:Literal>：</nobr>
                            </td>
                            <td class="searchTableControlTD">
                                <Hishop:ArticleCategoryDropDownList ID="dropArticleCategory" AllowNull="true" runat="server">
                                </Hishop:ArticleCategoryDropDownList>
                            </td>
                            <td class="searchTableLeftTD">
                                <nobr><asp:Literal ID="lblPageSize" Text='<%$Resources:ArticleList,IDS_Label_PageSize %>' runat="server"></asp:Literal>：</nobr>
                            </td>
                            <td class="searchTableControlTD">
                                <Hishop:PageSizeDropDownList ID="dropPageSize" runat="server">
                                </Hishop:PageSizeDropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="searchTableLeftTD">
                                <nobr><asp:Literal ID="lblArticleTime" Text='<%$Resources:ArticleList,IDS_Label_ArticleTime %>' runat="server"></asp:Literal>：</nobr>
                            </td>
                            <td class="searchTableControlTD">
                                <Hishop:WebCalendar CalendarType="StartDate" runat="server" ID="calendarStartDataTime" />
                            </td>
                            <td align="center">
                                <nobr><asp:Literal ID="lblTo" Text='<%$Resources:ArticleList,IDS_Label_To %>' runat="server"></asp:Literal></nobr>
                            </td>
                            <td class="searchTableControlTD">
                                <Hishop:WebCalendar runat="server" ID="calendarEndDataTime" CalendarType="EndDate"/>
                            </td>
                            <td>
                            </td>
                            <td>
                                <asp:Button ID="btnSearch" runat="server" Text='<%$Resources:ArticleList,IDS_Button_SearCh %>'
                                    CssClass="inp_L1" />
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <div class="grdGroupFormList">
                    <div class="grdHeaderStyle">
                        <ul>
                            <li class="addArticle"><a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_CreateArticle")%>'>
                                <asp:Literal runat="server" ID="lblAddArticle" Text="<%$ Resources:ArticleList, IDS_Label_AddArticle %>"></asp:Literal></a>
                            </li>
                            <li class="spirtLines">|</li>
                            <li class="userGroupCheckAll"><a href="#" onclick="CheckClickAll()">
                                <asp:Literal ID="lblCheckAll" runat="server" Text="<%$ Resources:Resources, IDS_Label_CheckAll %>"></asp:Literal></a></li>
                            <li class="spirtLines">|</li>
                            <li class="userGroupReverseCheck"><a href="#" onclick="CheckReverse()">
                                <asp:Literal ID="lkbCheckReverse" runat="server" Text="<%$ Resources:Resources, IDS_Label_CheckReverse %>"></asp:Literal></a></li>
                            <li class="spirtLines">|</li>
                            <li class="userGroupDelCheck">
                                <Hishop:DeleteImageLinkButton ID="lkbtnDeleteCheck" runat="server" Text="<%$ Resources:Resources, IDS_Button_DeleteCheck %>" /></li>
                        </ul>
                    </div>
                    <div class="grdGroupList">
                        <div class="grdGroupListLi">
                            <Hishop:CustomGridView ID="grdArticleList" runat="server" AutoGenerateColumns="false"
                                ShowHeader="true" DataKeyNames="ArticleId" CssClass="GridViewStyle" GridLines="None"
                                RowStyle-CssClass="grdrow" HeaderStyle-CssClass="GridViewHeaderStyle" AllowSorting="true"
                                SortOrder="ASC" SortOrderBy="Title">
                                <SelectedRowStyle BackColor="#FBFBF4" />
                                <Columns>
                                    <Hishop:CheckBoxColumn ReadOnly="true" />
                                    <asp:TemplateField ItemStyle-Width="20px">
                                        <ItemTemplate>
                                            <UI:ResizeableImage Height="50px" Width="50px" runat="server" DataField="IconUrl" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:ArticleList,IDS_Header_CategoryName%>">
                                        <ItemTemplate>
	                                         <asp:Label ID="lblCategoryName" Text='<%#Eval("Name") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:ArticleList,IDS_Header_ArticleTitle%>"
                                        ItemStyle-Width="450px" SortExpression="Title">
                                        <ItemTemplate>
                                            <div class="infoTitle">
                                                <a href='<%# Globals.GetSiteUrls().UrlData.FormatUrl("ArticleDetails",Eval("ArticleId"))%>'
                                                    target="_blank">
                                                   <span style="word-break:break-all;"> <asp:Literal ID="lblArticleTitle" Text='<%#Eval("Title") %>' runat="server"></asp:Literal></span></a></div>
                                            <div class="infoIntro">
                                                <asp:Literal ID="lblDesc" runat="Server" Text='<%#Eval("Description") %>'></asp:Literal></div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:ArticleList,IDS_Header_AddedDate%>"
                                        ItemStyle-Width="15%" SortExpression="AddedDate">
                                        <ItemTemplate>
                                            <Hishop:FormatedTimeLabel ID="lblAddedDate" Time='<%#Eval("AddedDate") %>' runat="server"></Hishop:FormatedTimeLabel>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                     <asp:TemplateField HeaderText="<%$ Resources:Resources, IDS_Header_Options %>" ItemStyle-Width="20%">
                                         <ItemStyle CssClass="handleRightSelect"/>
                                         <ItemTemplate>
			                                 <a href='<%# Globals.GetSiteUrls().UrlData.FormatUrl("admin_EditArticle",Eval("ArticleId"))%>' class="SmallCommonTextButton"><asp:Literal ID="lblEditHelp" Text="<%$Resources:Resources, IDS_Button_Edit %>" runat="server"></asp:Literal></a>
			                                 <Hishop:DeleteImageLinkButton ID="lkbtnDeleteSelect" CommandName="Delete" runat="server" CssClass="SmallCommonTextButton" Text="<%$ Resources:Resources, IDS_Button_Delete %>" />
                                         </ItemTemplate>
                                     </asp:TemplateField>
                                </Columns>
                            </Hishop:CustomGridView>
                        </div>
                    </div>
                    <div class="grdGroupTabhead">
                        <UI:Pager runat="server" ListToPaging="grdArticleList" ID="pager" />
                    </div>
                </div>
            </SkinTemplate>
        </Hishop:ArticleList>
    </div>
    <br />
    <div class="botCopyInfo">
        <hr style="width: 500px;" />
        <Hishop:SiteCopyright ID="SiteCopyright1" runat="server" />
    </div>
    <br />
    <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>
