<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true" CodeBehind="CustomerForm.aspx.cs" Inherits="PirTickets.CustomerForm" EnableViewStateMac="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 307px;
        }
        .style3
        {
            width: 144px;
        }
        .style4
        {
            width: 271px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="2" border="0">
 <tr><td colspan="4"><h3>Enter New Customer Details</h3></td></tr>
        <tr>
            <td class="style3">ID</td>
            <td>&nbsp;</td>
            <td><asp:TextBox ID="TxtCustomerID" MaxLength="10" runat="server" 
                    ReadOnly="True" >New</asp:TextBox>
            </td>
            <td class="style4">&nbsp;</td>
        </tr>
        <tr>
            <td class="style3">Organization Name:</td>
            <td></td>
            <td>
                <asp:TextBox ID="TxtOrganizationName" MaxLength="50" 
                    runat="server" Width="282px" /></td>
            <td class="style4">Trade? :<asp:CheckBox ID="cbTrade" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="style3">Contact Title:</td>
            <td>&nbsp;</td>
            <td><asp:TextBox ID="TxtContactTitle" MaxLength="50" runat="server" 
                    Width="74px" /></td>
            <td class="style4">&nbsp;</td>
        </tr>
        <tr>
            <td class="style3">First Name:</td>
            <td></td>
            <td><asp:TextBox ID="TxtFirstName" MaxLength="50" runat="server" /></td>
            <td class="style4">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="TxtFirstName" ErrorMessage="First Name Required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style3">Last Name:</td>
            <td></td>
            <td><asp:TextBox ID="TxtLastName" MaxLength="50" runat="server" 
                    Width="171px" /></td>
            <td class="style4">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="TxtLastName" ErrorMessage="Surname Required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style3">Address:</td>
            <td></td>
            <td><asp:TextBox ID="TxtAddress" MaxLength="255" runat="server" 
                    Width="239px" /></td>
            <td class="style4"></td>
        </tr>
        <tr>
            <td class="style3">Region:</td>
            <td></td>
            <td><asp:TextBox ID="TxtRegion" MaxLength="50" runat="server" 
                    Width="165px" /></td>
            <td class="style4"></td>
        </tr>
        <tr>
            <td class="style3">City:</td>
            <td></td>
            <td><asp:TextBox ID="TxtCity" MaxLength="50" runat="server" 
                    Width="155px" /></td>
            <td class="style4"></td>
        </tr>
        <tr>
            <td class="style3">County:</td>
            <td></td>
            <td><asp:TextBox ID="TxtState" MaxLength="50" runat="server" /></td>
            <td class="style4"></td>
        </tr>
        <tr>
            <td class="style3">Postal Code:</td>
            <td></td>
            <td><asp:TextBox ID="TxtPostalCode" MaxLength="20" runat="server" /></td>
            <td class="style4"></td>
        </tr>
        <tr>
            <td class="style3">Country:</td>
            <td></td>
            <td><asp:TextBox ID="TxtCountry" MaxLength="50" runat="server" >UK</asp:TextBox>
            </td>
            <td class="style4"></td>
        </tr>
        <tr>
            <td class="style3">Email:</td>
            <td></td>
            <td><asp:TextBox ID="TxtEmailName" MaxLength="50" runat="server" 
                    Width="307px" /></td>
            <td class="style4"></td>
        </tr>
        <tr>
            <td class="style3">Phone Number:</td>
            <td></td>
            <td><asp:TextBox ID="TxtPhoneNumber" MaxLength="30" runat="server" 
                    Width="171px" /></td>
            <td class="style4"></td>
        </tr>
        <tr>
            <td class="style3">Mobile Phone:</td>
            <td>&nbsp;</td>
            <td><asp:TextBox ID="TxtMobilePhone" MaxLength="30" runat="server" 
                    Width="171px" /></td>
            <td class="style4">
                <asp:Label ID="lblphone" runat="server" ForeColor="#FF3300"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style3">Fax Number:</td>
            <td></td>
            <td><asp:TextBox ID="TxtFaxNumber" MaxLength="30" runat="server" 
                    Width="168px" /></td>
            <td class="style4"></td>
        </tr>
        <tr>
            <td valign="top" class="style3">Note:</td>
            <td></td>
            <td><asp:TextBox ID="TxtNote" MaxLength="1073741823" 
                    TextMode="MultiLine" Rows="5" runat="server" Width="293px" /></td>
            <td class="style4"></td>
        </tr>
        <tr>
            <td class="style3">Payment Terms:</td>
            <td></td>
            <td>
                <asp:DropDownList ID="DDPayment" runat="server" DataSourceID="SqlDataPayments" 
                    DataTextField="PaymentTerms" DataValueField="ID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataPayments" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:PirTickets %>" 
                    SelectCommand="SELECT [ID], [PaymentTerms], [NumberOfDays] FROM [PaymentTerms]">
                </asp:SqlDataSource>
            </td>
            <td class="style4"></td>
        </tr>
        <tr>
            <td class="style3">Preferred<br />
                Delivery Route:</td>
            <td></td>
            <td>
                <asp:DropDownList ID="ddShipping" runat="server" 
                    DataSourceID="SqlDataShipping" DataTextField="ShipMethod" 
                    DataValueField="ID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataShipping" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:PirTickets %>" 
                    SelectCommand="SELECT [ID], [ShipMethod] FROM [shipvia]">
                </asp:SqlDataSource>
            </td>
            <td class="style4"></td>
        </tr>
            <tr>
                <td class="style3">&nbsp;</td>
                <td></td>
                <td>
                    &nbsp;</td>
                <td class="style4"></td>
            </tr>
        <tr>
            <td colspan="2"></td>
            <td colspan="2">
                <asp:Button ID="BtnUpdate" runat="server" Text="Save and Print Details" 
                    onclick="BtnUpdate_Click" />&nbsp;&nbsp;
                <asp:Button ID="BtnUpdateView" runat="server" Text="Save" 
                    onclick="BtnUpdateView_Click" Width="176px" />&nbsp;
                <asp:Button ID="BtnCancel" CausesValidation="false" runat="server" 
                    Text="Cancel" onclick="BtnCancel_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
