<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Audit_Trail.aspx.cs"  Inherits="Neclog_3_0.Audit_Trail" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="obout_Interface" Namespace="Obout.Interface" TagPrefix="cc1" %>
<%@ Register TagPrefix="obout" Namespace="Obout.ComboBox" Assembly="obout_ComboBox" %>
<%@ Register Src="~/UserControls/ucTimeControl.ascx" TagName="ucTimePicker" TagPrefix="ucTime" %>
<%@ Register Src="~/UserControls/ucReport.ascx" TagName="ucReport" TagPrefix="ucRpt" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class='divtable'>
        <div class='form-box'>
            <div class="box box-success">
                <div class="box-header with-border">
                    <div class='row'>
                        <div class='col-md-8'>
                            <asp:Label ID="lblTitle" runat="server" class="box-title"></asp:Label>
                            <asp:HiddenField ID="hdnReportType" runat="server" />
                            <asp:HiddenField ID="hdnDbType" Value="0" runat="server" />
                            <asp:HiddenField ID="hdnHeaderNote" Value="0" runat="server" />
                            <asp:HiddenField ID="hdnFooterNote" Value="0" runat="server" />
                        </div>
                        <div class='col-md-4'>
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <asp:Button ID="btnPrint" Style="float: right" runat="server" Text="Print Report" OnClick="btnPrint_Click" CssClass="myButton" CausesValidation="false" ToolTip="Print Report" />
                                    <%-- <ucRpt:ucReport ID="rpt" runat="server" Visible="false" />--%>
                                    <%--&nbsp;<%--<asp:Button ID="btnHelp" Visible="false" runat="server" Text="Help" CssClass="myButton" />--%>
                                </ContentTemplate>
                                <Triggers>
                                    <asp:PostBackTrigger ControlID="btnPrint" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </div>
                    </div>
                </div>
                <!-- /.box-header -->
                <!-- form start -->
                <div class="form-horizontal">
                    <div class="box-body">

                        <div class="form-group">
                            <asp:Label ID="Label2" runat="server" Text="Format*" class="col-sm-2 control-label"></asp:Label>
                            <div class="col-sm-6">
                                <asp:DropDownList runat="server" ID="ddlReportType" CssClass="form-control">
                                </asp:DropDownList>
                            </div>
                            <div class="col-sm-3">
                                <%--  <asp:RequiredFieldValidator runat="server" ControlToValidate="cmbReportType" Enabled="true" InitialValue="0"
                                    CssClass="text-alert" ErrorMessage="Comm. Group field is required." />--%>
                            </div>
                        </div>
                        <div class="form-group">
                            <asp:Label ID="Label1" runat="server" Text="From Date*" CssClass="col-sm-2 control-label"></asp:Label>
                            <div class="col-sm-3">
                                <asp:TextBox ID="txtFromDate" runat="server" MaxLength="20" CssClass="form-control" onKeyUp="scrollDateField(this,event);"
                                    onBlur="GetDateField(this);" onFocus="SetDateField(this); searchKeyFocus(this);"
                                    ToolTip="Format : [ddmmyyyy], [d] or [dd], [ddm] or [ddmm], [ ].&#xa;Keys : Day-[Up/Down], Month-[alt+Up/Down], Year-[shift+Up/Down], Today-[Home]."
                                    onkeypress="searchKeyPress(event);" Width="98%"></asp:TextBox>
                            </div>
                            <div class="col-sm-1">
                                <asp:PlaceHolder runat="server" ID="dtpFromDate"></asp:PlaceHolder>
                            </div>
                            <div class="col-sm-1">
                                <asp:Label ID="Label3" runat="server" Text="To Date*" CssClass="control-label"></asp:Label>
                            </div>
                            <div class="col-sm-2">
                                <asp:TextBox ID="txtToDate" runat="server" CssClass="form-control" MaxLength="20" onKeyUp="scrollDateField(this,event);"
                                    onBlur="GetDateField(this);" onFocus="SetDateField(this); searchKeyFocus(this);"
                                    ToolTip="Format : [ddmmyyyy], [d] or [dd], [ddm] or [ddmm], [ ].&#xa;Keys : Day-[Up/Down], Month-[alt+Up/Down], Year-[shift+Up/Down], Today-[Home]."
                                    onkeypress="searchKeyPress(event);" Width="98%"></asp:TextBox>
                            </div>
                            <div class="col-sm-1">
                                <asp:PlaceHolder runat="server" ID="dtpToDate"></asp:PlaceHolder>
                            </div>
                        </div>
                        <div class="form-group">
                            <asp:Label ID="Label4" runat="server" Text="From Time*" CssClass="col-sm-2 control-label"></asp:Label>
                            <div class="col-sm-3">
                                <ucTime:ucTimePicker ID="txtFromTime" DefaultTime="00:00" runat="server" />
                            </div>
                            <div class="col-sm-1">
                                &nbsp;
                            </div>
                            <div class="col-sm-1">
                                <asp:Label ID="Label5" runat="server" Text="To Time*" CssClass="control-label"></asp:Label>
                            </div>
                            <div class="col-sm-2">
                                <ucTime:ucTimePicker ID="txtToTime" DefaultTime="23:59" runat="server" />
                            </div>

                        </div>

                        <div class="form-group">

                            <asp:Label ID="lblAuditLabel" runat="server" Text="User List" CssClass="col-sm-2 control-label"></asp:Label>
                            <asp:Panel ID="pnlUser" runat="server" Visible="false">
                                <div class="col-sm-4">
                                    <asp:ListBox ID="lstUser" runat="server" Width="100%" Height="160px" SelectionMode="Multiple" CssClass="form-control"></asp:ListBox>
                                </div>
                            </asp:Panel>
                            <asp:Panel ID="pnlEquipmentlabel" runat="server" Visible="false">
                                <div class="col-sm-1" runat="server" id="divEquipmentLable">
                                    <asp:Label ID="lblEquipment" runat="server" Text="Instrument" CssClass="control-label"></asp:Label>
                                </div>
                            </asp:Panel>

                            <asp:Panel ID="pnlEquipment" runat="server" Visible="false">
                                <div class="col-sm-4">
                                    <asp:ListBox ID="lstEquipment" runat="server" Width="100%" Height="160px" SelectionMode="Multiple" CssClass="form-control"></asp:ListBox>
                                </div>
                            </asp:Panel>
                        </div>
                        <asp:Panel runat="server" ID="pnlReviewedApprovedOption" Visible="false">
                            <div class="form-group">
                                <asp:Label ID="Label11" runat="server" Text="Status" class="col-sm-2 control-label"></asp:Label>
                                <div class="col-sm-5" style="vertical-align: middle; margin-top: 5px;">
                                    <asp:RadioButton ID="rbtReviewed" runat="server" GroupName="ReViewedApproved" Text="Reviewed"
                                        Checked="True" CssClass="control-label" />
                                    <asp:RadioButton ID="rbtApproved" runat="server" GroupName="ReViewedApproved" Text="Approved" />
                                </div>
                            </div>
                        </asp:Panel>
                        <asp:Panel ID="pnlUserEquipAlarm" runat="server" Visible="false">
                            <div class="form-group">
                                <asp:Label ID="lblEventName" runat="server" Text="Event Name" CssClass="col-sm-2 control-label"></asp:Label>
                                <div class="col-sm-4">
                                    <asp:TextBox ID="txtEventName" runat="server" Width="100%" MaxLength="100" CssClass="form-control"></asp:TextBox>
                                </div>
                            </div>
                        </asp:Panel>
                        <asp:Panel ID="pnlEmail" runat="server" Visible="false">
                            <div class="form-group">
                                <asp:Label ID="Label6" runat="server" Text="Email Message" CssClass="col-sm-2 control-label"></asp:Label>
                                <div class="col-sm-4">
                                    <asp:TextBox ID="txtEmailMessage" runat="server" Width="100%" MaxLength="100" CssClass="form-control"></asp:TextBox>
                                </div>
                            </div>
                            <div class="form-group">
                                <asp:Label ID="Label7" runat="server" Text="Email Subject" CssClass="col-sm-2 control-label"></asp:Label>
                                <div class="col-sm-4">
                                    <asp:TextBox ID="txtEmailSubject" runat="server" Width="100%" MaxLength="100" CssClass="form-control"></asp:TextBox>
                                </div>
                            </div>

                            <div class="form-group">
                                <asp:Label ID="Label8" runat="server" Text="To Address" CssClass="col-sm-2 control-label"></asp:Label>
                                <div class="col-sm-4">
                                    <asp:TextBox ID="txtEmailAddress" runat="server" Width="100%" MaxLength="100" CssClass="form-control"></asp:TextBox>
                                </div>
                            </div>
                            <div class="form-group">
                                <asp:Label ID="Label9" runat="server" Text="Email Status" class="col-sm-2 control-label"></asp:Label>
                                <div class="col-sm-5" style="vertical-align: middle; margin-top: 5px;">
                                    <asp:RadioButton ID="rbEALL" runat="server" GroupName="EmailStatus" Text="All"
                                        Checked="True" CssClass="control-label" />
                                    <asp:RadioButton ID="rbEPending" runat="server" GroupName="EmailStatus" Text="Pending" CssClass="control-label" />
                                    <asp:RadioButton ID="rbESent" runat="server" GroupName="EmailStatus" Text="Sent" CssClass="control-label" />
                                    <asp:RadioButton ID="rbEFailed" runat="server" GroupName="EmailStatus" Text="Failed" CssClass="control-label" Visible="false" />
                                </div>
                            </div>
                        </asp:Panel>
                        <asp:Panel ID="pnlSMS" runat="server" Visible="false">
                            <div class="form-group">
                                <asp:Label ID="Label10" runat="server" Text="SMS Message" CssClass="col-sm-2 control-label"></asp:Label>
                                <div class="col-sm-4">
                                    <asp:TextBox ID="txtSMSMessage" runat="server" Width="100%" MaxLength="100" CssClass="form-control"></asp:TextBox>
                                </div>
                            </div>
                            <div class="form-group">
                                <asp:Label ID="Label13" runat="server" Text="SMS Status" class="col-sm-2 control-label"></asp:Label>
                                <div class="col-sm-5" style="vertical-align: middle; margin-top: 5px;">
                                    <asp:RadioButton ID="rbSAll" runat="server" GroupName="SMSStatus" Text="All"
                                        Checked="True" CssClass="control-label" />
                                    <asp:RadioButton ID="rbSPending" runat="server" GroupName="SMSStatus" Text="Pending" CssClass="control-label" />
                                    <asp:RadioButton ID="rbSSent" runat="server" GroupName="SMSStatus" Text="Sent" CssClass="control-label" />
                                    <asp:RadioButton ID="rbSFailed" runat="server" GroupName="SMSStatus" Text="Failed" CssClass="control-label" Visible="false" />
                                </div>
                            </div>
                        </asp:Panel>
                        <div class="form-group">
                            <asp:Label ID="Label30" runat="server" Text="Order By" class="col-sm-2 control-label"></asp:Label>
                            <div class="col-sm-5" style="vertical-align: middle; margin-top: 5px;">
                                <asp:RadioButton ID="rdLogDate" runat="server" GroupName="ReportOrder" Text="Log Date"
                                    Checked="True" CssClass="control-label" />
                                <asp:RadioButton ID="rbRawLog" runat="server" GroupName="ReportOrder" Text="Unsorted" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>

