<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TempServiceSiteAddress.aspx.cs" Inherits="TruxWebPortal.OnlineBin.TempServiceSiteAddress" %>

<%@ Register TagPrefix="ucHeader" TagName="truxHeader" Src="../header.ascx" %>
<%@ Register TagPrefix="ucHeader2" TagName="truxHeader2" Src="../header2.ascx" %>
<%@ Register TagPrefix="ucFooter" TagName="truxFooter" Src="../footer.ascx" %>

<%@ PreviousPageType TypeName="TruxWebPortal.TruxBasePage" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="HeadLogin" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Site Address (Temp Service)</title>

    <link rel="stylesheet" type="text/css" href="../_style/stylesheet.css" title="TRUX7" />
    <script src="../js/jquery/jquery-1.11.2.min.js" type="text/javascript"> </script>

</head>
<body>
    <% 
    if (!string.IsNullOrWhiteSpace(sCompanyCode))
    {
    %>
        <ucHeader:truxHeader ID="Hdr1" runat="server" />
    <%
    }
    else
    { 
    %>
        <ucHeader2:truxHeader2 ID="Hdr2" runat="server" />
    <%
    }
    %>
    <div id="main_area">
        <div id="work_area">

            <h1>Site Address (Temp Service)</h1>
            <p class="description" style="margin-bottom: 20px">
                <span id="Span19">
                    <asp:Label ID="lblDesc" runat="server"></asp:Label>
                </span>
            </p>
            <div class="full_width">
                <div class="title_bar_blk">
                </div>
                <!-- close Title Bar -->
                <form id="frmAddress" runat="server" method="post">
                    <p class="frm_error_lbl">
                        <asp:Label class="label" ID="lblAddressMessage" runat="server" ForeColor="Red"></asp:Label>
                    </p>
                    <div style="height: 30px">
                        <asp:ValidationSummary Style="margin: 10px" ForeColor="Red" DisplayMode="SingleParagraph" HeaderText="The following fields marked with * are required" ID="ValidationSummary1" runat="server" />
                    </div>


                    <table id="Address" class="tableForm" style="width: 60%; margin-left: auto; margin-right: auto">
                        <tr>
                            <td>
                                <label class="label" for="txtAddress1">
                                    <asp:RequiredFieldValidator  ForeColor="Red" ID="rfvAddress1" ControlToValidate="txtAddress1" runat="server" ErrorMessage="">*</asp:RequiredFieldValidator>My Address:</label>

                            </td>
                            <td colspan="3">
                                <asp:TextBox ID="txtAddress1" CssClass="textfield" runat="server" MaxLength="40" Style="width: 100%" />
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td colspan="3">
                                <asp:TextBox ID="txtAddress2" CssClass="textfield" runat="server"  MaxLength="40" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label class="label" for="txtCity">
                                    <asp:RequiredFieldValidator  ForeColor="Red" ID="rfvCity" ControlToValidate="txtCity" runat="server" ErrorMessage="">*</asp:RequiredFieldValidator>City:</label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtCity" CssClass="textfield" Style="width: 100%" runat="server" MaxLength="40" />
                            </td>
                            <td>
                                <label class="label" for="txtProvince">
                                    <asp:RequiredFieldValidator  ForeColor="Red" ID="rfvProvince" ControlToValidate="ddlState" runat="server" Style="display: inline" ErrorMessage="">*</asp:RequiredFieldValidator>
                                    <asp:Label ID="lblState" runat="server" Text="Province:"></asp:Label>
                                </label>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlState" runat="server" CssClass="textfield"></asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label class="label" for="txtZip">
                                    <asp:RegularExpressionValidator Display="Dynamic" ForeColor="Red" ID="revPostalCode" runat="server"
                                        ControlToValidate="txtZip" EnableClientScript="true" ErrorMessage="" Style="display: inline-block"
                                        ValidationExpression="^[a-zA-Z]{1}[0-9]{1}[a-zA-Z]{1}(\s?|[-]?)[0-9]{1}[a-zA-Z]{1}[0-9]{1}$">*
                                    </asp:RegularExpressionValidator>
                                    <asp:RequiredFieldValidator Display="Dynamic" ForeColor="Red" ID="rfvPostalCode" ControlToValidate="txtZip" runat="server" Style="display: inline-block" ErrorMessage="">*</asp:RequiredFieldValidator>

                                    <asp:Label ID="lblZipCode" runat="server" Text="Postal Code: "></asp:Label>
                                </label>
                            </td>
                            <td colspan="3">
                                <asp:TextBox ID="txtZip" runat="server" CssClass="textfield" MaxLength="10" placeholder="A1A 1A1" />
                            </td>
                        </tr>


                    </table>

                    <asp:Button CssClass="default_button" ID="btnGetStarted" runat="server" Text="Get Started" Style="margin-left: auto; margin-right: auto; display: block" OnClientClick="$('#lblAddressMessage').text('')" OnClick="btnGetStarted_Click" />
                </form>
            </div>
            <div style="clear: both;"></div>

        </div>
    </div>

    <ucFooter:truxFooter ID="Ftr1" runat="server"></ucFooter:truxFooter>

</body>
</html>
