<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Communication_DiscussionView, App_Web_wjuutrxi" 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="DiscussionUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                
                            <div class="dashBoardLeftCont" valign="top" runat="server" id="ScreenGroupTableId">
                                <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>
                                <div class="contentHolder card card-box">
                                    <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-search"></i>
                                                    <asp:Label ID="Label4" Text="Discussion 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">
                                            <table width="100%">
                                                <tr>
                                                    <td width="80%" valign="top">
                                                        <asp:Panel ID="DetailPanel" runat="Server">
                                                            <div class="contentHolder">
                                                                <div class="outerBox pTop5 col-md-3" style="width: 100%">
                                                                    <div class="fLeft pRight5">
                                                                        <table cellspacing="10px">
                                                                            <tr>
                                                                                <div class="small-box bg-blue-gradient" style="margin-bottom: 0px !important">
                                                                                    <div class="inner">
                                                                                        <p>
                                                                                            <asp:Label ID="TitleLabel" runat="server" Width="500px" Font-Bold="true" Font-Size="XX-Large"></asp:Label>
                                                                                        </p>
                                                                                    </div>
                                                                                    <div class="icon">
                                                                                        <i class="fa fa-user-plus" style="padding-top: 15px !important; padding-bottom: 25px"></i>
                                                                                    </div>
                                                                                    <div class="small-box-footer" style="height: 20px">
                                                                                        <asp:Label ID="DiscussionDetailsLabel" runat="server" CssClass="fLeft whiteboxpaddingleft row"></asp:Label>
                                                                                        <asp:Label ID="TotalCommentLabel" CssClass="fa fa-comments-o fRight whiteboxpaddingleft row" runat="server" Font-Bold="true" Font-Size="Small"></asp:Label>
                                                                                    </div>
                                                                                </div>
                                                                            </tr>
                                                                            <tr>
                                                                                <td></td>
                                                                            </tr>
                                                                            <tr class="remarkcolor">
                                                                                <td class="remarkcolor profilenew">
                                                                                    <asp:Label Font-Size="Small" ID="DiscussionRemarkLabel" runat="server" Width="520px"></asp:Label></td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                </div>
                                                               
                                                                <div class="outerBox pTop5 col-md-3">
                                                                    <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 fas" >
                                                                    <div class="fLeft pRight5">
                                                                        <asp:Button ID="CommentButton" Text="&#xf075; Comment" runat="Server" CssClass="btn btn-examcommon fas" OnClick="CommentButton_Click" SkinID="0" />
                                                                        <asp:HiddenField runat="server" ID="DeleteCommentIdHiddenField" />
                                                                    </div>
                                                                </div>
                                                              
                                                                <asp:Repeater ID="DiscussionRepeater" runat="server" OnItemDataBound="DiscussionRepeater_OnItemDataBound">
                                                                    <ItemTemplate>
                                                                        <div class="leftUlMenu" style="padding-left: 20px">
                                                                            <ul>
                                                                                <li style="height: auto; color: Black; list-style-type: none; background-color: White; width: 40%">
                                                                                    <asp:HiddenField runat="server" ID="CommentIdHiddenField" Value='<%# Eval("Id") %>' />
                                                                                    <asp:Label runat="server" ID="CommentCreatedUserNameLabel" Text='<%# Eval("CommentCreatedUserName") %>' Font-Size="Smaller" 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 />") %>' Width="390px"></asp:Label>
                                                                                    </div>
                                                                                </li>
                                                                                
                                                                            </ul>
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:Repeater>
                                                            </div>
                                                        </asp:Panel>
                                                    </td>
                                                    <td width="20%" valign="top" style="position: sticky; max-height: 100px;">
                                                        <asp:Repeater ID="MyGroupRepeater" runat="server" OnItemDataBound="MyGroupRepeater_OnItemDataBound">
                                                            <HeaderTemplate>
                                                                <asp:Label runat="server" ID="GroupLabel" Text="My Group" Width="100%" Font-Bold="true" Font-Size="Small"></asp:Label>

                                                                <asp:LinkButton runat="server" ID="AllMembersLinkButton" Text="See All Members" CssClass="pad"
                                                                    Font-Size="Small" Font-Bold="true" Style="float: right" OnClick="AllMembersLinkButton_Click"></asp:LinkButton>
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <div class="leftUlMenu">
                                                                    <ul>
                                                                        <li style="height: auto; color: Black; list-style-type: none; background-color: White !important;">
                                                                            <asp:HiddenField runat="server" ID="DiscussionGroupIdHiddenField" Value='<%# Eval("DiscussionGroupId") %>' />
                                                                            <asp:LinkButton BackColor="White" ID="DiscussionGroupLinkButton" runat="server" Text='<%# Eval("DiscussionGroup") %>' OnClick="DiscussionGroupLinkButton_Click"></asp:LinkButton>
                                                                        </li>
                                                                    </ul>
                                                                </div>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                                        <div class="chatboxgroup" style="margin-right: 25px; position: fixed; overflow-y: auto; max-height: 70%; margin-right: 25px; scrollbar-base-color: black">
                                                            <asp:Repeater ID="GroupMembersRepeater" runat="server">
                                                                <HeaderTemplate>
                                                                    <asp:Label CssClass="label label-success chatboxgroupheader" runat="server" ID="GroupMemberLabel" Text="Group Members" Width="100%" Font-Bold="true" Font-Size="Small"></asp:Label>
                                                                    <div style="margin-bottom: 20px !important"></div>
                                                                </HeaderTemplate>
                                                                <ItemTemplate>
                                                                    <div class="leftUlMenu">
                                                                        <ul class="chatbox" style="padding-left: 5px; margin-bottom: 1px">
                                                                            <li class="chatbox zoomin" style="height: auto; color: Black; list-style-type: none;">
                                                                                <asp:Label ID="DiscussionGroupMemberLabel" runat="server" Text='<%# Eval("SourceName") %>'></asp:Label>
                                                                            </li>
                                                                        </ul>
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:Repeater>
                                                        </div>
                                                        <br />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td></td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                               

                            </div>
                        </tr>
                    </table>
                </div>
            </div>
           
        </ContentTemplate>
    </asp:UpdatePanel>
  <%--  <script data-main="../../JavaScript/rjs/encrypt/discussion-view-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/discussion-view")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>