<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Channels.ascx.vb" Inherits="Controls_Channels" %>

<asp:Panel ID="StandardCLULayout" runat="server" DefaultButton="btnSeeChannelList">
    <!-- start modified PanelSubpanelBlue template -->
    <h2><asp:Label ID="lblHDTV1" runat="server" Text="HDTV"></asp:Label> Channels in Your Area</h2>
    <div class="solidRoundedBlue">
        <div class="solidRoundedTop">
            <div>
            </div>
        </div>
        <div id="solidRoundedContent">
            <div id="form" class="noHeader">
                <div>
                    Enter you address below to see a list of <asp:Label ID="lblHDTV2" runat="server" Text="HDTV"></asp:Label> channels in your area.<br />
                    <span class="orange">(* Required field)</span><br /><br />
                </div>
                <asp:Panel ID="pnlAddress" runat="server" DefaultButton="btnSeeChannelList">
                    <!-- begin content area -->
                    <table style="left:150px;padding-left:100px;" cellpadding="3" cellspacing="3">
                        <tr>
                            <td style="text-align: right; background-color: #D9E4EE;">
                                <span class="orange">*</span> Street Address:</td>
                            <td style="text-align: left; background-color: #D9E4EE;">
                			    <asp:TextBox ID="txtAddress1" runat="server" Width="200px"></asp:TextBox>
                                </td>
                            <td style="text-align: left; background-color: #D9E4EE;">
                                <asp:RequiredFieldValidator ID="vldAddress1Required" runat="server" ControlToValidate="txtAddress1"
                                    Display="Dynamic" ValidationGroup="ChannelList"  ErrorMessage="Required" CssClass="orange" ForeColor="" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right; background-color: #D9E4EE;">
                                Unit or Apt. No.:</td>
                            <td style="text-align: left; background-color: #D9E4EE;">
                			    <asp:TextBox ID="txtAddress2" runat="server" Width="200px"></asp:TextBox>
                		    </td>
                            <td style="text-align: left; background-color: #D9E4EE;">&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right; background-color: #D9E4EE;">
                                <span class="orange">*</span> Zip Code:</td>
                            <td style="text-align: left; background-color: #D9E4EE;">
                			    <asp:TextBox ID="txtZipCode" runat="server" Width="200px"></asp:TextBox>
                            </td>
                            <td style="text-align: left; background-color: #D9E4EE;">
                                <asp:RequiredFieldValidator ID="vldZipCodeRequired" runat="server" ControlToValidate="txtZipCode"
                                    Display="Dynamic" ValidationGroup="ChannelList" ErrorMessage="Required" CssClass="orange" ForeColor="" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="vldZipCodeRegEx" runat="server" ControlToValidate="txtZipCode" 
                                    Display="Dynamic" ValidationGroup="ChannelList" ErrorMessage="Invalid Format (12345 or 12345-6789)" ValidationExpression="\d{5}(-\d{4})?" CssClass="orange" ForeColor="" SetFocusOnError="True"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                            <tr>
                            <td style="text-align: left; background-color: #D9E4EE;" colspan="3">
                                <br />
                			    <asp:Button ID="btnSeeChannelList" runat="server" Text="See Channel List" ValidationGroup="ChannelList" />
                            </td>
                        </tr>
                    </table>
                    <br />
                   <asp:HyperLink ID="lnkPrint" runat="server" Target="_charter_print_channels">Printer Friendly Version</asp:HyperLink>
                    <br />
                    <asp:Repeater ID="rprChannels" runat="server">
                        <HeaderTemplate>
                            <table cellpadding="0" cellspacing="5" width="100%">
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td><%#DataBinder.Eval(Container.DataItem, "Value.channelNumber")%></td>
                                <td><%#DataBinder.Eval(Container.DataItem, "Value.channelName")%></td>
                                <td><%#DataBinder.Eval(Container.DataItem, "Value.serviceLevel")%></td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>

                    <asp:Label ID="lblNotFound" runat="server">No channels have been found for the address you entered.</asp:Label>
                    <!-- end content area -->
                </asp:Panel>
            </div>
        </div>
        <div class="solidRoundedBot">
            <div>
            </div>
        </div>
    </div>
    <!-- end modified PanelSubpanelBlue template -->
</asp:Panel>



<asp:Panel ID="GeneralMobileCLULayout" runat="server" DefaultButton="btnSeeChannelList" Visible="false">
    <div class="featuredCopy">
                Enter you address below to see a list of <asp:Label ID="lblHDTV2Mobile" runat="server" Text="HDTV"></asp:Label> channels in your area.
                <br />
                <span class="orange">(* Required field)</span><br /><br />                
                   
                    <table cellpadding="3" cellspacing="3">
                        <tr>
                            <td style="text-align: right;"><span class="orange">*</span> Street Address:</td>
                            <td style="text-align: left;">
                			    <asp:TextBox ID="txtAddress1Mobile" runat="server" Width="100px"></asp:TextBox>
                            </td>
                            <td style="text-align: left;">
                                <asp:RequiredFieldValidator ID="vldAddress1MobileRequired" runat="server" ControlToValidate="txtAddress1Mobile" Display="Dynamic" ValidationGroup="ChannelListMobile"  ErrorMessage="Required" CssClass="orange" ForeColor="" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right;">
                                Unit or Apt. No.:
                             </td>
                            <td style="text-align: left;">
                			    <asp:TextBox ID="txtAddress2Mobile" runat="server" Width="100px"></asp:TextBox>
                		    </td>
                            <td style="text-align: left;">&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right;">
                                <span class="orange">*</span> Zip Code:</td>
                            <td style="text-align: left;">
                			    <asp:TextBox ID="txtZipCodeMobile" runat="server" Width="100px"></asp:TextBox>
                            </td>
                            <td style="text-align: left;">
                                <asp:RequiredFieldValidator ID="vldZipCodeMobileRequired" runat="server" ControlToValidate="txtZipCodeMobile" Display="Dynamic" ValidationGroup="ChannelListMobile" ErrorMessage="Required" CssClass="orange" ForeColor="" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="vldZipCodeMobileRegEx" runat="server" ControlToValidate="txtZipCodeMobile" Display="Dynamic" ValidationGroup="ChannelListMobile" ErrorMessage="Invalid Format (12345 or 12345-6789)" ValidationExpression="\d{5}(-\d{4})?" CssClass="orange" ForeColor="" SetFocusOnError="True"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left;" colspan="3">
                                <br />
                			    <asp:Button ID="btnSeeChannelListMobile" runat="server" Text="See Channel List" ValidationGroup="ChannelListMobile" />
                            </td>
                        </tr>
                    </table>
                    <br />
                    <asp:HyperLink ID="lnkPrintMobile" runat="server" Target="_charter_print_channels">Printer Friendly Version</asp:HyperLink>
                    <br />
                    <asp:Repeater ID="rprChannelsMobile" runat="server">
                        <HeaderTemplate>
                            <table cellpadding="0" cellspacing="5" width="100%">
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td><%#DataBinder.Eval(Container.DataItem, "Value.channelNumber")%></td>
                                <td><%#DataBinder.Eval(Container.DataItem, "Value.channelName")%></td>
                                <td><%#DataBinder.Eval(Container.DataItem, "Value.serviceLevel")%></td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>

                    <asp:Label ID="lblNotFoundMobile" runat="server">No channels have been found for the address you entered.</asp:Label>
        
    </div>
      
      
      

</asp:Panel>


