<%@ Page Title="" Language="C#" MasterPageFile="~/Page.Master" AutoEventWireup="true" CodeBehind="RSVPAdmin.aspx.cs" Inherits="NECPPATEL.RSVPAdmin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script language="javascript" type="text/javascript" >

        function isNumber(evt) {
            evt = (evt) ? evt : window.event;
            var charCode = (evt.which) ? evt.which : evt.keyCode;
            if (charCode > 31 && (charCode < 48 || charCode > 57)) {
                return false;
            }
            return true;
        }
        function ValidatePaymentinformation() {
            var lbl = document.getElementById("<%=lblTotalMembers.ClientID%>").innerText;
        var cbAttend = document.getElementById("<%=cbNoAttendie.ClientID%>").checked;
        if (cbAttend == true) {
            return true;
        }
        if (cbAttend == false && lbl == 0) {
            alert("Please select number of members or check mark if you will not be able to attend the party");
            return false;
        }

        var cbOther = document.getElementById("<%=cbOther.ClientID%>").checked;
        var txtOther = document.getElementById("<%=txtOther.ClientID%>").value;

        if (cbOther == true && txtOther == "") {
            alert("Enter performance name other than Dance and Joke");
            document.getElementById("<%=txtOther.ClientID%>").focus();
            return false;
        }

        var cbDance = document.getElementById("<%=cbDance.ClientID%>").checked;
        var cbJokes = document.getElementById("<%=cbJokes.ClientID%>").checked;
        var cbOther = document.getElementById("<%=cbOther.ClientID%>").checked;
        var txtGroupDetails = document.getElementById("<%=txtGroupDetails.ClientID%>").value;

        if ((cbDance == true || cbJokes == true || cbOther == true) && txtGroupDetails == "") {
            alert("Please enter group detail.");
            document.getElementById("<%=cbOther.ClientID%>").focus();
            return false;
        }
        if (!ValidateTextBox(document.getElementById("<%=txtCardNumber.ClientID%>"))) {
            alert("Please enter card number");
            document.getElementById("<%=txtCardNumber.ClientID%>").focus();
            return false;
        }

        if (document.getElementById("<%=txtNameOnCard.ClientID%>").value == "") {
            alert("Please enter name on card.");
            document.getElementById("<%=txtNameOnCard.ClientID%>").focus();
            return false;
        }

        if (document.getElementById("<%=ddlCardType.ClientID%>").value == "") {
            alert("Select card type.");
            document.getElementById("<%=ddlCardType.ClientID%>").focus();
            return false;
        }
        if (document.getElementById("<%=ddlExpirtMonth.ClientID%>").value == "") {
            alert("Select card expiry month.");
            document.getElementById("<%=ddlExpirtMonth.ClientID%>").focus();
            return false;
        }
        if (document.getElementById("<%=ddlExpirtYear.ClientID%>").value == "") {
            alert("Select card expiry year.");
            document.getElementById("<%=ddlExpirtYear.ClientID%>").focus();
            return false;
        }
        if (document.getElementById("<%=txtCVVNumber.ClientID%>").value == "") {
            alert("Please enter CVV number");
            document.getElementById("<%=txtCVVNumber.ClientID%>").focus();
            return false;
        }
        if (document.getElementById("<%=txtAddress.ClientID%>").value == "") {
            alert("Please enter Address");
            document.getElementById("<%=txtAddress.ClientID%>").focus();
            return false;
        }
        if (document.getElementById("<%=txtCity.ClientID%>").value == "") {
            alert("Please enter city name");
            document.getElementById("<%=txtCity.ClientID%>").focus();
            return false;
        }
        if (document.getElementById("<%=ddlState.ClientID%>").value == "") {
            alert("Please select state.");
            document.getElementById("<%=ddlState.ClientID%>").focus();
            return false;
        }
        if (document.getElementById("<%=txtPostalCode.ClientID%>").value == "") {
            alert("Please enter postal code.");
            document.getElementById("<%=txtPostalCode.ClientID%>").focus();
            return false;
        }

        return true;
    }
