<%@ page language="C#" masterpagefile="~/MasterPages/Main.master" autoeventwireup="true" inherits="Business_Archive, App_Web_5gjzjsli" viewStateEncryptionMode="Always" maintainScrollPositionOnPostBack="true" %>

<%@ Register Src="../UserControls/DatePicker.ascx" TagName="DatePicker" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table class="body_MainTB" border="0" cellpadding="0" cellspacing="0">
        <tr align="center">
            <td valign="top">
                <!------------------------------------body St  ---------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="body_formTitle">
                    <tr>
                        <td>
                            Archive
                        </td>
                    </tr>
                </table>
                <br>
                <!------------------------------------body End1 ----------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="contTB">
                    <tr>
                        <td align="center">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Frow">
                                <tr>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                            <asp:Panel ID="pnlGrid" runat="server" Width="100%">
                                <asp:Label ID="Label1" runat="server" Text="" class="fieldError"></asp:Label>
                                <table border="0" cellpadding="0" cellspacing="0" class="grid_TitleBG_B">
                                    <tr>
                                        <td>
                                            Archive Status
                                        </td>
                                    </tr>
                                </table>
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>
                                    <asp:UpdateProgress ID="UpdateProgress1" runat="server" 
                                        AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="0">
                                        <ProgressTemplate>
                                        <img alt="Loading" src="../Images/ajax-loader.gif" />
                                        </ProgressTemplate>
                                    </asp:UpdateProgress>
                                <asp:GridView AllowPaging="true" ID="GridView1" CssClass="gridMaster" Width ="100%" runat="server"
                                    AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None"
                                    EmptyDataText="There are no Jobs">
                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                    <Columns>
                                        <asp:BoundField DataField="STEP_NAME" HeaderText="Step" />
                                        <asp:BoundField DataField="STEP_STATUS" HeaderText="Status" />
                                        <asp:BoundField DataField="START_DATE" HeaderText="Start date" />
                                        <asp:BoundField DataField="END_DATE" HeaderText="End date" />
                                    </Columns>
                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                    <EditRowStyle BackColor="#999999" />
                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                </asp:GridView>
                                    <asp:Timer ID="Timer1" runat="server" Interval="10000" ontick="Timer1_Tick">
                                    </asp:Timer>
                                </ContentTemplate>
                                </asp:UpdatePanel>
                            </asp:Panel>
                            <br />
                            
                            <fieldset id="addItem">
                                <legend id="addItem">Change Archive Parameters</legend>
                            </fieldset>
                            <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                <tr>
                                    <td class="tdNormal" style="width:20%">
                                        Number of days
                                    </td>
                                    <td class="tdNormal" style="width:30%">
                                        <asp:TextBox ID="txtDays" MaxLength="10" runat="server" class="fieldNormal"></asp:TextBox>
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="Btn_L_Normal" OnClick="btnSave_Click" />
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Button ID="btnEnable" runat="server" Text="Enable Schedule" CssClass="Btn_L_Normal1" OnClick="btnEnable_Click" />
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Button ID="btnDisable" runat="server" Text="Disable Schedule" CssClass="Btn_L_Normal1" OnClick="btnDisable_Click" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="5" style="text-align: center">
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <br />
                            <fieldset id="addItem">
                                <legend id="addItem">Archive Estimation</legend>
                            </fieldset>
                            <table border="0" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                <tr>
                                    <td class="tdNormal" style="width:20%">
                                        Number of Records
                                    </td>
                                    <td class="tdNormal" style="width:30%">
                                        <asp:TextBox ID="txtRecords" ReadOnly="true" MaxLength="10" runat="server" class="fieldNormal"></asp:TextBox>
                                    </td>
                                    <td class="tdNormal">
                                        <asp:Button ID="btnArchive" runat="server" Text="Start Archive" CssClass="Btn_L_Normal" OnClick="btnArchive_Click" />
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                    <td class="tdNormal">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="5" style="text-align: center">
                                    </td>
                                </tr>
                            </table>
                            <!------------------------------------body End2 ----------------------------------------------->
                            <br>
                            <asp:Label ID="lblError" runat="server" Text="" class="fieldError"></asp:Label>
                        </td>
                    </tr>
                </table>
                <!------------------------------------body End2 ----------------------------------------------->
            </td>
        </tr>
    </table>
</asp:Content>
