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

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

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <%-- <link href="../../../App_Themes/responsiv-popup.css" rel="stylesheet" />
    <div id="dvTestLoadingmsg" class="hls-wrap">
        <div class="hls-container">
            <div class="hls-content">
                <div class="dsh-syndicate white-popup" style="display: inline-block; width: 119%; height: 150px">
                    <div class="shippingcard" style="text-align: center; vertical-align: middle; width: 100%;">
                        <span id="spn1msg">Loading Details</span><br>
                        <span style="line-height: 2;" id="spn2msg"><b>Please Wait ...</b></span><br>
                        <span id="spnloadingimgOPD">
                            <img src="../../../Images/Loading1.gif" /></span>
                    </div>
                </div>
            </div>
        </div>
    </div>--%>
    <asp:UpdatePanel ID="BookMasterSearchUpdatePanel" runat="server">
        <ContentTemplate>

            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <%--  <div class="himsBoxHeader">
                                        <div class="leftdiv">
                                        </div>
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                            <asp:Label runat="server" ID="ScreenGroupNameLabel"></asp:Label>    
                                            </div>
                                        </div>
                                    </div>--%>
                        <table width="0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="127"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">

                    <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-download"></i>
                                        <asp:Label ID="Label4" Text="Import Book"
                                            runat="server" />
                                    </header>
                                </div>
                            </div>
                        </div>

                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <div class="tableContainer">
                                        <cc1:TabContainer Width="100%" ID="FeeAllocationTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox ajax__tab_container ajax__tab_default"
                                            AutoPostBack="true" meta:resourcekey="FeeAllocationTabContainerResource1" ActiveTabIndex="0">
                                            <cc1:TabPanel Width="100%" ID="ImportBookPanel" runat="server" HeaderText="ImportBook">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp;Import Book</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>

                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:HyperLink ID="HyperLink1" runat="server" Text="&#xf101; Download Template" NavigateUrl="~/ContentTemplates/Import/Books_Import_Template.xls" Visible="false" CssClass="pointer fas"></asp:HyperLink>
                                                            <asp:HyperLink ID="HyperLink2" runat="server" Text="&#xf101; Download Template" NavigateUrl="~/ContentTemplates/Import/Daynamic_Books_Import_Template.xls" Visible="false" CssClass="pointer fas"></asp:HyperLink>
                                                        </div>
                                                    </div>
                                                    <div class="cBoth">
                                                    </div>

                                                    <div class="outerBox pTop5  col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="LibraryLabel" runat="server" Text="Library"
                                                                SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft">
                                                            <asp:DropDownList ID="LibraryDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-12 pTop5 mt1 bg-lghtgrey radiobtn">
                                                        <div class="controlLabelWidth">
                                                            <asp:RadioButtonList ID="CheckBoxList" runat="server"
                                                                RepeatDirection="Horizontal"
                                                                OnSelectedIndexChanged="CheckBoxList_SelectedIndexChanged" AutoPostBack="true">
                                                                <asp:ListItem Value="1" Selected="True">New Record</asp:ListItem>
                                                                <asp:ListItem Value="2">Old Record</asp:ListItem>
                                                                <asp:ListItem Value="3">Dynamic Record</asp:ListItem>
                                                            </asp:RadioButtonList>
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop15 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                                <i class="fa fa-arrow-down"></i>Browse</a>
                                                            <asp:FileUpload ID="flUpload" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />
                                                        </div>
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Label2" runat="server"></asp:Label>
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop15 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Button ID="ImportButton" runat="server" OnClick="ImportButton_OnClick" Text="&#xf019; Import" CssClass="btn btn-examcommon fas" SkinID="0" />
                                                        </div>

                                                    </div>

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


                                                    <div id="BookMasterGridDiv" runat="server" visible="false">

                                                        <div class="himssuHeader6WireBox pTop5 col-md-12">
                                                            <div class="himsBoxHeader" id="BookMasterGridViewPagerDiv" runat="server">
                                                                <div class="leftdiv">
                                                                </div>
                                                                <div class="himsBoxTitle">
                                                                    <div class="gridHeaderText fLeft">
                                                                        <asp:Label ID="GridViewLabel" Text="List" runat="server" Font-Bold="True" meta:resourcekey="GridViewLabelResource1" />
                                                                    </div>
                                                                    <div class="fRight">
                                                                        <%--<uc1:GridViewPager ID="BookMasterGridViewPager" ParentGridView="BookMasterGridView"
                                                    runat="server" OnFirstRecordClick="BookMasterGridViewPager_FirstRecordClick"
                                                    OnLastRecordClick="BookMasterGridViewPager_LastRecordClick" OnNextRecordClick="BookMasterGridViewPager_NextRecordClick"
                                                    OnPrevRecordClick="BookMasterGridViewPager_PrevRecordClick" OnTextBoxValueChange="BookMasterGridViewPager_TextBoxValueChange" />--%>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="himsBoxContent">
                                                                <div id="Div5" runat="server" class="table-responsive">
                                                                    <asp:GridView runat="server" ID="BookMasterGridView" Width="100%" AutoGenerateColumns="False"
                                                                        EmptyDataText="No records available for the search criteria!" DataKeyNames="" OnPageIndexChanging="BookMasterGridView_PageIndexChanging"
                                                                        AllowPaging="false" PageSize="5" CssClass="table table-striped table-bordered table-hover"
                                                                        ShowHeader="True">
                                                                        <Columns>
                                                                            <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:BoundField DataField="Title" HeaderText="Name" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:BoundField DataField="Author" HeaderText="Author" ItemStyle-Width="30%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                            <asp:BoundField DataField="Location" HeaderText="Location" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                    <asp:GridView runat="server" ID="DaynamicGridView" Width="100%" AutoGenerateColumns="False"
                                                                        EmptyDataText="No records available for the search criteria!"
                                                                        AllowPaging="false" CssClass="table table-striped table-bordered"
                                                                        ShowHeader="True" PageSize="5">
                                                                        <Columns>
                                                                            <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                        </Columns>
                                                                        <PagerSettings Visible="False" />
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="spacer">
                                                        <asp:Image ID="Image7" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image7Resource1" />
                                                    </div>

                                                    <div runat="server" id="BookTable" visible="true" class="col-md-12">

                                                        <div class="outerBox col-md-12">
                                                            <asp:Label ID="UploadLabel" runat="server"></asp:Label>

                                                            <asp:Label ID="Label1" runat="server" Text="Status Detail"></asp:Label>

                                                            <div class="">
                                                                <asp:TextBox ID="BookAlreadyExistTextBox" runat="server"
                                                                    SkinID="CustomWidthDropDownList" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="ImportBookIssueReturnTabPanel" runat="server" HeaderText="Import Book Issue Return">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-money-bill-alt"></i>&nbsp; Import Book Issue Return</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:HyperLink ID="HyperLink3" runat="server" Text="&#xf101; Download Template" NavigateUrl="~/ContentTemplates/Import/ImportBookIssueReturn_Template.xls" CssClass="pointer fas"></asp:HyperLink>
                                                        </div>
                                                    </div>
                                                    <div class="cBoth">
                                                    </div>

                                                    <div class="outerBox pTop5  col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="BookReturnLibraryLabel" runat="server" Text="Library"
                                                                SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft">
                                                            <asp:DropDownList ID="BookReturnLibraryDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop5  col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="UserTypeLabel" runat="server" Text="User Type"
                                                                SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft">
                                                            <asp:DropDownList ID="UserTypeDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                                CssClass="form-control" onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()">
                                                                <asp:ListItem Text="Student" Value="2003"></asp:ListItem>
                                                                <asp:ListItem Text="Employee" Value="95"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>

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

                                                    <div class="outerBox pTop15 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <a href="javascript:;" onclick="OpenFileUpload();" class="btn btn-browser">
                                                                <i class="fa fa-arrow-down"></i>Browse</a>
                                                            <asp:FileUpload ID="FileUpload1" runat="server" onChange="readURL(this);" ClientIDMode="Static" Style="display: none;" />
                                                        </div>
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Label3" runat="server"></asp:Label>
                                                        </div>
                                                    </div>

                                                    <div class="outerBox pTop15 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Button ID="BookReturnImportButton" runat="server" OnClick="BookReturnImportButton_Click" Text="&#xf019; Import" CssClass="btn btn-examcommon fas" SkinID="0" />
                                                        </div>

                                                    </div>

                                                    <div class="outerBox col-md-12" style="margin-top: 15px">
                                                        <asp:Label ID="UploadLabel1" runat="server"></asp:Label>

                                                        <asp:Label ID="Label5" runat="server" Text="Status Detail"></asp:Label>

                                                        <div class="">
                                                            <asp:TextBox ID="BookIssusReturnStatus" runat="server"
                                                                SkinID="CustomWidthDropDownList" />
                                                        </div>
                                                    </div>

                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                        </cc1:TabContainer>
                                    </div>
                                </div>
                            </asp:Panel>
                            <div class="cBoth">
                            </div>
                            <div class=" col-md-12">
                                <div class="alert alert-info ">
                                    <i class="material-icons pos-rel">info</i> |&nbsp;
                                            <b>Note: </b>Only xls format is imported, and also give the sheet name as Sheet1.
                                </div>
                            </div>
                        </div>
                    </div>

                </div>

            </div>
            <div class="spacer">
                <img src="../../../Images/spacer.gif" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <%--  <script data-main="../../../JavaScript/rjs/import-book" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/import-book")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