</script>
    <div>
    
                   
       
                        <%--<div class="right_content">
                            <div class="form">--%>
    </br></br>
        <table>     
       <tr><td colspan="2">
    <table>
        <tr>
            <td colspan="3"/>

        </tr>
        
               
                    <tr style="display:inline;">
                        <td ><h1>Welcome </h1></td>
                        <td><h1><asp:Label ID="lblHouseHoldName" runat="server" Visible="true" Text=""></asp:Label></h1>
                        </td>
                        </tr>
                        <tr>
                        <td colspan="3">
                            <h3><asp:Label ID="lblPreviousPayment" runat="server" Text=""></asp:Label>
                            <asp:Label ID="lblPaidAmount" runat="server" Text=""></asp:Label></h3>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                        <asp:Button ID="btnPayforOther" runat="server" Visible="true" Enabled="true" Text="Search to pay for other" OnClick="btnPayforOther_Click" />
                        </td>
                    </tr>
                    <tr><td colspan="3">

                         <h3> <asp:Label ID="lblPayingFor" runat="server" Text=""></asp:Label>
                             </h3>  
                        </td>
                    </tr>
                    <tr>
            
                        <td colspan="2">
                            <table border="1"><tr><td width="50%" >
                            <table >
                                <tr>
                                    <td>&nbsp;</td>
                                    
                                    <td>Vegetarian</td>
                                    <td>Non-Vegetarian</td>
                                </tr>
                                <tr>
                                    <td>Adults + Kids age 9 and up</td>
                                    <td>
                                        <asp:DropDownList ID="ddlVegAdult" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlVegAdult_SelectedIndexChanged">
                                            <asp:ListItem Selected="True">0</asp:ListItem>
                                            <asp:ListItem>1</asp:ListItem>
                                            <asp:ListItem>2</asp:ListItem>
                                            <asp:ListItem>3</asp:ListItem>
                                            <asp:ListItem>4</asp:ListItem>
                                            <asp:ListItem>5</asp:ListItem>
                                            <asp:ListItem>6</asp:ListItem>
                                            <asp:ListItem>7</asp:ListItem>
                                            <asp:ListItem>8</asp:ListItem>
                                            <asp:ListItem>9</asp:ListItem>
                                            <asp:ListItem>10</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlNonVegAdult" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlNonVegAdult_SelectedIndexChanged">
                                            <asp:ListItem Selected="True">0</asp:ListItem>
                                            <asp:ListItem>1</asp:ListItem>
                                            <asp:ListItem>2</asp:ListItem>
                                            <asp:ListItem>3</asp:ListItem>
                                            <asp:ListItem>4</asp:ListItem>
                                            <asp:ListItem>5</asp:ListItem>
                                            <asp:ListItem>6</asp:ListItem>
                                            <asp:ListItem>7</asp:ListItem>
                                            <asp:ListItem>8</asp:ListItem>
                                            <asp:ListItem>9</asp:ListItem>
                                            <asp:ListItem>10</asp:ListItem>
                                        </asp:DropDownList>
                                    </td> 
            <td colspan="2" style="vertical-align:top">
              <table><tr><td> <asp:CheckBox ID="cbNoAttendie" runat="server" Text=" Regrets, We will not be able to attend the party." AutoPostBack="true" OnCheckedChanged="cbNoAttendie_CheckedChanged" ForeColor="Red" />

                  </td></tr>
                  <tr><td>
                      <asp:Button ID="btnNotAttending" runat="server" Text="Submit" OnClick="btnNotAttending_Click" /></td></tr>
              </table>  
            </td>
                                                        </tr>
                                <tr>
                                    <td>Kids under 9 (Free)</td>
                                    <td>
                                        <asp:DropDownList ID="ddlVegKid" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlVegKid_SelectedIndexChanged">
                                            <asp:ListItem Selected="True">0</asp:ListItem>
                                            <asp:ListItem>1</asp:ListItem>
                                            <asp:ListItem>2</asp:ListItem>
                                            <asp:ListItem>3</asp:ListItem>
                                            <asp:ListItem>4</asp:ListItem>
                                            <asp:ListItem>5</asp:ListItem>
                                            <asp:ListItem>6</asp:ListItem>
                                            <asp:ListItem>7</asp:ListItem>
                                            <asp:ListItem>8</asp:ListItem>
                                            <asp:ListItem>9</asp:ListItem>
                                            <asp:ListItem>10</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlNonVegKids" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlNonVegKids_SelectedIndexChanged">
                                            <asp:ListItem Selected="True">0</asp:ListItem>
                                            <asp:ListItem>1</asp:ListItem>
                                            <asp:ListItem>2</asp:ListItem>
                                            <asp:ListItem>3</asp:ListItem>
                                            <asp:ListItem>4</asp:ListItem>
                                            <asp:ListItem>5</asp:ListItem>
                                            <asp:ListItem>6</asp:ListItem>
                                            <asp:ListItem>7</asp:ListItem>
                                            <asp:ListItem>8</asp:ListItem>
                                            <asp:ListItem>9</asp:ListItem>
                                            <asp:ListItem>10</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td>Total</td>
                                    <td>
                                        <asp:Label ID="lblTotalVeg" runat="server" Text="0"></asp:Label></td>
                                    <td>
                                        <asp:Label ID="lblTotalNonVeg" runat="server" Text="0"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td >Total members </td>
                                    <td colspan="2"><asp:Label ID="lblTotalMembers" runat="server" Text="0"></asp:Label></td>
                                </tr>
                                <tr>
                                    <td >Total amount  ($15 /Person )</td>
                                    <td colspan="2"><asp:Label ID="lblTotalAmount" runat="server" Text="0"></asp:Label></td>
                                </tr>
                                <tr>
                                    <%--<td colspan="4">(Make check payable to Jitendra Patel) </td>--%>
                                </tr>
                                
                            </table>
                        </td></tr></table>

                        </td>
                        </tr>
                </td>
        </tr>
        
               <%--     <tr>
                        
                        <td  width="50%">
                            <table>
                                <tr>
                                    <td> Please send your response back even if none of your family member is planning to attend the Diwali Party.</td>
                                </tr>
                                <tr>
                                    <td>Date: Saturday, November 07, 2015</td>
                                </tr>
                                <tr>
                                    <td> Total people comming * Contribution</td>
                                </tr>
                                <tr>
                                    <td><u>Total people X $15.0 = Total Amount</u></td>
                                </tr>
                            </table>
                        </td>
                    </tr>--%>
                </table>

                                <%--</div>
                        </div>
                        <!-- end of right content-->
            
                    
                    </div>
                    <!--end of center content -->               
                    
                    
    
    
                    <div class="clear">
                    </div>
    </div>--%>
            
       
        </td></tr>
        <tr>
            <td  colspan="2">
              <b>  Would anyone in your family like to perform (dance, jokes, sign, etc.) for entertainment?</b>
            </td>

        </tr>
        <tr>
        <td  colspan="2"> 
            <asp:CheckBox ID="cbDance" Text="Dance" runat="server" />
        </td>
        </tr>
        <tr>
        <td  colspan="2"> 
            <asp:CheckBox ID="cbJokes" Text="Jokes" runat="server" />
        </td>
        </tr>
        <tr>
        <td  colspan="2"> 
            <asp:CheckBox ID="cbOther" Text="Other" runat="server" />
        </td>
        </tr>
        
        <tr>
            <td  colspan="2">
                <asp:TextBox ID="txtOther" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td  colspan="2">
                <b>List all group member if you are planning to perform in group
                (Max 1000 Characters)</b></td>
        </tr>
        <tr>
            <td  colspan="2">
                <asp:TextBox ID="txtGroupDetails" runat="server" Height="210px" MaxLength="1000" TextMode="MultiLine" Width="671px"></asp:TextBox>
            </td>
        </tr>
        </table>
    <%--<tr >
        <td >RSVP BY:</td>
        <td ><u>Last Date</u></td>
        </tr>

        <tr >
            <td colspan="2">Vegi</td>
        <td colspan="2">Non-Vegi</td>
        </tr>
        <tr>
            <td>Kids</td>
            <td><asp:DropDownList ID ="ddlVegiKids" runat="server" AutoPostBack="true"></asp:DropDownList> </td>
            <td>Kids</td>
            <td><asp:DropDownList ID ="ddlNoVegiKids" runat="server" AutoPostBack="true"></asp:DropDownList> </td>
        </tr>
        <tr>
            <td>Adult</td>
            <td><asp:DropDownList ID ="ddlVegiAdults" runat="server" AutoPostBack="true"></asp:DropDownList> </td>
            <td>Adult</td>
            <td><asp:DropDownList ID ="ddlNonVegiAdult" runat="server" AutoPostBack="true"></asp:DropDownList> </td>
        </tr>
        <tr><td>Total</td>
            <td>
                <asp:Label ID="lblTotalVegi" runat="server" Text="Vegi"></asp:Label></td>
            <td></td>
            <td><asp:Label ID="lblTotalNonVegi" runat="server" Text="Non-Vegi"></asp:Label></td>
        </tr>--%>
    <table>
        
        <tr>
           <td colspan="4">
               <b> Billing address</b>
            </td>
              
        </tr>
        <tr>
            <td>Card Number </td>
            <td>
                <asp:TextBox ID="txtCardNumber" runat="server" TextMode="Number"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Name on card</td>
            <td>
                <asp:TextBox ID="txtNameOnCard" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Card Type</td>
