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

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

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" 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="157"
                                                            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="himsBoxTitle">
                                            <div class="headerText fLeft">
                                                <header>
                                                    <i class="fas fa-edit"></i>
                                                <asp:Label ID="Label4" Text="My Blog"
                                                    runat="server" />
                                                </header>
                                            </div>
                                        </div>
                                        <div class="fRight mt-27">
                                            <asp:Button ID="ViewButton" runat="server" OnClick="ViewButton_Click" SkinID="0" CssClass="AddButton" Text="View" Visible="false" />
                                            <asp:Button ID="AddNewButtonID" runat="server" OnClick="AddNewButton_Click" SkinID="0" class="btn btn-add fas" Text="&#xf067; Add" />
                                        </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="MyBlogGridViewPagerDiv" runat="server" visible="true">
                                                        
                                                        <div class="himsBoxTitle">
                                                            <%--<div class="gridHeaderText ">
                                                                <header>
                                                                <asp:Label ID="Label1" Text="My Blog List" runat="server" />
                                                                    </header>
                                                            </div>--%>
                                                            <div class="fRight">
                                                                <uc1:GridViewPager ID="MyBlogGridViewPager" ParentGridView="MyBlogGridView"
                                                                    runat="server" OnFirstRecordClick="MyBlogGridViewPager_FirstRecordClick" OnLastRecordClick="MyBlogGridViewPager_LastRecordClick"
                                                                    OnNextRecordClick="MyBlogGridViewPager_NextRecordClick" OnPrevRecordClick="MyBlogGridViewPager_PrevRecordClick"
                                                                    OnTextBoxValueChange="MyBlogGridViewPager_TextBoxValueChange" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="himsBoxContent card-body table-responsive">
                                                        <asp:GridView runat="server" ID="MyBlogGridView" AutoGenerateColumns="False"
                                                            EmptyDataText="No records available for the seacrh criteria!" OnRowDataBound="MyBlogGridView_RowDataBound"
                                                            CssClass="table table-striped table-bordered table-hover" AllowPaging="True" PageSize="10" DataKeyNames="BlogId,IsPublish"
                                                            ShowHeader="true" meta:resourcekey="MyBlogGridViewResource1">
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="Name" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="TitleLabel" runat="server" Text='<%# Bind("Title") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Remark" ItemStyle-Width="25%" HeaderStyle-HorizontalAlign="Left" Visible="false">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="BlogRemarkLabel" runat="server" Text='<%# Bind("BlogRemark") %>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="TotalBlogFavorite" HeaderText="Favourite" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:BoundField DataField="TotalBlogComment" HeaderText="Comment" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:BoundField DataField="BlogCreatedDateTime" HeaderText="Created Date" ItemStyle-Width="15%" DataFormatString="{0:MMMM dd,yyyy}" HeaderStyle-HorizontalAlign="Left" />
                                                                <asp:TemplateField ItemStyle-Width="7%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" Visible="false">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="ViewLinkButton" runat="server" CommandName="Select" OnClick="ViewLinkButton_Click"
                                                                            Text="View" CausesValidation="false"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField ItemStyle-Width="7%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="EditLinkButton" runat="server" CommandName="Select" OnClick="EditLinkButton_Click"
                                                                            Text="Edit" CausesValidation="false"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField ItemStyle-Width="7%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="DeleteLinkButton" runat="server" CommandName="Select" OnClick="DeleteLinkButton_Click"
                                                                            Text="Delete" CausesValidation="false"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField ItemStyle-Width="9%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="PublishLinkButton" runat="server" CommandName="Select" OnClick="PublishLinkButton_Click"
                                                                            Text='<%# DataBinder.Eval(Container.DataItem,"IsPublish").ToString().ToUpper()=="TRUE"?"UnPublish":"Publish" %>' CausesValidation="false"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <PagerSettings Visible="False" />
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                               
                </div>
                                
            </div>
            </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>