<%@ 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>
    <script type="text/javascript" src="../../utility/Calendar/WdatePicker.js" ></script>
</head>
<body>
    <form id="form1" runat="server">

        <div>         

            <div class="PageTitleArea">
                <div class="PageTitle">
                    <asp:Literal ID="lblPageTitle" runat="server" Text="<%$ Resources:EngagedPromoteSales,IDS_PageTitle %>"></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="lblPageDesc" runat="server" Text="<%$ Resources:EngagedPromoteSales,IDS_PageDesc %>"></asp:Literal>
                </div>
            </div>
            <div>
                <ul class="anchors clearfix">
                <li class="tabs-selected"><a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_ManagePromoteSales")%>'><img src="../images/shiyoudecuxiao.gif" alt="" /><asp:Label runat="server" id="lblEngagedPromoteSales" Text="<%$ Resources:PromoteSales, IDS_DataField_EngagedPromoteSales %>" /></a></li>
                <li><a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_overduepromotesales")%>'><img src="../images/guoqidecuxiao.gif" alt="" /><asp:Label runat="server" id="lblOverduePromoteSales" Text="<%$ Resources:PromoteSales, IDS_DataField_OverduePromoteSales %>" /></a></li>
                </ul>
            </div>
            <Hishop:EngagedPromoteSales ID="EngagedPromoteSales" runat="server">
                <SkinTemplate>
	                        <Hishop:StatusMessage id="Status" runat="server" Visible="False" />

                    <div class="grdGroupFormList"> 
                                <div class="grdHeaderStyle">
                                    <ul>
                                        <li class="shiyoudecuxiao2">
                                        <a onmouseover="showmenu(this,'mdiv','show','bottom')" onmouseout="showmenu(this,'mdiv','hide','bottom')"><asp:Literal ID="lblAddPromoteSales" runat="server" Text="<%$ Resources:EngagedPromoteSales, IDS_FromField_lblAdPromoteSales %>"/><img style="vertical-align:middle" src="../images/dropdown.gif"></a>
                                        </li>
		                                <li class="userGroupCheckAll"><a href="#" onclick="CheckClickAll()"><asp:Label ID="SelectAll" runat="server" Text="<%$ Resources:Resources, IDS_Label_CheckAll %>"></asp:Label></a></li>
		                                <li class="spirtLines">|</li>
		                                <li class="userGroupReverseCheck"><a  href="#" onclick="CheckReverse()"><asp:Label ID="lblRecerse" runat="server" Text="<%$ Resources:Resources, IDS_Label_CheckReverse %>"></asp:Label></a></li>
		                                <li class="spirtLines">|</li>
		                                <li class="userGroupDelCheck"><Hishop:DeleteImageLinkButton ID="lbtnDeleteCheck" runat="server" Text="<%$ Resources:Resources, IDS_Button_DeleteCheck %>"></Hishop:DeleteImageLinkButton></li> 
	                                </ul>  
	                            </div>
	                            <div class="grdGroupList">
	                              <div class="grdGroupListLi">
                                    <Hishop:CustomGridView ID="grdPromoteSales" runat="server" AutoGenerateColumns="False" ShowHeader="true" AllowSorting="true" DataKeyNames="ActivityId" CssClass="GridViewStyle" GridLines="None" RowStyle-CssClass="grdrow" HeaderStyle-CssClass="GridViewHeaderStyle" SortOrderBy="ActivityId" SortOrder="DESC">
                                        <Columns>
                                            <Hishop:CheckBoxColumn  ShowHead="false"  Text="<%$ Resources:Resources, IDS_Header_Check %>" HeadWidth="30" ></Hishop:CheckBoxColumn>            
                                            <asp:TemplateField HeaderText="<%$ Resources:EngagedPromoteSales, IDS_Header_PromoteSalesName %>" SortExpression="Name" ItemStyle-Width="250px">
                                              <ItemTemplate>
	                                           <asp:Label ID="lblPromteSalesName" Text='<%#Eval("Name") %>' runat="server"></asp:Label>
                                              </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:EngagedPromoteSales, IDS_Header_PromoteSalesType %>" SortExpression="PromoteType">
                                              <ItemTemplate>
                                                <asp:Label ID="lblPromoteType" Text='<%#Eval("PromoteType") %>' style="display:none" runat="server"></asp:Label>
                                                <asp:Label ID="lblPromoteTypeName" runat="server"></asp:Label>
                                              </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:EngagedPromoteSales, IDS_Header_StartTime %>" SortExpression="StartTime">
                                                <ItemTemplate>
                                                    <Hishop:FormatedTimeLabel ID="lblStartTimes" Time='<%#Eval("StartTime") %>' runat="server" ></Hishop:FormatedTimeLabel>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:EngagedPromoteSales, IDS_Header_ClosingTime %>" SortExpression="ClosingTime">
                                                <ItemTemplate>
                                                    <Hishop:FormatedTimeLabel ID="lblClosingTimes" Time='<%#Eval("ClosingTime")%>' runat="server" ></Hishop:FormatedTimeLabel>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:Resources, IDS_Header_Options %>">
                                                <itemstyle width="150px" />
                                                <itemtemplate>
			                                         <asp:HyperLink ID="lnkEdit" CssClass="SmallCommonTextButton" runat="server" Text="<%$ Resources:EngagedPromoteSales, IDS_FormField_EditEngagedPromoteSales %>"></asp:HyperLink>
			                                         <Hishop:DeleteImageLinkButton CssClass="SmallCommonTextButton" ID="lkbDelete" runat="server"  CommandName="Delete" Text="<%$ Resources:EngagedPromoteSales, IDS_FormField_DeleteEngagedPromoteSal%>"></Hishop:DeleteImageLinkButton>
                                                </itemtemplate>
                                            </asp:TemplateField>
                                        </Columns>                    
                                    </Hishop:CustomGridView>
                                    <div class="grdGroupTabhead">
                                        <UI:Pager runat="server" ListToPaging="grdPromoteSales" ID="pager" />
                                   </div>
                                  </div>
                                </div>
                    </div>
                </SkinTemplate>
            </Hishop:EngagedPromoteSales>
        </div>
        <br />
            <!--下拉菜单操作项-->
            <div id='mdiv' class="mdiv">
            <ul>
                <li><a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_AddDiscount")%>' class="gb2"><img src="../images/zhekou.gif" alt="" /> <asp:Literal runat="server" id="lbldiscount" Text="<%$ Resources:PromoteSales, IDS_DataField_Discount %>" /></a></li>
                <li><a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_AddFeeFree")%>' class="gb2"><img src="../images/mianyunfei.gif" alt="" /> <asp:Literal runat="server" id="lblfeefree" Text="<%$ Resources:PromoteSales, IDS_DataField_FeeFree %>" /></a></li>
                <li><a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_AddPresent")%>' class="gb2"><img src="../images/manezensong.gif" alt="" /> <asp:Literal runat="server" id="lblpresent" Text="<%$ Resources:PromoteSales, IDS_DataField_Present %>" /></a></li>
                <li><a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_AddBuyToSend")%>' class="gb2"><img src="../images/shongji.gif" alt="" /> <asp:Literal runat="server" id="lblbuytosend" Text="<%$ Resources:PromoteSales, IDS_DataField_BuyToSend %>" /></a></li>
                <li><a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_AddQuantityDiscount")%>' class="gb2"><img src="../images/dazhe.gif" alt="" /> <asp:Literal runat="server" id="lblQuantityDiscount" Text="<%$ Resources:PromoteSales, IDS_DataField_QuantityDiscount %>" /></a></li>
            </ul>
            </div>
        <div style="text-align:center">
            <hr style="width:500px;" />
            <Hishop:SiteCopyright ID="SiteCopyright1" runat="server" />
        </div>
        <br />
        <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>
