<%@ page title="Employee Search" language="C#" masterpagefile="~/Pages/Common/MasterPages/MobileMasterPage.master" autoeventwireup="true" inherits="Pages_Communication_MMyMessages, App_Web_sqnaqmtm" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <%--  <form id="form1" runat="server">--%>
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="padding-top-header">
                <!-- ContentPlaceHolder Box Starts -->
                 <div class="alert alert-warning" runat="server" id="MessageBox" visible="false">
                    <strong>
                        <asp:Label ID="MessageBoxLabel" runat="server"></asp:Label></strong>
                </div>
                <div style="width: 100%; padding: 2px; margin: 2px">
                    <%--<div class="tableContainer">--%>
                    <%-- <div class="spacer">
                                            <img src="../../../Images/spacer.gif" /></div>--%>

                    <table width="100%" border="0" style="vertical-align: top; margin-top: -1px; border-collapse: collapse;" cellpadding="0"
                        cellspacing="0">
                        <tr>
                           <%--<div class="col-md-3">
                        <section class="content-header" style="margin-bottom: 5px; margin-right: 0px; padding-right: 0px !important; padding-left: 0px;">
                             <div style="padding-right:0;">
                                 <asp:Label runat="server" ID="ScreenNamelabel" Text="" Font-Bold="true" CssClass="screennamelabel"/>
                             </div>
                        </section>
                    </div>--%>
                            <td style="vertical-align: top;" width="100%" class="whiteboxpaddingleft">
                                <div class="himssuHeader5WireBox whitebox">
                                    <div class="himsBoxHeader note note1 box box-danger">
                                        <asp:Panel ID="SearchHeaderPanel" runat="server" meta:resourcekey="SearchHeaderPanelResource1">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <asp:Label ID="SearchHeaderLabel" runat="server" Text="My Messages"></asp:Label>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>

                                    <asp:Panel ID="SearchDetailPanel" runat="server" meta:resourcekey="SearchDetailPanelResource1">

                                        <div class="outerBox pTop5">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="FromDateLabel" runat="server" Text="From Date" Visible="True"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="true" ID="FromDatePickerControl" Visible="True"
                                                    runat="server" />
                                            </div>
                                        </div>

                                        <div class="outerBox pTop5">
                                            <div class="controlLabelWidth">
                                                <asp:Label ID="ToDateLabel" runat="server" Text="To Date" Visible="True"></asp:Label>
                                            </div>
                                            <div class="fLeft pRight5">
                                                <Date:DatePickerControl DisplayDatePicker="True" ID="ToDatePickerControl" Visible="True"
                                                    runat="server" />
                                            </div>
                                        </div>

                                        <div class="cBoth">
                                        </div>

                                        <div class="alignCenter pTop5">
                                            <asp:Button ID="SearchButton" runat="server" Text="Search"
                                                OnClick="SearchButton_Click" SkinID="0" CssClass="btn-primary" />
                                            <asp:Button ID="ClearButton" runat="server" Text="Clear"
                                                OnClick="ClearSearch_Click" />
                                        </div>
                                        <div class="cBoth">
                                        </div>
                                        <div class="spacer">
                                            <img src="../../../Images/spacer.gif" />
                                        </div>
                                        <div class="himsBoxContent">
                                            <div class="contentHolder">
                                                <div id="EmployeeProfileGridViewDiv" runat="server" visible="false">
                                                    <div class="spacer">
                                                        <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image6Resource1" />
                                                    </div>
                                                    <div class="himssuHeader7WireBox  box-body box-solid gridviewfontbigger">
                                                        <div class="himsBoxContent">
                                                            <asp:GridView ID="MyMessagesGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                                                                CssClass="table table-striped table-bordered" EmptyDataText="No records available for the seacrh criteria!"
                                                                ShowHeader="True">
                                                                <Columns>
                                                                    <asp:BoundField DataField="EventName" HeaderStyle-HorizontalAlign="Left" HeaderText="Event" ItemStyle-Width="15%" />
                                                                    <asp:BoundField DataField="AlertMode" HeaderStyle-HorizontalAlign="Left" HeaderText="Alert Mode" ItemStyle-Width="10%" />
                                                                    <asp:BoundField DataField="AlertMessage" HeaderStyle-HorizontalAlign="Left" HeaderText="Message" ItemStyle-Width="60%" />
                                                                    <asp:BoundField DataField="CreatedDateTime" HeaderStyle-HorizontalAlign="Left" HeaderText="DateTime" ItemStyle-Width="15%" />
                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                                <div class="spacer">
                                    <img src="../../../Images/spacer.gif" />
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main="../../JavaScript/rjs/encrypt/mempprofile-encrypt" src="../../JavaScript/rjs/require.js"></script>
</asp:Content>