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

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server">
        <ContentTemplate>
            <style type="text/css">
                @media(max-width:414px) {
                    .resp-gridivew {
                        width: 80% !important;
                        overflow-y: auto !important;
                    }
                }
                @media(max-width:360px) {
                    .resp-gridivew {
                        width: 60% !important;
                        overflow-y: auto !important;
                    }
                }
            </style>
            <div id="divContentPage" class="padding-top-header">
                <div style="width: 100%; padding: 2px; margin: 2px">
                    <table width="100%" border="0" style="vertical-align: top; margin-top: -1px; border-collapse: collapse;" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="vertical-align: top;" width="100%" class="whiteboxpaddingleft">
                                <div class="himssuHeader5WireBox whitebox resp-gridivew">
                                    <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 Staff"></asp:Label>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <asp:Panel ID="SearchDetailPanel" runat="server" meta:resourcekey="SearchDetailPanelResource1">
                                        <div class="himsBoxContent">
                                            <div class="contentHolder">
                                                <div class="outerBox11 pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="DepartmentSearchLabel" runat="server" Text="Department"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="DepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                            Width="154px" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="outerBox11 pTop5">
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="GroupSearchLabel" runat="server" Text="Group"></asp:Label>
                                                    </div>
                                                    <div class="fLeft pRight5">
                                                        <asp:DropDownList runat="server" ID="GroupDropDownList" SkinID="CustomWidthDropDownList"
                                                            Width="154px" onmouseleave="showHideTooltip()"
                                                            onmouseenter="showHideTooltip()" AutoPostBack="true"
                                                            OnSelectedIndexChanged="GroupDropDownList_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div class="alignCenter pTop5">
                                                    <asp:Button ID="SearchButton" runat="server" Text="Search" OnClick="SearchButton_Click"
                                                        SkinID="0" CssClass="PrimaryButton" Visible="false" />
                                                    <asp:Button ID="ClearButton" runat="server" Text="Clear" OnClick="ClearSearchControls_Click"
                                                        meta:resourcekey="ClearButtonResource1" Visible="false" />
                                                    <asp:HiddenField ID="EmpHiddenField" runat="server" />
                                                </div>
                                                <div class="cBoth">
                                                </div>
                                                <div id="EmployeeProfileGridViewDiv" runat="server">
                                                    <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 runat="server" ID="EmployeeProfileGridView" Width="100%" AutoGenerateColumns="False" CssClass="table table-striped table-bordered"
                                                                EmptyDataText="No records available for the seacrh criteria!" OnRowDataBound="EmployeeProfileGridView_RowDataBound"
                                                                DataKeyNames="EmployeeId" AllowPaging="True" PageSize="10" ShowHeader="True">
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="Sr No">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="SerialLabel" runat="server"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <ItemStyle HorizontalAlign="Center" Font-Bold="true" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Name" meta:resourcekey="TemplateFieldResource2">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="NameLinkButton" runat="server" Text='<%# Eval("Name") %>' CssClass="boxEllips"
                                                                                ToolTip='<%# Bind("Name") %>' OnClick="NameLinkButton_Click"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="GroupName" HeaderStyle-HorizontalAlign="Left" HeaderText="Group" />
                                                                    <asp:TemplateField HeaderText="Depart." meta:resourcekey="TemplateFieldResource6">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="DepartmentLabel" runat="server" Text='<%# Eval("DepartmentName") %>'
                                                                                CssClass="boxEllips" ToolTip='<%# Bind("DepartmentName") %>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Left" />
                                                                        <ItemStyle HorizontalAlign="Left" />
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="DateOfJoining" HeaderText="Join Date"
                                                                        DataFormatString="{0:dd/MM/yyyy}" />
                                                                    <asp:BoundField DataField="EmailId" HeaderText="Email Id" />
                                                                    <asp:TemplateField HeaderText="Photo" HeaderStyle-HorizontalAlign="Center"
                                                                        ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                        <ItemTemplate>
                                                                            <asp:Image ID="EmployeePhoto" Height="60px" Width="60px" runat="server" ImageUrl='<%# Eval("EmployeePhoto")%>' />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <PagerSettings Visible="False" />
                                                            </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>