<%
    //-----------------------------------------------------------
    // 文件名称: Promotions_GreetingCard_Manage.aspx
    // 页面名称: 祝福贺卡管理
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-06-19
    //-----------------------------------------------------------
%>

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Promotions_GreetingCard_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="cc1" %>

<!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="css/css_list.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" language="javascript" src="js/Common.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <!-- 图片显示用 -->
        <div id='dhtmltooltip'>
            <img src="" /></div>
        <script language="javascript" src="js/showimg.js"></script>
        <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">
                    <asp:Label ID="lblAdminName" runat="server" meta:resourcekey="lblAdminNameResource" Text="贺卡名称:" />
                    <asp:TextBox ID="txtName" runat="server" />&nbsp;
                    <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" meta:resourcekey="btnSearchResource" CssClass="button" />
                </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="添加"/> 添加 </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="编辑"/> 编辑
                    </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="删除"/> 删除
                    </asp:LinkButton>
                </div>
                <!-- 明细数据 -->
                <div class="listborder">
                    <cc1:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="datalist" PageSize="15" HeaderStyle-ForeColor="#000000" EmptyDataText="没有任何可用信息！" BorderWidth="0px" CacheName="ProductPackage" GridLines="None" TableName="" Width="98%">
                        <PagerSettings Mode="NumericFirstLast" />
                        <Columns>
                            <asp:TemplateField meta:resourcekey="DetilData" ItemStyle-Width="5%">
                                <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" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" ItemStyle-Width="5%" />
                            <asp:TemplateField HeaderText="图片预览" ItemStyle-Width="10%">
                                <headertemplate>图片预览 </headertemplate>
                                <itemtemplate>
                                    <img src="images/icon-viewpic.gif" onmouseover="javascript:ddrivetip('<img src=../<%# Eval("SrcList") %>>','#ffffff')" 
                                        onmouseout="hideddrivetip()" />
                                </itemtemplate>
                                <itemstyle horizontalalign="Center" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="Name" HeaderText="贺卡名称" SortExpression="Name" ItemStyle-Width="20%" />
                            <asp:BoundField DataField="Price" HeaderText="费用" SortExpression="Price" ItemStyle-Width="10%" />
                            <asp:BoundField DataField="FreePrice" HeaderText="免费额度" SortExpression="FreePrice" ItemStyle-Width="10%" />
                            <asp:BoundField DataField="Description" HeaderText="贺卡描述" SortExpression="Description" ItemStyle-Width="40%" />
                        </Columns>
                        <HeaderStyle CssClass="category" ForeColor="Black" />
                    </cc1: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>
    </form>
</body>
</html>
