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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/Common/Library/LibraryDetailBoxControl.ascx" TagName="LibraryControl" TagPrefix="Library" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="BookSearchUpdatePanel" 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="174"
                                                        Visible="true" runat="server" />
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <div class="whiteboxpaddingleft row">
                            <Library:LibraryControl ID="LibraryUserControl" runat="server" Visible="true" />
                            <div class="himssuHeader5WireBox card card-box">
                                <div class="himsBoxHeader card-head">
                                    <asp:Panel ID="SearchHeaderPanel" runat="server" meta:resourcekey="SearchHeaderPanelResource1">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <header>
                                                    <i class="fas fa-search"></i>
                                                <asp:Label ID="SearchHeaderLabel" runat="server" Text="Search"></asp:Label>
                                                </header>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                                <asp:Panel ID="SearchDetailPanel" runat="server" meta:resourcekey="SearchDetailPanelResource1">
                                    <div class="himsBoxContent card-body">
                                        <div class="contentHolder">
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="CodeLabel" runat="server" Text="Code"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="CodeTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        runat="server" MaxLength="25" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="TitleLabel" runat="server" Text="Title"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="TitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="SupplierLabel" runat="server" Text="Supplier"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="SupplierTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                       runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                </div>
                                            </div>
                                           
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="PublisherLabel" runat="server" Text="Publisher"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="PublisherTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="AuthorLabel" runat="server" Text="Author"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="AuthorTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                       runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="Subject" runat="server" Text="Subject"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="SubjectTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                </div>
                                            </div>
                                          
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="LanguageLabel" runat="server" Text="Language"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="LanguageTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="LocationLabel" runat="server" Text="Location"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="LocationTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="EditionLabel" runat="server" Text="Edition"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="EditionTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        runat="server" MaxLength="50" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                </div>
                                            </div>
                                         
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ISBNNumberLabel" runat="server" Text="ISBN Number"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="ISBNNumberTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="BookTagLabel" runat="server" Text="Book Tag"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="BookTagTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="BookCustomTagLabel" runat="server" Text="Book Custom Tag"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:TextBox ID="BookCustomTagTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                        runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                </div>
                                            </div>
                                          
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="AgeGroupLabel" runat="server" Text="Book Age Group"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="AgeGroupDropDownList" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="ResourceTypeLabel" runat="server" Text="Resource Type"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="ResourceTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="BookStatusLabel" runat="server" Text="Status"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="BookStatusDropDownList" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                           
                                            <div class="outerBox pTop5 col-md-3">
                                                <div class="controlLabelWidth">
                                                    <asp:Label ID="BookDepartmentLabel" runat="server" Text="Book Department"></asp:Label>
                                                </div>
                                                <div class="fLeft pRight5">
                                                    <asp:DropDownList runat="server" ID="BookDepartmentDropDownList" SkinID="CustomWidthDropDownList"
                                                        onmouseleave="showHideTooltip()" CssClass="form-control" onmouseenter="showHideTooltip()">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                      
                                            <div class="alignCenter pTop5 col-md-12">
                                                <asp:Button ID="SearchButton" Text="&#xf002; Search" runat="Server" OnClick="SearchButton_Click"
                                                    SkinID="0" class="btn-search btn fas" />
                                                <asp:Button ID="ResetButton" runat="server" Text="&#xf0e2; Reset" OnClick="ResetButton_Click" 
                                                    SkinID="0" class="btn-reset btn fas" />
                                            </div>
                                        
                                            <div id="BookListGridDiv" runat="server">
                                                
                                                <div class="himssuHeader7WireBox col-md-12">
                                                    <div class="himsBoxHeader" id="BookListGridViewPagerDiv" runat="server" visible="False">
                                                        <div class="leftdiv">                                                          
                                                                                                                               
                                                        </div>
                                                        <div class="himsBoxTitle">
                                                           
                                                            <div  style="margin-top: 5px;">
                                                               <table >
                                                                    <tr>
                                                                        <td style="width: 49%">
                                                                            <asp:Label ID="RecordsPerPage" Text="Records per Page : " runat="server" />
                                                                        <asp:DropDownList ID="AddRowsToGridDropDownList" SkinID="CustomWidthDropDownList" Width="60px" runat="server"
                                                                            AutoPostBack="true" OnSelectedIndexChanged="AddRowsToGridDropDownList_SelectedIndexChanged">
                                                                            <asp:ListItem Text="10" Value="10" Selected="True"></asp:ListItem>
                                                                            <asp:ListItem Text="20" Value="20"></asp:ListItem>
                                                                            <asp:ListItem Text="50" Value="50"></asp:ListItem>
                                                                            <asp:ListItem Text="100" Value="100"></asp:ListItem>
                                                                        </asp:DropDownList>

                                                                        </td>
                                                                   
                                                                        <td>
                                                                        
                                                                        <uc1:GridViewPager ID="BookListGridViewPager" ParentGridView="BookListGridView" runat="server"
                                                                                OnFirstRecordClick="BookListGridViewPager_FirstRecordClick" OnLastRecordClick="BookListGridViewPager_LastRecordClick"
                                                                                OnNextRecordClick="BookListGridViewPager_NextRecordClick" OnPrevRecordClick="BookListGridViewPager_PrevRecordClick"
                                                                                OnTextBoxValueChange="BookListGridViewPager_TextBoxValueChange" />
                                                                        </td>
                                                                   </tr>
                                                                </table>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="himsBoxContent pTop10 table-responsive">
                                                        <asp:GridView runat="server" ID="BookListGridView" AutoGenerateColumns="False"
                                                            EmptyDataText="No records available for the seacrh criteria!" OnRowDataBound="BookListGridView_RowDataBound"
                                                            AllowPaging="True" PageSize="10" DataKeyNames="BookId" ShowHeader="True" meta:resourcekey="BookListGridViewResource1"
                                                            CssClass="table table-striped table-bordered table-hover">
                                                            <Columns>
                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="3%">
                                                                    <HeaderTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="HeaderSelectCheckBox" runat="server" onclick="CheckAll(this);" />
                                                                            <span></span>
                                                                        </label>
                                                                    </HeaderTemplate>
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                    <ItemTemplate>
                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                        <asp:CheckBox ID="DeleteBookCheckBox" runat="server" />
                                                                            <span></span>
                                                                        </label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:BoundField DataField="Title" HeaderText="Name" ItemStyle-Width="26%" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:BoundField DataField="Author" HeaderText="Author" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:BoundField DataField="Location" HeaderText="Location" ItemStyle-Width="15%"
                                                                    HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:TemplateField ItemStyle-Width="10%" HeaderText="Status" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="StatusNameLabel" runat="server" Text='<%# ((Sapphire.Vidyalaya.BusinessEntity.Business.LibraryBE.Book)Container.DataItem).StatusName %>' Font-Bold="true"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField Visible="false">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="StatusIdLabel" runat="server" Text='<%# ((Sapphire.Vidyalaya.BusinessEntity.Business.LibraryBE.Book)Container.DataItem).StatusId %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>                               
                            </div>
                            </div>
                        </td>
                   
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--<script data-main="../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>    
</asp:Content>
