<%
    //-----------------------------------------------------------
    // 文件名称: Promotions_ProductPackage_Operate.aspx
    // 页面名称: 商品包装添加/编辑
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-06-19
    //-----------------------------------------------------------
%>

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

<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="V5" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<!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/css_list.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" />

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

    <style type="text/css">
    .title{
        color:#666666;
        font-size: 12px; 
        font-family:Arial, Helvetica, sans-serif;
        width: 150px;
        text-align: right
    }
    .item{
        color:#666666;
        font-size: 12px; 
        font-family:Arial, Helvetica, sans-serif;
        width: 650px;
        text-align: left
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblAdd" runat="server" Text="【商品包装添加】" />
                <asp:Label ID="lblEdit" runat="server" Text="【商品包装编辑】" />
                <asp:HyperLink ID="lkReturn" runat="server" text="返回列表"/>
            </div>
        </div>
        <div style="text-align: center;">
            <asp:Panel runat="server" ID="PanelShow" Width="100%">
                <div>
                    <table id="OperateTable" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="20%" height="30" align="right" valign="middle">
                                <asp:Label ID="Label1" runat="server" Text="商品包装名称："></asp:Label></td>
                            <td width="80%" align="left" valign="middle">
                                <asp:TextBox ID="txtName" runat="server" Width="300px" MaxLength="50" />
                                <span style="color:Red;">*</span>
                                <asp:RequiredFieldValidator ID ="rfvName" runat="server" ControlToValidate="txtName" Display="dynamic" ErrorMessage="必须输入！" />
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" height="30" align="right" valign="middle">
                                <asp:Label ID="Label2" runat="server" Text="商品包装大图："></asp:Label></td>
                            <td width="80%" align="left" valign="middle">
                                <V5:ImageBox ID="imgSrcDetail" runat="server" Text="选择图片" ShowSelect="true" BoxWidth="300px" />
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" height="30" align="right" valign="middle">
                                <asp:Label ID="Label3" runat="server" Text="商品包装小图："></asp:Label></td>
                            <td width="80%" align="left" valign="middle">
                                <V5:ImageBox ID="imgSrcList" runat="server" Text="选择图片" ShowSelect="true" BoxWidth="300px" />
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" height="30" align="right" valign="middle">
                                <V5:HelpCtrl ID="HelpCtrl1" runat="server" FontColor="red" Header="费用" HideSelects="False" ImageURL="images/help.gif" Text="使用这个包装所需要支付的费用，免费时设置为0。(默认为0)" />
                                &nbsp;<asp:Label ID="Label9" runat="server" Text="费用："></asp:Label></td>
                            <td width="80%" align="left" valign="middle">
                                <V5:NumberBox ID="txtPrice" runat="server" Width="100px" IsInt="false" Value="0" />
                                </td>
                        </tr>
                        <tr>
                            <td width="20%" height="30" align="right" valign="middle">
                                <V5:HelpCtrl ID="HelpCtrl2" runat="server" FontColor="red" Header="免费额度" HideSelects="False" ImageURL="images/help.gif" Text="当用户消费金额超过这个值时，将免费使用这个包装。设置为0时表明必须支付包装费用。" />
                                &nbsp;<asp:Label ID="Label11" runat="server" Text="免费额度："></asp:Label></td>
                            <td width="80%" align="left" valign="middle">
                                <V5:NumberBox ID="txtFreePrice" runat="server" Width="100px" IsInt="false" Value="0" />
                                </td>
                        </tr>
                        <tr>
                            <td width="20%" align="right" valign="middle" style="height: 106px">
                                <asp:Label ID="Label12" runat="server" Text="包装描述："></asp:Label></td>
                            <td width="80%" align="left" valign="middle" style="height: 106px">
                                <asp:TextBox ID="txtDescription" runat="server" Height="100px" TextMode="MultiLine"
                                    Width="300px" MaxLength="250"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="revDescription" runat="server" ControlToValidate="txtDescription" Display="Dynamic" ErrorMessage="长度必须在250以内" ValidationExpression=".{0,250}"></asp:RegularExpressionValidator></td>
                        </tr>
                        <tr>
                            <td align="center" style="text-align: center;" colspan="2">
                                <br />
                                <asp:Button ID="btnAddSubmit" runat="server" meta:resourcekey="btnAddResource1" OnClick="btnAddSubmit_Click" Text="确定" CssClass="button" />
                                <input id="iptReset" runat="server" type="reset" value="重置" class="button" />
                                <asp:Button id="btnReturn" onclick="btnReturn_Click" runat="server" Text="返回列表" CssClass="button" CausesValidation="false" />
                                <br />
                            </td>
                        </tr>
                    </table>
                </div>
            </asp:Panel>
            <uc2:PageBottom ID="PageBottom1" runat="server" />
        </div>
        <div id="hiddenfield">
            <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
            <asp:HiddenField ID="IsEdit" 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>
    </form>

    <script type="text/javascript">
    //加TABLE样式
    InitTrClass();
    </script>

</body>
</html>
