<%
    //-----------------------------------------------------------
    // 文件名称: Promotions_GreetingCard_Operate.aspx
    // 页面名称: 祝福贺卡添加/编辑
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-06-19
    //-----------------------------------------------------------
%>

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

</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="【祝福贺卡编辑】" />
                <a runat="server" title="返回列表" id="btnReturn">返回列表</a>
            </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">
                                <asp:Label ID="Label1" runat="server" Text="祝福贺卡名称："></asp:Label></td>
                            <td width="80%" align="left"><asp:TextBox ID="txtName" runat="server" Width="300px" MaxLength="50" /></td>
                        </tr>
                        <tr>
                            <td width="20%" height="30"  align="right">
                                <asp:Label ID="Label2" runat="server" Text="祝福贺卡大图："></asp:Label></td>
                            <td width="80%" align="left">
                                <V5:ImageBox ID="imgSrcDetail" runat="server" Text="选择图片" ShowSelect="true" BoxWidth="300px" />
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" height="30"  align="right">
                                <asp:Label ID="Label3" runat="server" Text="祝福贺卡小图："></asp:Label></td>
                            <td width="80%" align="left"><V5:ImageBox ID="imgSrcList" runat="server" Text="选择图片" ShowSelect="True" BoxWidth="300px" />
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" height="30"  align="right">
                                <V5:HelpCtrl ID="HelpCtrl1" runat="server" FontColor="red" Header="贺卡费用" HideSelects="true" ImageURL="images/help.gif" Text="使用这个贺卡所需要支付的费用，免费时设置为0，默认为0。" /> 
                                <asp:Label ID="Label9" runat="server" Text="贺卡费用：" />
                            </td>
                            <td width="80%" align="left">
                                <V5:NumberBox ID="txtPrice" runat="server" Width="100px" IsInt="false" Value="0"  />
                                </td>
                        </tr>
                        <tr>
                            <td width="20%" height="30"  align="right">
                                <V5:HelpCtrl ID="HelpCtrl2" runat="server" FontColor="red" Header="免费额度" HideSelects="true" ImageURL="images/help.gif" Text="当用户消费金额超过这个值时，将免费使用这个祝福贺卡。<br>设置为0时表明必须支付贺卡费用。" /> 
                                <asp:Label ID="Label11" runat="server" Text="免费额度：" />
                            </td>
                            <td width="80%" align="left">
                                <V5:NumberBox ID="txtFreePrice" runat="server" Width="100px" IsInt="false" Value="0"  />
                                </td>
                        </tr>
                        <tr>
                            <td width="20%" height="30"  align="right">
                                <asp:Label ID="Label12" runat="server" Text="贺卡描述："></asp:Label></td>
                            <td width="80%" align="left">
                                <asp:TextBox ID="txtDescription" runat="server" Height="100px" TextMode="MultiLine" Width="300px"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="revDescription" runat="server" ControlToValidate="txtDescription" Display="Dynamic"
                                    ErrorMessage="长度必须在250以内" ValidationExpression=".{0,250}" />
                            </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="Button1" 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>
