<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MobileMasterPage.master" autoeventwireup="true" inherits="Pages_Communication_MViewQuery, App_Web_cj4q3yf2" title="View Query" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl"
    TagPrefix="Date" %>
<%@ 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="padding-top-header">
                <!-- ContentPlaceHolder Box Starts -->
               
                    <div class="alert alert-warning col-xl-12 col-md-12 col-sm-12" runat="server" id="MessageBox" visible="false">
                        <strong>
                            <asp:Label ID="MessageBoxLabel" runat="server"></asp:Label>
                        </strong>
                    </div>
                <div class="whiteboxpaddingleft row">
                    <!-- Sub Container1 Box Start -->
                    <div class="himssuHeader1WireBox">
                        <div class="himsBoxHeader page-bar col-xl-12 col-md-12 col-sm-12 padd-0">
                            <div class="width-100 border-bottom-inline">
                                <div class=" pull-left  main-topic">
                                    <asp:Label ID="ViewQueryLabel" runat="server" CssClass="page-title" Text="View Query"></asp:Label>
                                </div>
                            </div>

                        </div>
                        <div class="card-box card inner col-md-12 col-xl-12 col-sm-12">
                            <div class="himsBoxContent card-body  padd-0">
                                <div class="fRight mt-27">
                                    <asp:Button ID="BackButton" runat="Server" OnClick="BackButton_Click" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  Back" />
                                </div>
                                <div class="contentHolder">


                                    <div class="pTop15 col-md-12">
                                        <table class="table table-hover table-striped">
                                            <tr class="table-bordered">
                                                <td class="etestreview">
                                                    <asp:Label ID="QueryCategoryLabel" runat="server" Text="Query Category" Font-Bold="true"></asp:Label></td>
                                                <td class="table-bordered" style="padding: 4px">
                                                    <asp:Label ID="QueryCategoryTextBoxLabel" runat="server"></asp:Label>
                                                    <asp:HiddenField ID="IdHiddenField" runat="server" />
                                                </td>
                                            </tr>
                                            <tr class="table-bordered">
                                                <td class="etestreview" style="vertical-align: top">
                                                    <asp:Label ID="TitleLabel" runat="server" Text="Title" Font-Bold="true"></asp:Label></td>
                                                <td class="table-bordered" style="padding: 4px">
                                                    <asp:Label ID="TitleTextBoxLabel" runat="server"></asp:Label></td>
                                            </tr>
                                            <tr class="table-bordered">
                                                <td class="etestreview">
                                                    <asp:Label ID="RemarkLabel" runat="server" Text="Remark" Font-Bold="true"></asp:Label></td>
                                                <td style="padding: 4px" class="table-bordered">
                                                    <asp:Label ID="RemarkTextBoxLabel" runat="server"></asp:Label></td>
                                            </tr>
                                            <tr class="table-bordered">
                                                <td class="etestreview">
                                                    <asp:Label ID="StatusLabel" runat="server" Text="Status" Font-Bold="true"></asp:Label></td>
                                                <td class="table-bordered" style="padding: 4px">
                                                    <asp:Label ID="StatusDropDownListLabel" runat="server"></asp:Label></td>
                                            </tr>
                                        </table>

                                    </div>

                                    <div class="col-md-12 pTop5">
                                        <asp:Label CssClass="fa fa-comment-o" ID="CommentLabel" runat="server" Text=" Comments" SkinID="CustomWidthLabel" Width="100%" Font-Bold="true"></asp:Label>
                                    </div>

                                    <div class="col-md-12 pTop5">
                                        <asp:TextBox ID="CommentTextBox" onmouseleave="showHideTooltip()" SkinID="MultiLineTextbox"
                                            TextMode="MultiLine" Width="100%" Height="120px" runat="server" MaxLength="300"></asp:TextBox>
                                    </div>

                                    <div class="col-md-12 pTop5 pb5 alignCenter">

                                        <asp:Button ID="CommentButton" Text="&#xf075; Comment" runat="Server" OnClick="SaveButton_Click" SkinID="0" CssClass="btn btn-assign fas" />
                                        <asp:Button ID="CloseButton" runat="server" Text="Close" OnClick="CloseButton_Click" Visible="false" />
                                        <asp:HiddenField runat="server" ID="DeleteCommentIdHiddenField" />
                                    </div>

                                    <%-- need to change --%>
                                    <%--  <div class="outerBox pTop5">
                                                <div class="fLeft pRight5">
                                                    <table cellspacing="10px" class="gridviewfontbigger">
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="QueryCategoryLabel" runat="server" Text="Query Category" SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                            <td>
                                                                <asp:Label runat="server" ID="QueryCategoryTextBoxLabel" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    SkinID="CustomWidthLabel" Width="150px">
                                                                </asp:Label>
                                                                <asp:HiddenField ID="IdHiddenField" runat="server" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="TitleLabel" runat="server" Text="Title" SkinID="CustomWidthLabel" Width="100px" Font-Bold="true"></asp:Label></td>
                                                            <td>
                                                                <asp:Label ID="TitleTextBoxLabel" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                    runat="server" MaxLength="100" AutoPostBack="false"
                                                                    SkinID="CustomWidthLabel" Width="150px"></asp:Label></td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="RemarkLabel" runat="server" Text="Remark" SkinID="CustomWidthLabel" Width="100px" Font-Bold="true"></asp:Label></td>
                                                            <td>
                                                                <asp:Label ID="RemarkTextBoxLabel" onmouseleave="showHideTooltip()" runat="server" SkinID="CustomWidthLabel" Width="100px"></asp:Label></td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="StatusLabel" runat="server" Text="Status" SkinID="CustomWidthLabel" Width="100px" Font-Bold="true"></asp:Label></td>
                                                            <td>
                                                                <asp:Label runat="server" ID="StatusDropDownListLabel" onmouseleave="showHideTooltip()"
                                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel" Width="150px">
                                                                </asp:Label></td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2"><i class="fa fa-comment-o"></i>
                                                                <asp:Label ID="CommentLabel" runat="server" Text="Comments" SkinID="CustomWidthLabel" Width="100px" Font-Bold="true"></asp:Label></td>
                                                        </tr>
                                                    </table>
                                                    <table cellspacing="10px">
                                                        <tr>
                                                            <td>
                                                                <asp:TextBox ID="CommentTextBox" onmouseleave="showHideTooltip()" SkinID="MultiLineTextbox"
                                                                    TextMode="MultiLine" Width="150px" Height="120px" runat="server" MaxLength="300"></asp:TextBox></td>
                                                        </tr>

                                                        <tr>

                                                            <td>
                                                                <div class="spacer">
                                                                    <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" />
                                                                </div>
                                                                &nbsp;<asp:Button ID="CommentButton" Text="Comment" runat="Server" Width="80px" OnClick="SaveButton_Click" SkinID="0" CssClass="PrimaryButton" />
                                                                <asp:Button ID="CloseButton" runat="server" Text="Close" OnClick="CloseButton_Click" Visible="false" />
                                                                <asp:HiddenField runat="server" ID="DeleteCommentIdHiddenField" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </div>--%>
                                    <%-- need to change --%>

                                    <div class="cBoth">
                                    </div>

                                    <asp:Repeater ID="QueryRepeater" runat="server" OnItemDataBound="QueryRepeater_OnItemDataBound">
                                        <ItemTemplate>
                                            <div class="leftUlMenu col-md-12 col-xl-12 col-sm-12">
                                                <ul>
                                                    <li>


                                                        <asp:HiddenField runat="server" ID="CommentIdHiddenField" Value='<%# Eval("QueryCommentId") %>' />
                                                        <asp:Label runat="server" ID="CommentCreatedUserNameLabel" Text='<%# Eval("UserName") %>'
                                                            Font-Size="Small" Font-Bold="true"></asp:Label>
                                                        <asp:LinkButton ID="DeleteLinkButton" CssClass="label label-danger" Style="float: right" runat="server" Text="Delete" ForeColor="Blue" Visible="false" OnClick="DeleteLinkButton_Click"></asp:LinkButton>


                                                        <asp:Label runat="server" ID="CommentCreatedDateTimeLabel" Text='<%# DataBinder.Eval(Container.DataItem, "CreatedDateTime", "{0:MMMM dd,yyyy}") %>'
                                                            Style="float: right" CssClass="whiteboxpaddingleft" 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="150px"></asp:Label>
                                                        </div>
                                                    </li>

                                                </ul>
                                            </div>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                    <div class="cBoth">
                                    </div>

                                </div>
                            </div>
                            <!-- Sub Container1 Box Ends -->
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main="../../JavaScript/rjs/encrypt/mdiscussion-encrypt" src="../../JavaScript/rjs/require.js"></script>
</asp:Content>
