<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master"  AutoEventWireup="True" 
    Inherits="site_Administrative_EmailNotification_Default" Codebehind="Default.aspx.cs" %>
    
<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="Server"> 

   <div class="mastersearch">
        <table cellspacing="0" cellpadding="0">
            <tr>
                <td style="padding-right:0px">
                    <img id="Img1" runat="server" src="../../../images/Collapse_13x13.jpg" class="showstate"
                        onclick="expandMasterSearch(this, 'EmailSettingsDiv')" alt="contract" />
                </td>
                <td valign="middle" style=" width:100%">
                    <asp:Literal ID="Literal2" runat="server" Text="Email Settings"/>
                </td>
            </tr>
        </table>
   </div> 
   <div id="EmailSettingsDiv" style="background-color: #DBDCDE">
    <table>
        <tr>
            <td>

                <asp:Label ID="Label13" runat="server" Text="Permit Email Job Submission:" ></asp:Label>
                <asp:CheckBox ID="EnabledCheckBox1" runat="server" /><br />
                
                <asp:Label ID="Label11" runat="server" Text="Delivered From Address:" ></asp:Label>
                <asp:TextBox ID="DeliveredFromTextBox" runat="server" Width="200px"></asp:TextBox><br />
                
                <asp:Label ID="Label12" runat="server" Text="Shipped From Address:" ></asp:Label>
                <asp:TextBox ID="ShippedFromTextBox" runat="server" Width="200px"></asp:TextBox><br />
                  
                <asp:Label ID="Label10" runat="server" Text="Delivered Subject:" ></asp:Label>
                <asp:TextBox ID="DeliveredSubjectTextBox" runat="server" Width="200px"></asp:TextBox><br />

                <asp:Label ID="Label15" runat="server" Text="Shipped Subject:" ></asp:Label>
                <asp:TextBox ID="ShippedSubjectTextBox" runat="server" Width="200px"></asp:TextBox><br />

                <asp:Label ID="Label14" runat="server" Text="Days Back:" ></asp:Label>
                <asp:TextBox ID="DaysBackTextBox" runat="server" Width="200px"></asp:TextBox><br />
                                
                <br />
                <asp:Button ID="GetEmailSettingsButton" runat="server" Text="Get Email Settings" OnClick="GetEmailSettingsButton_Click" />
                <asp:Button ID="UpdateEmailSettingsButton" runat="server" Text="Update Email Settings" OnClick="UpdateEmailSettingsButton_Click" />
            </td>
            <td>

                <asp:Button ID="OrderSubmitButton" runat="server" 
                    onclick="OrderSubmitButton_Click" Text="Process Auto Order Submit" />
            </td>
        </tr>
    </table>   
   </div>
   
   <div class="mastersearch">
        <table cellspacing="0" cellpadding="0">
            <tr>
                <td style="padding-right:0px">
                    <img id="Img2" runat="server" src="../../../images/Collapse_13x13.jpg" class="showstate"
                        onclick="expandMasterSearch(this, 'MasterSearchCriteria')" alt="contract" />
                </td>
                <td valign="middle" style=" width:100%">
                    <asp:Literal ID="Literal1" runat="server" Text=""/>
                </td>
            </tr>
        </table>
    </div>  
    <div id="MasterSearchCriteria" style="background-color: #DBDCDE">
        <asp:Button ID="SelectOutstandingEmailsButton" runat="server" Text="Select Outstanding Emails" OnClick="SelectOutstandingEmailsButton_Click" />         
        <%--<asp:Button ID="SelectEmailsByDateButton" runat="server" Text="Select Emails By Date" OnClick="SelectEmailsByDateButton_Click" />--%>
        <asp:Label ID="Label8" runat="server" Text="From Date:"></asp:Label> 
        <asp:TextBox ID="FromDateTextBox" runat="server"></asp:TextBox>
        <asp:Label ID="Label9" runat="server" Text="To Date:"></asp:Label> 
        <asp:TextBox ID="ToDateTextBox" runat="server"></asp:TextBox>        
        <br />
         
        <asp:Button ID="ProcessEmailsButton" runat="server" Text="Process Emails" OnClick="ProcessEmailsButton_Click" OnClientClick="return window.confirm('Are you sure you want to process the outstanding emails?');" />
        <br />
        <asp:Button ID="btnGenerateTestEmails" runat="server" 
            onclick="btnGenerateTestEmails_Click" Text="Generate Test Emails" />
        <br />
         
        <asp:Label ID="Label1" runat="server" Text="Report:"></asp:Label> 
        <asp:TextBox ID="ReportTextBox" runat="server" Text="/eSecuritelReports/RPT_MMROverride"></asp:TextBox>        
         <asp:Label ID="Label2" runat="server" Text="Job ID:"></asp:Label> 
        <asp:TextBox ID="JobIDTextbox" runat="server" Text="40"></asp:TextBox>        
         <asp:Label ID="Label3" runat="server" Text="Not ID:"></asp:Label> 
        <asp:TextBox ID="NotIDTextBox1" runat="server" Text="100"></asp:TextBox>        
       
        <asp:Button ID="ReportButton" runat="server" Text="Process report" OnClick="ReportButton_Click"   />

     
    </div>
    <br />
    <asp:Label ID="ResultsLabel" runat="server" Text=""></asp:Label>    

    <div>
        <asp:GridView ID="OutstandingEmailsGridView" runat="server">
        </asp:GridView>    
    </div>

</asp:Content>
