<%@ 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="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>
    <style type="text/css">
	    .PurviewItemDivide {height:1px;width:100%;overflow:hidden;background-color:#ddd;margin:5px 0;}
	</style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="PageTitleArea">
            <div class="PageTitle">
                <asp:Literal ID="lblPageTitle" runat="server" Text="<%$ Resources:SetCategoriesThemes, IDS_PageTitle %>"></asp:Literal>
            </div>
            <div style="width: 80%;">
                <asp:Literal ID="lblPageDesc" runat="server" Text="<%$ Resources:SetCategoriesThemes, IDS_PageDesc %>" />
            </div>
        </div>
        <Hishop:SetCategoriesThemes ID="SetCategoriesThemes" runat="server">
            <SkinTemplate>
              <Hishop:StatusMessage ID="Status" runat="server" Visible="False" />
              <div class="grdGroupFormList">
                <div class="PurviewItemDivide"></div>
                <div style="height:25px;line-height:25px;">
				    <span style="color:#F97A0A;padding-left:108px;font-weight:700">
				        <asp:Literal ID="lblUpFTP" runat="server" Text="<%$ Resources:SetCategoriesThemes, IDS_Lable_UpFTP %>"></asp:Literal>
				    </span>
			    </div>
			    <div class="PurviewItemDivide"></div>
			    <div style="height:25px;">
				    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:SetCategoriesThemes, IDS_DataForm_Theme %>"></asp:Literal>：
				    <asp:FileUpload ID="fileThame" runat="server" Width="280px" />
				    <asp:Button runat="server" ID="btnUpload" Text="<%$ Resources:SetCategoriesThemes, IDS_Button_Upload %>" /><span style="color:Red">(上传文件必须为html格式)</span>
			    </div>
			    <div class="PurviewItemDivide"></div>
			    <div style="height:25px;line-height:25px;padding-left:23px;">
			        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:SetCategoriesThemes, IDS_DataForm_DeleteTheme %>"></asp:Literal>：
			        <asp:DropDownList runat="server" ID="dropThmes" />
				    <Hishop:DeleteImageLinkButton  runat="server" ID="btnDelete" Text="<%$ Resources:SetCategoriesThemes, IDS_Button_Delete %>" DeleteMsg="请确认是否删除模板" CssClass="inp_L1" />
			    </div>
			    <div class="PurviewItemDivide"></div>
			    <div style="clear:both;padding-left:108px; padding-top:10px;">
                    <Hishop:CustomGridView ID="grdTopCategries" runat="server" AutoGenerateColumns="false" ShowHeader="true"
                        DataKeyNames="CategoryId" CssClass="GridViewStyle" GridLines="None" RowStyle-CssClass="grdrow"
                        HeaderStyle-CssClass="GridViewHeaderStyle" ShowFooter="false" SelectedRowStyle-BackColor="#FBFBF4" Width="80%">
                        <Columns>
                            <asp:TemplateField HeaderText="<%$ Resources:SetCategoriesThemes, IDS_Header_Name %>" ItemStyle-Width="20%">
                                <ItemTemplate>
                                    <div style="padding-left:12px;"><asp:Label ID="lblCategoryName" runat="server" Text='<%# Eval("Name") %>' /></div>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <Hishop:DropdownColumn HeaderText="<%$ Resources:SetCategoriesThemes, IDS_Header_Theme %>"
                                JustForEditItem="false" ID="dropTheme" DataKey="Theme" DataTextField="Name"  NullToDisplay="无"
                                DataValueField="ThemeName" AllowNull="true" 
                                SortExpression="ThemeName" ItemStyle-Width="40">
                            </Hishop:DropdownColumn>
                            <asp:TemplateField HeaderText="<%$ Resources:SetCategoriesThemes, IDS_Header_Opertion %>" ItemStyle-Width="40%">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lblSave" CommandName="Save" CssClass="SmallCommonTextButton" runat="server" Text="<%$ Resources:SetCategoriesThemes, IDS_Button_Save %>" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </Hishop:CustomGridView>
                    <div style="padding-left:12px">
                        <asp:Button ID="btnSaveAll" runat="server" Text="<%$ Resources:SetCategoriesThemes, IDS_Button_SaveAll %>" CssClass="inp_L1" />
                    </div>
                </div>
              </div>
            </SkinTemplate>
        </Hishop:SetCategoriesThemes>
    </div>
    <br />
    <div class="botCopyInfo">
        <hr style="width: 500px;" />
        <Hishop:SiteCopyright ID="SiteCopyright1" runat="server" />
    </div>
    <br />
    </form>
</body>
</html>