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

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

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="BlogUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
               
                            <div class="dashBoardLeftCont">
                                <div class="himssuHeader3WireBox">
                                    <table>
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="114"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <div class="contentHolder">
                                    <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-list-ul"></i>
                                                    <asp:Label ID="Label4" Text="News View"
                                                        runat="server" />
                                                    </header>
                                                </div>
                                            </div>
                                            <div class="fRight mt-27">
                                                <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" class="btn btn-back fas" Text="&#xf30a; Back" />
                                            </div>
                                        </div>
                                        <div class="himsBoxContent card-body">
                                            <asp:Panel ID="DetailPanel" runat="Server">
                                                <div class="contentHolder">
                                                    <div class="outerBox11 pTop5 col-md-12">
                                                        <div class="fLeft pRight5">
                                                                    <div class="small-box bg-blue-gradient">
                                                                        <div class="col-md-12">
                                                                                <asp:Label ID="TitleLabel" runat="server" Font-Bold="true"></asp:Label>
                                                                              <div class="icon">
                                                                            <i class="fa fa-newspaper-o"></i>
                                                                        </div>
                                                                        </div>
                                                                        <div class="small-box-footer col-md-12" >
                                                                            <asp:Label CssClass="fLeft" ID="NewsDetailsLabel" runat="server"></asp:Label>
                                                                            <asp:Label ID="TotalCommentLabel" CssClass="fas fa-comments fRight" runat="server" Font-Bold="true" Font-Size="Small"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                
                                                                <div class="remarkcolor col-md-12">
                                                                    <div class="remarkcolor profilenew">
                                                                        <asp:Label ID="NewsRemarkLabel" Font-Size="Medium" CssClass="profilenew" runat="server"></asp:Label></div>
                                                                </div>
                                                            
                                                        </div>
                                                    </div>
                                                    


                                                    <div class="outerBox11 pTop5 col-md-12">
                                                        <div class="fLeft pRight5">
                                                            <asp:TextBox ID="RemarkTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="MultiLineTextBox"
                                                                onmouseenter="showHideTooltip()" MaxLength="500" TextMode="MultiLine" Height="40px"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    
                                                    <div class="outerBox pTop5 col-md-12">
                                                        <div class="fLeft pRight5">
                                                            <asp:Button ID="CommentButton" Text="&#xf075; Comment" runat="Server" OnClick="CommentButton_Click" SkinID="0" CssClass="btn btn-examcommon fas" />
                                                            <asp:HiddenField runat="server" ID="DeleteCommentIdHiddenField" />
                                                        </div>
                                                    </div>
                                                    
                                                    <asp:Repeater ID="NewsRepeater" runat="server" OnItemDataBound="NewsRepeater_OnItemDataBound">
                                                        <ItemTemplate>
                                                            <div class="leftUlMenu col-md-12">
                                                                <ul>
                                                                    <li>
                                                                        <asp:HiddenField runat="server" ID="CommentIdHiddenField" Value='<%# Eval("Id") %>' />
                                                                        <asp:Label runat="server" ID="CommentCreatedUserNameLabel" Text='<%# Eval("CommentCreatedUserName") %>' Font-Size="Medium" Font-Bold="true"></asp:Label>
                                                                        <asp:LinkButton ID="DeleteLinkButton" runat="server" Text="Delete" CssClass="label label-danger" Visible="false" OnClick="DeleteLinkButton_Click" Style="float: right"></asp:LinkButton>
                                                                        <asp:Label runat="server" ID="CommentCreatedDateTimeLabel" Text='<%# DataBinder.Eval(Container.DataItem, "CommentCreatedDateTime", "{0:MMMM dd,yyyy}")%>'
                                                                            Style="float: right" CssClass="whiteboxpaddingleft row" Font-Bold="true"></asp:Label>
                                                                        <div class="rollIn">
                                                                            <asp:Label CssClass="direct-chat-text rollIn" runat="server" ID="RemarkLabel" Text='<%# DataBinder.Eval(Container.DataItem, "Remark").ToString().Replace(Environment.NewLine, "<br />") %>' ></asp:Label>
                                                                        </div>
                                                                    </li>
                                                                    
                                                                </ul>
                                                            </div>                                                          
                                                        </ItemTemplate>
                                                    </asp:Repeater>                                                   
                                                </div>
                                            </asp:Panel>
                                        </div>
                                    </div>
                                </div>
                                
                            </div>
                        </tr>
                    </table>                
                </div>
            </div>
           
        </ContentTemplate>
    </asp:UpdatePanel>  
  <%--   <script data-main="../../JavaScript/rjs/encrypt/news-view-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/news-view")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
      <script type="text/javascript">
        function RedirectToNewCommunication(CommunicationURL) {
            var newTab = window.open(CommunicationURL, '_blank');
            // Redirect the current page with an absolute path
            window.location.href = '../../Pages/BaseFramework/MyDashBoard.aspx';
        }
      </script>
</asp:Content>