<td>
                <asp:DropDownList ID="ddlCardType" runat="server">
                    <asp:ListItem Text="Select Type" Value="0"> </asp:ListItem>
                    <asp:ListItem Text="VISA" Value="visa"></asp:ListItem>
                    <asp:ListItem Text="Master Card" Value="Master Card"></asp:ListItem>
                    <asp:ListItem Text="American Express" Value="AMEX"></asp:ListItem>
                    <asp:ListItem Text="Discover" Value="Discover"></asp:ListItem>
                </asp:DropDownList>
                </td>        </tr>
        <tr>
            <td>Card Expiry Month</td>
            <td>
                <asp:DropDownList ID="ddlExpirtMonth" runat="server">
                    <asp:ListItem>1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                </asp:DropDownList>
            
                        
            </td>
        </tr>
        <tr>
            <td>Card Expiry Year
            </td>
            <td>
                <asp:DropDownList ID="ddlExpirtYear" runat="server">
                    <asp:ListItem>2015</asp:ListItem>
                    <asp:ListItem>2016</asp:ListItem>
                    <asp:ListItem>2017</asp:ListItem>
                    <asp:ListItem>2018</asp:ListItem>
                    <asp:ListItem>2019</asp:ListItem>
                    <asp:ListItem>2020</asp:ListItem>
                </asp:DropDownList>
                </td>
        </tr>
        <tr>
            <td>Card Verification Number</td>
            <td>
                <asp:TextBox ID="txtCVVNumber" runat="server" TextMode="Number"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Address</td>
            <td>
                <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Street</td>
            <td>
                <asp:TextBox ID="txtStreet" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>City</td>
            <td>
                <asp:TextBox ID="txtCity" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>State</td>
            <td>
                <asp:DropDownList ID="ddlState" runat="server">
                    <asp:ListItem Text="Alabama" Value="AL"></asp:ListItem>
