<%@ page title="" language="C#" masterpagefile="~/Admin/AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_MBF_UserGiftCardFestivalEdit, WebApp_deploy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPHead" runat="Server">
    <script src="Js/Jquery/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            if ($('#<%=ddl_FestivalType.ClientID %>').val() != "1") {
                $("#span_FestDate,#td_FestDate input").hide();
            }
            $('#<%=ddl_FestivalType.ClientID %>').change(function () {
                if ($(this).val() == "1") {

                    $("#span_FestDate,#td_FestDate input").show(500);

                }
                else {
                    $("#span_FestDate,#td_FestDate input").hide(500);
                }
            });
        });
    </script>
    <style type="text/css">
        .none
        {
            display: none;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table class="nick">
        <tr>
            <td class="tit" colspan="2">
                <asp:HiddenField ID="h_id" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="ltd">
                节日类型：
            </td>
            <td class="rtd">
                <asp:DropDownList ID="ddl_FestivalType" runat="server">
                    <asp:ListItem Text="请选择" Value=""></asp:ListItem>
                    <asp:ListItem Text="传统节日" Value="1"></asp:ListItem>
                    <asp:ListItem Text="其他节日" Value="2"></asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                    ControlToValidate="ddl_FestivalType"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="ltd">
                节日名称：
            </td>
            <td class="rtd">
                <asp:TextBox ID="txtFestivalName" runat="server" Width="200px"></asp:TextBox><asp:RequiredFieldValidator
                    ID="rfv1" runat="server" ErrorMessage="*" ControlToValidate="txtFestivalName"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="ltd">
                <span id="span_FestDate">节日时间区间：</span> 
            </td>
            <td class="rtd" id="td_FestDate">
                <asp:TextBox ID="txtBeginTime" runat="server"></asp:TextBox>
                <asp:TextBox ID="txtEndTime" runat="server"></asp:TextBox>
            </td>
            
        </tr>
        <tr>
            <td class="ltd">
                <asp:Button ID="Add" Text="保 存" CausesValidation="true" runat="server" OnClick="Add_Click" />
            </td>
            <td class="rtd">
                <asp:Button ID="ButtonReturn" runat="server" Text="返回" CausesValidation="false" OnClick="ButtonReturn_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
