<%@ page title="Daily Thought Master" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Communication_DailyThoughtMaster, App_Web_nljof4qm" 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" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="CircularUpdatePanel" runat="server">
        <ContentTemplate>
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <asp:HiddenField ID="IdHiddenField" runat="server" />
            <asp:HiddenField ID="IndexHiddenField" runat="server" />
            <asp:HiddenField ID="ButtonIdHiddenField" runat="server" />
            <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="157"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader5WireBox card card-box" id="SearchDiv" runat="server">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="Panel1" runat="server">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="Label3" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                    <div class="fRight mt-27">
                                        <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0"
                                            class="btn btn-add fas" Text="&#xf067; Add" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="SearchPanel" runat="Server">
                                <div class="contentHolder">
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchDailyThoughtSubjectLabel" Text="Daily Thought Subject" runat="server"></asp:Label>
                                        </div>
                                        <div class="">
                                            <asp:DropDownList ID="SearchDailyThoughtSubjectDownList" runat="server" onmouseleave="showHideTooltip()"
                                                onmouseenter="showHideTooltip()" AutoPostBack="false" SkinID="CustomWidthDropDownList"
                                                CssClass="form-control">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="outerBox pTop5 col-md-3">
                                        <div class="controlLabelWidth">
                                            <asp:Label ID="SearchTitleLabel" Text="Title" runat="server"></asp:Label>
                                        </div>
                                        <div class="fLeft pRight5">
                                            <asp:TextBox ID="SearchTitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                SkinID="CustomWidthTextBox" runat="Server" MaxLength="100"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="alignCenter pTop5 col-md-12 center">
                                        <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="Div2" class="himssuHeader7WireBox col-md-12" runat="server">
                                        <div id="DailyThoughtListDetailDiv" runat="server" visible="false">

                                            <div class="himsBoxHeader" id="DailyThoughtListDiv" runat="server" visible="false">
                                                <div class="leftdiv">
                                                </div>
                                                <div class="himsBoxTitle" style="width: 99%">
                                                </div>
                                            </div>
                                            <div class="himsBoxContent">
                                                <div id="Div5" runat="server" visible="false" class="table-responsive pTop5">
                                                    <asp:GridView ID="DailyThoughtListGridView" runat="server" AutoGenerateColumns="False"
                                                        CssClass="table table-striped table-bordered table-hover" ShowHeader="true" SkinID="" PagerSettings-Visible="false"
                                                        EmptyDataText="No Records Found !!" DataKeyNames="Id" OnRowDataBound="DailyThoughtMasterListGridView_RowDataBound">
                                                        <Columns>
                                                            <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true"
                                                                HeaderStyle-HorizontalAlign="Left" HeaderText="">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="SelectLinkButton" runat="server" CommandName="Select" Text="Select"
                                                                        CausesValidation="false" OnClick="SelectLinkButton_Click"></asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:BoundField DataField="DailyThoughtSubject" HeaderText="Daily Thought Subject" HeaderStyle-HorizontalAlign="Left" />
                                                            <asp:BoundField DataField="Title" HeaderText="Title" HeaderStyle-HorizontalAlign="Left" />
                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="Number" ItemStyle-Width="15%">
                                                                <ItemStyle HorizontalAlign="Center" />
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Number" runat="server" Text='<%#Eval("Number") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="Is Active" ItemStyle-Width="10%">
                                                                <ItemStyle HorizontalAlign="Center" />
                                                                <ItemTemplate>
                                                                    <asp:Label ID="IsObsolete" runat="server" Text='<%#Eval("IsObsolete") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                    <div class="himssuHeader1WireBox card card-box" id="DetailDiv" runat="server" visible="false">
                        <div class="himsBoxHeader card-head" id="Div4" runat="server" visible="True">
                            <div class="himsBoxTitle">
                                <div class="headerText fLeft">
                                    <header>
                                        <i class="fas fa-cog"></i>
                                        <asp:Label ID="Label4" Text="Maintainance" runat="server" />
                                    </header>
                                </div>
                            </div>
                            <div class="fRight mt-27 pagination display-flex ">
                                <table>
                                    <tr>
                                        <td class="formLabel">
                                            <div id="NumberOfRecordDiv" class="display-flex" runat="server" visible="true">
                                                <asp:LinkButton AlternateText="First page" ToolTip="First page" ID="FirstRecordImageButton"
                                                    runat="server" ImageUrl="~/Images/arrowLlast.gif" CommandName="Page" CommandArgument="First"
                                                    OnClick="FirstRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-backward"></i>
                                                </asp:LinkButton>
                                                <asp:LinkButton AlternateText="Previous page" ToolTip="Previous page" ID="PreviousImageButton"
                                                    runat="server" ImageUrl="~/Images/arrowLeft.gif" CommandName="Page" CommandArgument="Prev"
                                                    OnClick="PreviousImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-play fa-rotate-180"></i>
                                                </asp:LinkButton>
                                                &nbsp; &nbsp;
                                                            <asp:Label ID="LabelPage" runat="server" Text="Record " AssociatedControlID="ReCordNumber" />
                                                <asp:Label ID="ReCordNumber" Font-Bold="true" SkinID="Dummy" runat="server"></asp:Label>
                                                <asp:Label ID="ofLabel" Text="of" runat="server" />
                                                <asp:Label ID="TotalRecord" runat="server" />
                                                &nbsp; &nbsp;
                                                            <asp:LinkButton AlternateText="Next page" ToolTip="Next page" ID="NextImageButtom"
                                                                runat="server" ImageUrl="~/Images/arrowRight.gif" CommandName="Page" CommandArgument="Next"
                                                                OnClick="NextImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-play"></i>
                                                            </asp:LinkButton>
                                                <asp:LinkButton AlternateText="Last page" ToolTip="Last page" ID="LastRecordImageButton"
                                                    runat="server" ImageUrl="~/Images/arrowRLast.gif" CommandName="Page" CommandArgument="Last"
                                                    OnClick="LastRecordImageButton_Click" CssClass="btn btn-default gridviewpagerbuttonpadding">
                                                                <i class="fa fa-fast-forward"></i>
                                                </asp:LinkButton>
                                            </div>
                                        </td>
                                        <td>&nbsp; &nbsp;<asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0"
                                            class="btn btn-back fas" Text="&#xf30a; Back" />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <div class="tableContainer">

                                        <cc1:TabContainer Width="100%" ID="DailyThoughtTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox"
                                            meta:resourcekey="LearningTabContainerResource1" ActiveTabIndex="0">
                                            <cc1:TabPanel Width="100%" ID="DailyThoughtDetails" runat="server" HeaderText="DailyThought">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-plus-circle"></i>&nbsp;Daily Thought Add</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="DailyThoughtSubjectLabel" Text="Daily Thought Subject" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="">
                                                                <asp:DropDownList ID="DailyThoughtSubjectDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" AutoPostBack="false" SkinID="CustomWidthDropDownList"
                                                                    CssClass="form-control">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="TitleLabel" runat="server" Text="Title" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="TitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    runat="server" MaxLength="100" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                                <asp:HiddenField ID="DetailHiddenField" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="OrderIndexLabel" runat="server" Text="Number" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="OrderIndexTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    runat="server" MaxLength="100" SkinID="CustomWidthTextbox" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop15 col-md-3" id="ObsoleteCheckBoxDiv" runat="server">
                                                            <div class="controlLabelWidth">
                                                                <asp:CheckBox ID="ObsoleteCheckBox" runat="server" Text="InActive" />
                                                            </div>
                                                        </div>
                                                        <div class="alert alert-info col-md-12">
                                                            <i class="material-icons">info</i>
                                                            <asp:Label ID="infoLabel" runat="server" Text="| For better result of Image in Slider, Please upload image in 320 * 170 px resolution"></asp:Label>
                                                        </div>
                                                        <div class="outerBox11 pTop15 pb5 col-md-12">
                                                            <CKEditor:CKEditorControl ID="RemarkTextBox" BasePath="~/ckeditor/" runat="server" Height="500"></CKEditor:CKEditorControl>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="TabPanel1" runat="server" HeaderText="DailyThought">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-plus-circle"></i>&nbsp;Daily Thought Add Bulk</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <div class="tableContainer">
                                                            <div>
                                                                <div class="himsBoxHeader card-head inner" id="Div1" runat="server">
                                                                    <div class="leftdiv">
                                                                    </div>
                                                                    <div class="himsBoxTitle">
                                                                        <div class="pull-right col display-flex ">
                                                                            <asp:DropDownList ID="AddGridDropDownList" runat="server" SkinID="CustomWidthDropDownList"
                                                                                CssClass="form-control">
                                                                                <asp:ListItem Text="1" Value="0" Selected="True"></asp:ListItem>
                                                                                <asp:ListItem Text="5" Value="5"></asp:ListItem>
                                                                                <asp:ListItem Text="10" Value="10"></asp:ListItem>
                                                                                <asp:ListItem Text="15" Value="15"></asp:ListItem>
                                                                            </asp:DropDownList>&nbsp;&nbsp;
                                                                           <asp:Button ID="AddButton" runat="server" SkinID="0" CssClass="btn btn-add fas" OnClick="AddButton_Click"
                                                                               Text=" Add" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div id="Div22" class="himssuHeader6WireBox pTop15  col-md-12" runat="server">
                                                                    <%--<div class="alignCenter pTop5 col-md-12 center">
                                                                        <asp:Button ID="SaveBulkButton" runat="server" Style="top: 0px; height: 28px" Text="&#xf0c7; Save" SkinID="0" CssClass="btn-save btn fas" />
                                                                    </div>--%>
                                                                    <div class="himsBoxContent table-responsive">
                                                                        <asp:GridView ID="BulkDataGridView" runat="server" AutoGenerateColumns="False" OnRowDataBound="BulkDataGridView_RowDataBound"
                                                                            EmptyDataText="No Records Found !!" CssClass="table table-striped table-bordered table-hover" DataKeyNames="DailyThoughtSubjectId">
                                                                            <Columns>
                                                                                <asp:TemplateField HeaderText="Daily Thought Subject">
                                                                                    <ItemTemplate>
                                                                                        <asp:DropDownList ID="DailyThoughtSubjectBulkDropDownList" runat="server" class="form-control" />
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="10%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Title">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="TitleBulkTextBox" MaxLength="200" Text='<%#Bind("Title")%>' runat="server" SkinID="CustomWidthTextBox" />
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="10%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Description">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="DescriptionBulkTextBox" runat="server" Text='<%#Bind("Description")%>' SkinID="CustomWidthTextBox" />
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="10%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Number">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="NumberBulkTextBox" runat="server" Text='<%#Bind("Number")%>' SkinID="CustomWidthTextBox" />
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                    <ItemStyle Width="7%" Wrap="True" />
                                                                                </asp:TemplateField>
                                                                                <asp:TemplateField HeaderText="Delete">
                                                                                    <ItemTemplate>
                                                                                        <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" CommandName="Select" OnClick="DeleteImageButton_Click"
                                                                                            ToolTip="Delete" ImageUrl="../../../Images/icons/icon_delete.gif" />
                                                                                    </ItemTemplate>
                                                                                    <HeaderStyle HorizontalAlign="Center" />
                                                                                    <ItemStyle HorizontalAlign="Center" Width="5%" />
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                            <PagerSettings Visible="False" />
                                                                        </asp:GridView>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="TabPanel2" runat="server" HeaderText="DailyThought">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab"><a><i class="fas fa-plus-circle"></i>&nbsp;Daily Thought Import</a></li>
                                                    </ul>
                                                </HeaderTemplate>
                                                <ContentTemplate>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth" id="DailyThoughtHyperLinkDiv" runat="server" visible="true">
                                                            <asp:HyperLink ID="DailyThoughtHyperLink" runat="server" Text="Download Template" NavigateUrl="~/ContentTemplates/Import/DailyThoughtImport_Template.xls" CssClass="pointer fas"></asp:HyperLink>
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-2">
                                                        <div class="controlLabelWidth"><a class="btn btn-browser" href="javascript:;" onclick="OpenFileUpload();"><i class="fa fa-arrow-down"></i>Browse</a><asp:FileUpload ID="DailyThoughtflUpload" runat="server" onChange="DailyThoughtreadURL(this);" ClientIDMode="Static" Style="display: none;" /></div>
                                                        <br />
                                                    </div>
                                                    <div class="controlLabelWidth">
                                                        <asp:Label ID="Label2" runat="server" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                                    </div>
                                                    <div class="alignCenter col-md-12 pTop15 pb5">
                                                        <asp:Button ID="ImportButton" runat="server" OnClick="ImportButton_Click" Text="&#xf019; Import" SkinID="0" CssClass="btn-examcommon btn fas" />
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                        </cc1:TabContainer>
                                    </div>
                                </div>
                            </asp:Panel>
                            <%-- <div class="cBoth"></div>--%>
                        </div>
                    </div>
                </div>
            </div>
            </tr>
                    </table>
            </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>

    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/dailythought")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
    <script type="text/javascript">
        function Color_Changed(sender) {
            sender.get_element().value = "#" + sender.get_selectedColor();
        }
        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : event.keyCode
            if (charCode > 31 && (charCode < 48 || charCode > 57)) {
                return false;
            }
            else {
                var mobile = document.getElementById("MobileNoTextBox").value;
                var DOB = document.getElementById("BirthDateTextBox").value;
                if (mobile != "") {
                    document.getElementById("mobilenull").style.display = 'none';
                }
                if (DOB != "") {
                    document.getElementById("dobdnull").style.display = 'none';
                }
            }
        }
    </script>
</asp:Content>
