<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Communication_EBookList, App_Web_sqnaqmtm" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="EbookListUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                
                            <div class="dashBoardLeftCont">
                                <div class="himssuHeader3WireBox">
                                    <table>
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="114"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <div class="himssuHeader1WireBox card card-box">
                                    <div class="himsBoxHeader card-head" id="Div4" runat="server" visible="True">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText fLeft">
                                                 <header>
                                                    <i class="fas fa-list-ul"></i>
                                                <asp:Label ID="Label4" Text="E-Book List"
                                                    runat="server" /> </header>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent card-body">
                                        <asp:Panel ID="DetailPanel" runat="Server">
                                            <div class="contentHolder">
                                                <div class="himssuHeader6WireBox col-md-12">
                                                    <div class="himsBoxHeader card-head inner" id="EbookListGridViewPagerDiv" runat="server" visible="true">
                                                        
                                                        <div class="himsBoxTitle">
                                                            <%--<div class="gridHeaderText">
                                                                <header>
                                                                <asp:Label ID="Label1" Text="List" runat="server" />
                                                                </header>
                                                            </div>--%>
                                                            <div class="fRight">
                                                                <uc1:GridViewPager ID="EbookListGridViewPager" ParentGridView="EbookListGridView"
                                                                    runat="server" OnFirstRecordClick="EbookListGridViewPager_FirstRecordClick" OnLastRecordClick="EbookListGridViewPager_LastRecordClick"
                                                                    OnNextRecordClick="EbookListGridViewPager_NextRecordClick" OnPrevRecordClick="EbookListGridViewPager_PrevRecordClick"
                                                                    OnTextBoxValueChange="EbookListGridViewPager_TextBoxValueChange" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="himsBoxContent card-body table-responsive">
                                                        <asp:GridView runat="server" ID="EbookListGridView" AutoGenerateColumns="False"
                                                            EmptyDataText="No records available for the seacrh criteria!" OnRowDataBound="EbookListGridView_RowDataBound"
                                                            AllowPaging="True" PageSize="10" DataKeyNames="EbookId"
                                                            ShowHeader="true" meta:resourcekey="EbookListGridViewResource1" CssClass="table table-striped table-bordered table-hover">
                                                            <Columns>
                                                                <asp:BoundField DataField="Title" HeaderText="Name" ItemStyle-Width="35%" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:BoundField DataField="Remark" HeaderText="Remark" ItemStyle-Width="45%" HeaderStyle-HorizontalAlign="Left" />

                                                                <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="ViewLinkButton" runat="server" CommandName="Select" OnClick="ViewLinkButton_Click"
                                                                            Text="View" CausesValidation="false"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                                
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                            </div>
                        </tr>
                    </table>
                </div>
            </div>
            
        </ContentTemplate>
    </asp:UpdatePanel>
   <%-- <script data-main="../../JavaScript/rjs/encrypt/ebook-list-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/ebook-list")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>