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

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

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="HeadStatements" runat="server">
    <title>My Statements</title>
    <link rel="stylesheet" type="text/css" href="_style/stylesheet.css" title="TRUX7" />
    <script src="styleswitch.js" type="text/javascript"> </script>
    <script src="js/jquery/jquery-1.11.2.min.js" type="text/javascript"> </script>
    <script src="js/jqueryUI/jquery-ui.min.js" type="text/javascript"> </script>
    <link rel="Stylesheet" href="_style/css/jquery-ui-1.8.24.custom.css" />

    <script type="text/javascript">

        function Calendar() {

            $(document).ready(function () {
                $("#txtDate").datepicker({
                    changeMonth: true,
                    changeYear: true,
                    dateFormat: "DD, MM dd, yy"
                });
            });
        }
    </script>
</head>
<body>
    <ucHeader:truxHeader ID="Hdr1" runat="server"></ucHeader:truxHeader>

    <div id="main_area">
        <div id="work_area">

            <form id="statements" runat="server" autocomplete="off">
                <asp:ScriptManager ID="ScriptManager1" runat="server" />

                <h1>My Statements</h1>

                <p>
                    <asp:Label ID="lblDesc" runat="server"></asp:Label><a href="_help/my_statements.aspx" target="_blank"><img style="margin-left: 5px; vertical-align: middle; width: 18px;" src="_images/help.png" /></a>

                </p>


                <p>

                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <script type="text/javascript">
                                Sys.Application.add_load(Calendar);
                            </script>
                            <asp:Label ID="Label1" runat="server" Text="Statement Date: "></asp:Label>
                            <asp:TextBox AutoPostBack="True" ID="txtDate" runat="server" Width="244px" OnTextChanged="txtDate_TextChanged"></asp:TextBox>
                            <asp:Button ID="btnGetStatement" runat="server" CssClass="default_button" Text="Get Statement" OnClientClick=" window.open('Handlers/Statement.ashx?date=');return false; " UseSubmitBehavior="False" />

                        </ContentTemplate>
                    </asp:UpdatePanel>
                </p>

                <%--Aging Backet--%>
            </form>
        </div>
        <!-- close work_area -->
    </div>
    <!-- close main_area -->
    <ucFooter:truxFooter ID="Ftr1" runat="server"></ucFooter:truxFooter>
</body>
</html>