<asp:ListItem Text="Alaska" Value="AK"></asp:ListItem>
<asp:ListItem Text="Arizona" Value="AZ"></asp:ListItem>
<asp:ListItem Text="Arkansas" Value="AR"></asp:ListItem>
<asp:ListItem Text="California" Value="CA"></asp:ListItem>
<asp:ListItem Text="Colorado" Value="CO"></asp:ListItem>
<asp:ListItem Text="Connecticut" Value="CT"></asp:ListItem>
<asp:ListItem Text="Delaware" Value="DE"></asp:ListItem>
<asp:ListItem Text="District Of Columbia" Value="DC"></asp:ListItem>
<asp:ListItem Text="Florida" Value="FL"></asp:ListItem>
<asp:ListItem Text="Georgia" Value="GA"></asp:ListItem>
<asp:ListItem Text="Hawaii" Value="HI"></asp:ListItem>
<asp:ListItem Text="Idaho" Value="ID"></asp:ListItem>
<asp:ListItem Text="Illinois" Value="IL"></asp:ListItem>
<asp:ListItem Text="Indiana" Value="IN"></asp:ListItem>
<asp:ListItem Text="Iowa" Value="IA"></asp:ListItem>
<asp:ListItem Text="Kansas" Value="KS"></asp:ListItem>
<asp:ListItem Text="Kentucky" Value="KY"></asp:ListItem>
<asp:ListItem Text="Louisiana" Value="LA"></asp:ListItem>
<asp:ListItem Text="Maine" Value="ME"></asp:ListItem>
<asp:ListItem Text="Maryland" Value="MD"></asp:ListItem>
<asp:ListItem Text="Massachusetts" Value="MA"></asp:ListItem>
<asp:ListItem Text="Michigan" Value="MI"></asp:ListItem>
<asp:ListItem Text="Minnesota" Value="MN"></asp:ListItem>
<asp:ListItem Text="Mississippi" Value="MS"></asp:ListItem>
<asp:ListItem Text="Missouri" Value="MO"></asp:ListItem>
<asp:ListItem Text="Montana" Value="MT"></asp:ListItem>
<asp:ListItem Text="Nebraska" Value="NE"></asp:ListItem>
<asp:ListItem Text="Nevada" Value="NV"></asp:ListItem>
<asp:ListItem Text="New Hampshire" Value="NH"></asp:ListItem>
<asp:ListItem Text="New Jersey" Value="NJ"></asp:ListItem>
<asp:ListItem Text="New Mexico" Value="NM"></asp:ListItem>
<asp:ListItem Text="New York" Value="NY"></asp:ListItem>
<asp:ListItem Text="North Carolina" Value="NC"></asp:ListItem>
<asp:ListItem Text="North Dakota" Value="ND"></asp:ListItem>
<asp:ListItem Text="Ohio" Value="OH"></asp:ListItem>
<asp:ListItem Text="Oklahoma" Value="OK"></asp:ListItem>
<asp:ListItem Text="Oregon" Value="OR"></asp:ListItem>
<asp:ListItem Text="Pennsylvania" Value="PA"></asp:ListItem>
<asp:ListItem Text="Rhode Island" Value="RI"></asp:ListItem>
<asp:ListItem Text="South Carolina" Value="SC"></asp:ListItem>
<asp:ListItem Text="South Dakota" Value="SD"></asp:ListItem>
<asp:ListItem Text="Tennessee" Value="TN"></asp:ListItem>
<asp:ListItem Text="Texas" Value="TX"></asp:ListItem>
<asp:ListItem Text="Utah" Value="UT"></asp:ListItem>
<asp:ListItem Text="Vermont" Value="VT"></asp:ListItem>
<asp:ListItem Text="Virginia" Value="VA"></asp:ListItem>
<asp:ListItem Text="Washington" Value="WA"></asp:ListItem>
<asp:ListItem Text="West Virginia" Value="WV"></asp:ListItem>
<asp:ListItem Text="Wisconsin" Value="WI"></asp:ListItem>
<asp:ListItem Text="Wyoming" Value="WY"></asp:ListItem>
                    
                </asp:DropDownList>
                </td>
        </tr>
        <tr>
            <td>Postal Code</td>
            <td>
                <asp:TextBox ID="txtPostalCode" runat="server" TextMode="Number"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Phone Number</td>
            <td>
                <asp:TextBox ID="txtPhoneNumber" runat="server" TextMode="Number"></asp:TextBox></td>
        </tr>
        <tr><td colspan="4">&nbsp;</td></tr>
        <tr><td colspan="2"> <asp:Button ID="btnSubmit" runat="server" Text="Make Payment" OnClick="btnSave_Click" OnClientClick="return ValidatePaymentinformation();"/></td>
            
        </tr>
        <tr><td>
          <asp:Label ID="lblResult" runat="server" Text=""></asp:Label>  
</td></tr>

<tr><td colspan="2"> <asp:Button ID="btnRequestforPayment" runat="server" Text="Request for Payment Report" OnClick="btnRequestforPayment_Click" /></td>
    </tr>
    </table>
    </div>
</asp:Content>
