<%@ 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.Tags" Assembly="Hishop.Web.Tags" %>
<%@ Register TagPrefix="UI" Namespace="ASPNET.WebControls" Assembly="ASPNET.WebControls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Register TagPrefix="Kindeditor" Namespace="kindeditor.Net" Assembly="kindeditor.Net" %>
<%@ 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="限时抢购活动"></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="lblPageDesc" runat="server" Text="限时抢购活动"></asp:Literal>
                </div>
            </div>
            
            <Hishop:CountDowns ID="countDowns" runat="server">
            <SkinTemplate>

        <Hishop:StatusMessage id="Status" runat="server" Visible="False" />
<Hishop:CountDownsSearch ID="countDownSearch" runat="server" >
<SkinTemplate>
<fieldset class="AdminSearchform">
 <legend><asp:Literal ID="litSelectQuery" runat="server" Text="查询条件"></asp:Literal></legend>      
     <table width="65%" border="0" cellspacing="0" cellpadding="0" style="margin-left:18px">
        <tr>
            <td class="searchTableLeftTD">
                <nobr> <asp:Label ID="lblSearchText" runat="server" Text="商品名称"></asp:Label>：</nobr>
            </td>
            <td class="searchTableControlTD">
               <Hishop:DefaultButtonTextBox ID="txtSearchText" runat="server" Button="btnSearchButton"></Hishop:DefaultButtonTextBox></td>
            <td class="searchTableLeftTD">
                <nobr><asp:Label ID="lblISSearchName" runat="server" Text="页面大小"></asp:Label>：</nobr>
                </td>
            <td class="searchTableControlTD">
               <Hishop:PageSizeDropDownList ID="dropPageSize" runat="server" />
            </td>
            <td>
           <asp:Button ID="btnSearchButton" runat="server"  Text="搜索" CssClass="inp_L1"></asp:Button></td>
        </tr>      
    </table>          
 </fieldset>
</SkinTemplate>
</Hishop:CountDownsSearch>

<div class="grdHeaderStyle">
    <ul>
        <li class="userGroupAddadmin"><a href='<%= Globals.GetSiteUrls().UrlData.FormatUrl("admin_AddCountDown")%>'>
            <asp:Literal ID="lblAddCountDown" runat="server" Text="添加限时抢购活动"></asp:Literal></a>
        </li>
        <li class="spirtLines">|</li>
        <li class="userGroupCheckAll"><a href="#" onclick="CheckClickAll()">
            <asp:Label ID="lblCheckAll" 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="lblCheckReverse" runat="server" Text="<%$ Resources:Resources, IDS_Label_CheckReverse %>"></asp:Label></a></li>
        <li class="spirtLines">|</li>
        <li class="userGroupDelCheck">
            <Hishop:DeleteImageLinkButton ID="lkbDelectCheck" runat="server" 
                Text="<%$ Resources:Resources, IDS_Button_DeleteCheck %>"></Hishop:DeleteImageLinkButton></li>
    </ul>
</div>
        <Hishop:CustomGridView ID="grdCountDowns" runat="server" AutoGenerateColumns="false" ShowHeader="true" DataKeyNames="CountDownId" SortOrderBy="DisplaySequence" SortOrder="DESC"
        CssClass="GridViewStyle" GridLines="None" AllowSorting="true"  RowStyle-CssClass="grdrow" HeaderStyle-CssClass="GridViewHeaderStyle">
            <Columns>
                <Hishop:CheckBoxColumn />
                <asp:TemplateField HeaderText="商品名称"  ItemStyle-Width="30%">
                    <itemtemplate>
	                  <Hishop:Private_ProName ID="Private_ProName1" length="15" runat="server" IsCountDownProduct="true" />
                    </itemtemplate>
                </asp:TemplateField>
                 <Hishop:SortImageColumn HeaderText="排序" ItemStyle-Width="10%" ReadOnly="true" />
                <asp:TemplateField HeaderText="抢购价" ItemStyle-Width="10%">
                    <itemtemplate>
                        <Hishop:FormatedMoneyLabelForAdmin ID="lblCountDownPrice" runat="server" Money='<%# Eval("CountDownPrice")%>' />
                    </itemtemplate>
                </asp:TemplateField>
                 <asp:TemplateField HeaderText="结束时间"  ItemStyle-Width="20%" >
                       <ItemTemplate>
                           <Hishop:FormatedTimeLabel ID="lblEndDate" Time='<%#Eval("EndDate") %>' runat="server"></Hishop:FormatedTimeLabel>
                       </ItemTemplate>
                 </asp:TemplateField>
                <asp:TemplateField HeaderText="操作">
                    <itemstyle width="150px" />
                    <itemtemplate>
			           <asp:HyperLink CssClass="SmallCommonTextButton" ID="lkbtnEdit" runat="server" NavigateUrl='<%# Globals.GetSiteUrls().UrlData.FormatUrl("admin_EditCountDown", Eval("CountDownId")) %>'  Target="_self" Text="编辑" ></asp:HyperLink>
			            <Hishop:DeleteImageLinkButton  CssClass="SmallCommonTextButton" runat="server" ID="Delete" Text="删除" CommandName="Delete" ></Hishop:DeleteImageLinkButton>
                    </itemtemplate>
                </asp:TemplateField>
            </Columns>
        </Hishop:CustomGridView>
        <div class="grdGroupTabhead">
            <UI:Pager runat="server" ListToPaging="grdCountDowns" ID="pager" />
        </div>

            </SkinTemplate>
            </Hishop:CountDowns>
            
        </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>

