<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Communication_Discussion, App_Web_qzg5raal" 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="ResonMasterUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                
                            <div class="dashBoardLeftCont" 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 class="himssuHeader1WireBox card card-box">
                                    <div class="himsBoxHeader card-head">
                                       
                                        <div class="himsBoxTitle">
                                            <div class="headerText">
                                                <header>
                                                    <i class="fas fa-cog"></i>
                                                <asp:Label ID="DiscussionDetailLabel" runat="server" Text="Maintenance"></asp:Label>
                                                </header>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="himsBoxContent card-body">
                                        <div class="contentHolder">
                                            
                                                        <div class="outerBox pTop5 col-md-3">
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="TitleLabel" runat="server" Text="Name" SkinID="MandatoryLabel"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="TitleTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    runat="server" MaxLength="200" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                                <asp:HiddenField ID="IdHiddenField" runat="server" />
                                                            </div>
                                                        </div>
                                                      
                                                        <div class="outerBox pTop5 col-md-3" >
                                                            <div class="controlLabelWidth">
                                                                <asp:Label ID="RemarkLabel" runat="server" Text="Remark"></asp:Label>
                                                            </div>
                                                            <div class="fLeft pRight5">
                                                                <asp:TextBox ID="RemarkTextBox" runat="server" onmouseleave="showHideTooltip()" SkinID="MultiLineTextBox"
                                                                   onmouseenter="showHideTooltip()" MaxLength="500" TextMode="MultiLine"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="outerBox pTop15 col-md-12 center">
                                                                <asp:Button ID="AddPostButton" Text="&#xf067; Add Post" runat="Server" class="btn btn-add fas" OnClick="AddPostButton_Click" SkinID="0" />
                                                                <asp:Button ID="EditGroupButton" Text="&#xf044; Edit Group" runat="Server" OnClick="EditGroupButton_Click" SkinID="0" CssClass=" btn btn-edit fas"/>
                                                                <asp:Button ID="ClearButton" runat="server" Text="&#xf0e2; Clear" SkinID="0" OnClick="ClearButton_Click" class="btn-reset btn fas"/>
                                                        </div>
                                                      
                                                        <asp:Label runat="server" ID="MessageLabel" Text="No Discussion found" Font-Bold="true" Font-Size="Small" Visible="false" Style="margin-left: 10px"></asp:Label>
                                                        <asp:Repeater ID="DiscussionRepeater" runat="server" OnItemDataBound="DiscussionRepeater_OnItemDataBound">
                                                            <HeaderTemplate>
                                                                <i class="fa fa-comment-o" style="padding-left: 10px"></i>
                                                                <asp:Label runat="server" ID="Label1" Text="All Discussions" Width="500px" Font-Bold="true" Font-Size="Small" Style="margin-left: 10px"></asp:Label>
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <div class="small-box bg-blue-gradient whiteboxpaddingleft row" style="margin-bottom: 0px !important; width: 500px">
                                                                    <div class="inner">
                                                                        <asp:HiddenField runat="server" ID="DiscussionIdHiddenField" Value='<%# Eval("DiscussionId") %>' />
                                                                        <asp:LinkButton runat="server" ID="DiscussionRemarkLinkButton"
                                                                            Text='<%# DataBinder.Eval(Container.DataItem, "DiscussionRemark")+"<br />" %>' Font-Bold="true" Font-Size="Small"
                                                                            OnClick="DiscussionRemarkLinkButton_Click" ForeColor="Black"></asp:LinkButton>
                                                                    </div>
                                                                    <div class="small-box-footer" style="height: 20px">
                                                                        <asp:Label runat="server" ID="Label2" Text="Posted by " Font-Size="Smaller" CssClass="fLeft"></asp:Label>
                                                                        <asp:Label runat="server" ID="DiscussionCreatedUserNameLabel" Text='<%# Eval("DiscussionCreatedUserName") %>' Font-Size="Smaller" CssClass="fLeft" Font-Bold="true"></asp:Label>
                                                                        <asp:Label runat="server" ID="Label3" Text=" on "></asp:Label>
                                                                        <asp:Label runat="server" ID="DiscussionCreatedDateTimeLabel" Text='<%# DataBinder.Eval(Container.DataItem, "DiscussionCreatedDateTime", "{0:dddd,MMMM dd,yyyy}") %>'></asp:Label>
                                                                        <asp:LinkButton runat="server" ID="TotalDiscussionCommentLinkButton" Text='<%# Eval("TotalDiscussionComment")+"&nbsp;Comments" %>'
                                                                            Font-Size="Small" Font-Bold="true" Style="float: right" OnClick="TotalDiscussionCommentLinkButton_Click" ForeColor="Black"></asp:LinkButton>
                                                                    </div>
                                                                </div>
                                                                </div>
                                                                <div class="leftUlMenu" style="padding-left: 10px;">
                                                                    <ul>
                                                                        <li style="height: auto; color: Black; list-style-type: none; background-color: White; width: 60%"></li>
                                                                        
                                                                    </ul>
                                                                </div>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                                  
                                                        <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>
                                              </div>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
  <%--  <script data-main="../../JavaScript/rjs/encrypt/discussion-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/discussion")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>