<%
    //-----------------------------------------------------------
    // 文件名称: Promotions_IndianaJones_Manage.aspx
    // 页面名称: 夺宝奇兵管理
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-06-13
    //-----------------------------------------------------------
%>

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Promotions_IndianaJones_Manage, V5Shop.Shop.Promotions" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="V5" %>

<!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 runat="server">
    <title></title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />
    <link href="js/calendar-system.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="js/Common.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar-Setup.js"></script>
    <script type="text/javascript" language="javascript" src="Js/Calendar-zh.js"></script>
</head>
<body>
    <div id='dhtmltooltip'>
        <img src="" alt="" /></div>
    <script language="javascript" type="text/javascript" src="js/showimg.js"></script>
    <form id="form1" runat="server">
        <div>
            <uc3:ManageHeader ID="PageHead" runat="server" />
            <div id="search">
                <!-- 查询部 -->
                <div style="padding-right: 20px; padding-left: 20px; padding-bottom: 20px; padding-top: 20px; border-bottom: #f7f7f7 4px solid">
                    <table>
                        <tr>
                            <td style="text-align: right">
                                &nbsp;<asp:Label ID="lblAdminName" runat="server" meta:resourcekey="lblAdminNameResource" Text="活动名称:"></asp:Label></td>
                            <td>
                                <asp:TextBox ID="txtName" runat="server" Width="104px"></asp:TextBox>&nbsp;</td>
                            <td style="text-align: right">
                                &nbsp;<asp:Label ID="Label1" runat="server" meta:resourcekey="lblAdminNameResource" Text="活动开始时间:"></asp:Label></td>
                            <td>
                                <asp:TextBox ID="txtStart01" runat="server" Width="104px" onblur="return CheckDate(this, true, false);" />
                                <img id="imgStart01" alt="打开日历" src="images/calendar1.gif" title="打开日历" />
                                -
                                <asp:TextBox ID="txtEnd01" runat="server" Width="104px" onblur="return CheckDate(this, true, false);" />
                                <img id="imgEnd01" alt="打开日历" src="images/calendar1.gif" title="打开日历" />&nbsp;</td>
                            <td style="width: 8px">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right">
                                <asp:Label ID="Label5" runat="server" meta:resourcekey="lblAdminNameResource" Text="商品名称:"></asp:Label></td>
                            <td>
                                <asp:TextBox ID="txtProductName" runat="server" Width="104px"></asp:TextBox></td>
                            <td style="text-align: right">
                                <asp:Label ID="Label7" runat="server" meta:resourcekey="lblAdminNameResource" Text="活动结束时间:"></asp:Label></td>
                            <td>
                                <asp:TextBox ID="txtStart02" runat="server" Width="104px" onblur="return CheckDate(this, true, false);" />
                                <img id="imgStart02" alt="打开日历" src="images/calendar1.gif" title="打开日历" />
                                -
                                <asp:TextBox ID="txtEnd02" runat="server" Width="104px" onblur="return CheckDate(this, true, false);" />
                                <img id="imgEnd02" alt="打开日历" src="images/calendar1.gif" title="打开日历" /></td>
                            <td>
                                &nbsp;<asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" meta:resourcekey="btnSearchResource" CssClass="button" />&nbsp;</td>
                        </tr>
                    </table>
                </div>
            </div>
            <div id="content">
                <div style="padding-right: 25px; padding-left: 25px; padding-bottom: 3px; color: #4b6888; padding-top: 3px; border-bottom: #cccccc 1px solid">
                    <input id="CheckAllBox" onclick="CheckAll()" type="checkbox" class="checkbox" />全选 &nbsp;&nbsp;
                    <asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" meta:resourcekey="btnAddResource2" OnClick="btnAdd_Click"><img src="images/icon/key_add.gif" alt="Read/Write Property"/> 添加</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" meta:resourcekey="btnEditResource2" OnClick="btnEdit_Click" OnClientClick="return CheckEdit()" CausesValidation="False"><img src="images/icon/key_edit.gif" alt="Read/Write Property"/> 编辑</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="btnDel" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClick="btnDel_Click" OnClientClick="return CheckDel()"><img src="images/icon/key_delete.gif" alt="Read/Write Property"/> 删除</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="btnDetail" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClientClick="return CheckSelectOne()" OnClick="btnDetail_Click"><img src="images/icon/key_detail.gif" alt="Read/Write Property"/> 详细</asp:LinkButton></div>
                <!-- 明细数据 -->
                <div class="listborder">
                    <V5:V5ShopGridView id="GridViewShow" runat="server" allowpaging="True" allowsorting="True" autogeneratecolumns="False" cssclass="datalist" headerstyle-forecolor="#000000" emptydatatext="没有任何可用信息！">
                        <PagerSettings Mode="NumericFirstLast" />
                        <Columns>
                            <asp:TemplateField meta:resourcekey="DetilData">
                                <itemtemplate>
                                    <input runat="server" value='<%# Eval("ID") %>' id="CheckBoxID" type="checkbox" class="checkbox"
                                        onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" />
                                </itemtemplate>
                                <itemstyle horizontalalign="Center" width="5%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" >
                                <itemstyle width="5%" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="活动名称" SortExpression="Name">
                                <itemtemplate>
                                    <a target="_blank" href='../snatch.aspx?id=<%# Eval("ID") %>'>
                                        <asp:Label id="lblName" runat="server" text='<%# Eval("Name") %>' />
                                    </a>
                                </itemtemplate>
                                <itemstyle width="20%" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="商品名称" SortExpression="ProductName">
                                <itemtemplate>
                                    <a target="_blank" href='../product.aspx?id=<%# Eval("ProductID") %>'>
                                        <asp:Label id="lblProductName" runat="server" text='<%# Eval("ProductName") %>' />
                                    </a>
                                </itemtemplate>
                                <itemstyle width="20%" />
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <headertemplate>小图</headertemplate>
                                <itemtemplate>
                                    <img src="images/icon-viewpic.gif" onmouseover="javascript:ddrivetip('<img src=../<%# Eval("SrcList") %>>','#ffffff')"
                                        onmouseout="hideddrivetip()" alt='<%# Eval("SrcList") %>'/>
                                </itemtemplate>
                                <itemstyle horizontalalign="Center" width="6%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="StartDate" HeaderText="活动开始时间" SortExpression="StartDate" >
                                <itemstyle width="10%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="EndDate" HeaderText="活动结束时间" SortExpression="EndDate" >
                                <itemstyle width="10%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="MaxPrice" HeaderText="价格上限" SortExpression="MaxPrice" >
                                <itemstyle width="8%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="MinPrice" HeaderText="价格下限" SortExpression="MinPrice" >
                                <itemstyle width="8%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Score" HeaderText="消耗积分" SortExpression="Score" >
                                <itemstyle width="8%" />
                            </asp:BoundField>
                        </Columns>
                        <HeaderStyle CssClass="category" ForeColor="Black" />
                    </V5:V5ShopGridView>
                </div>
            </div>
            <div id="hiddenfield">
                <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
                <uc1:HiddenField ID="Alert" runat="server" />
            </div>
            <uc2:PageBottom ID="PageBottom1" runat="server" />
        </div>
        <script language="javascript" type="text/javascript">
        Calendar.setup({
            inputField     :    "txtStart01",
            ifFormat       :    "%Y-%m-%d", 
            button         :    "imgStart01",
            align          :    "Br",
            singleClick    :    true
        });
        Calendar.setup({
            inputField     :    "txtEnd01",
            ifFormat       :    "%Y-%m-%d", 
            button         :    "imgEnd01",
            align          :    "Br",
            singleClick    :    true
        });
        Calendar.setup({
            inputField     :    "txtStart02",
            ifFormat       :    "%Y-%m-%d", 
            button         :    "imgStart02",
            align          :    "Br",
            singleClick    :    true
        });
        Calendar.setup({
            inputField     :    "txtEnd02",
            ifFormat       :    "%Y-%m-%d", 
            button         :    "imgEnd02",
            align          :    "Br",
            singleClick    :    true
        });
        </script>
    </form>
</body>
</html>
