<%@ page language="C#" autoeventwireup="true" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" inherits="Pages_EExam_AvailabelTests, App_Web_jeu1c3wf" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="Common" %>
<%@ Register Src="~/UserControls/Common/EmployeeSearch/EmployeeSearch.ascx" TagName="EmployeeSearchControl" TagPrefix="hims" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="DPC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="OTQueueListingUpdatePanel" runat="server">
        <ContentTemplate>
            <hims:EmployeeSearchControl ID="EmployeeSearch" Visible="false" runat="server" />
            <Common:CommonSearchUserControl ID="CommonSearchControl" runat="server" Visible="false" />
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont" runat="server" id="ScreenGroup">
                    <div class="himssuHeader3WireBox">
                        <table>
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl1" ScreenGroupId="172"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>

                <div class="whiteboxpaddingleft row">
                    <div class="himssuHeader1WireBox card card-box">
                        <div id="TestParticipantDetailDiv" runat="server" visible="true">
                            <div class="himsBoxHeader card-head" id="GridViewPagerDiv" runat="server" visible="true">

                                <div class="himsBoxTitle ">
                                    <div class="headerText fLeft">
                                        <header>
                                            <i class="fas fa-list-ul"></i>
                                            <asp:Label ID="GridViewLabel" Text="Available Tests" runat="server" />
                                        </header>
                                    </div>

                                    <div class="fRight display-flex mt-25">
                                        <uc1:GridViewPager ID="AvailableTestsGridViewPager" Visible="false" runat="server"
                                            ParentGridView="AvailableTestsGridView" />

                                        <asp:DropDownList ID="TestStatusDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                            onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control"
                                            AutoPostBack="true" OnSelectedIndexChanged="TestStatusDropDownList_OnSelectedIndexChanged" Visible="false">
                                            <asp:ListItem Text="Assign" Value="543" Selected="True"></asp:ListItem>
                                            <asp:ListItem Text="Started" Value="544"></asp:ListItem>
                                            <asp:ListItem Text="Completed" Value="545"></asp:ListItem>
                                            <asp:ListItem Text="Checking" Value="724"></asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                </div>
                            </div>

                            <div class="himsBoxContent card-body">
                                <div id="Div1" runat="server" visible="true">
                                    <asp:Panel ID="DetailPanel" runat="Server">
                                        <div class="contentHolder">
                                            <div class="himssuHeader6WireBox col-md-12">
                                                <%-- <div class="himsBoxContent card-body table-responsive">--%>
                                                <div id="SearchDiv" runat="server">
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Label3" runat="server" Text="From Date" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="SearchFromDatePickerControl"
                                                                runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="Label9" runat="server" Text="To Date" SkinID="MandatoryLabel"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="SearchToDatePickerControl"
                                                                runat="server" />
                                                        </div>
                                                    </div>
                                                    <div class="outerBox pTop5 col-md-3">
                                                        <div class="controlLabelWidth">
                                                            <asp:Label ID="TestStatusLabel" runat="server" Text="Test Status"></asp:Label>
                                                        </div>
                                                        <div class="fLeft pRight5">
                                                            <asp:DropDownList ID="SearchTestStatusDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                                AutoPostBack="true">
                                                                <asp:ListItem Text="-All-" Value="0" Selected="True"></asp:ListItem>
                                                                <asp:ListItem Text="Assign" Value="543"></asp:ListItem>
                                                                <%--<asp:ListItem Text="Started" Value="544"></asp:ListItem>--%>
                                                                <asp:ListItem Text="Completed" Value="545"></asp:ListItem>
                                                                <asp:ListItem Text="Checking" Value="724"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="alignCenter col-md-12 pTop15 pb5">
                                                        <asp:Button ID="SearchButton" runat="Server" Text="&#xf002; Search" OnClick="SearchButton_Click" SkinID="0" CssClass="btn-search btn fas" />
                                                    </div>
                                                </div>
                                                <div class="alignCenter pTop5 col-md-12">
                                                    <asp:Button ID="TakeFromOtherDomainButton" runat="server" Text="Take From Other Domain" OnClick="TakeFromOtherDomain_Click"
                                                        SkinID="0" CssClass="btn-search btn fas" Visible="false" />
                                                </div>
                                                <asp:GridView ID="AvailableTestsGridView" runat="server" AutoGenerateColumns="False"
                                                    EmptyDataText="Not any Tests Available !!" AllowPaging="False" OnRowDataBound="AvailableTestsGridView_RowDataBound"
                                                    DataKeyNames="TestParticipantId,IsDisplayResultOnComplete,IsAllowReview" ShowHeader="True" CssClass="table table-striped table-bordered table-hover">
                                                    <Columns>
                                                        <asp:TemplateField ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="ViewLinkButton" runat="server" CommandName="Select" OnClick="ViewLinkButton_Click"
                                                                    Text="View" CausesValidation="false"></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="TestType" HeaderText="Test Type" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="Test" HeaderText="Test" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="SubjectName" HeaderText="Subject" ItemStyle-Width="10%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:TemplateField HeaderText="Test Date" ItemStyle-Width="10%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                            ItemStyle-Wrap="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="TestDateLabel" runat="server" Text='<%# Bind("TestDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="TotalMarks" HeaderText="Total Marks" ItemStyle-Width="5%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:BoundField DataField="TestDuration" HeaderText="Total Duration" ItemStyle-Width="5%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                        <asp:TemplateField HeaderText="Test Timing" ItemStyle-Width="15%" SortExpression="Title" HeaderStyle-HorizontalAlign="Left"
                                                            ItemStyle-Wrap="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="TestTimeLabel" runat="server" Text='<%# Eval("FromDateTime") +" - "+ Eval("ToDateTime")%>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ItemStyle-Width="10%" HeaderText="Test Status" ItemStyle-HorizontalAlign="left" ItemStyle-Wrap="true">
                                                            <ItemTemplate>
                                                                <asp:Label ID="TestStatusLabel" runat="server" Text='<%# Eval("TestStatus") %>'></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <%--<asp:BoundField DataField="TestStatus" HeaderText="Test Status" ItemStyle-Width="10%"
                                                            HeaderStyle-HorizontalAlign="Left"></asp:BoundField>--%>
                                                        <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="left" ItemStyle-Wrap="true" Visible="false">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="SelectLinkButton" runat="server" CommandName="Select" Text="Take Test"
                                                                    CausesValidation="false" OnClick="SelectLinkButton_Click"></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField ItemStyle-Width="10%" ItemStyle-HorizontalAlign="left" ItemStyle-Wrap="true" Visible="false">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="ReviewLinkButton" runat="server" Text="Review" CausesValidation="false"
                                                                    OnClick="ReviewLinkButton_Click"></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <PagerSettings Visible="False" />
                                                </asp:GridView>
                                                <%-- </div>--%>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </div>
                                <div id="eExamDetailDiv" runat="server" visible="false">
                                    <asp:Panel ID="Importfeesetupheader" runat="server">
                                        <div class="himsBoxHeader card-head inner">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                        <asp:Label ID="Label4" runat="server" Text="eExam Details"></asp:Label>
                                                    </header>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                    <asp:Panel ID="Importfeesetupcontent" runat="server">
                                        <div class="himsBoxContent">
                                            <div class="outerBox col-md-3 display-flex" style="height: 30px;">
                                                <asp:Label ID="TitlelabelL" runat="server" Text="Title : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                                    &nbsp;  &nbsp;
                                                <asp:Label runat="server" ID="TitlelabelT" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                </asp:Label>
                                            </div>
                                        </div>

                                        <div class="himsBoxContent">
                                            <div class="outerBox col-md-3 display-flex" style="height: 30px;">
                                                <asp:Label ID="ClassLabelL" runat="server" Text="Class : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                                    &nbsp;  &nbsp;
                                                <asp:Label runat="server" ID="ClassLabelT" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                </asp:Label>
                                            </div>

                                        </div>
                                        <div class="himsBoxContent">
                                            <div class="outerBox col-md-3 display-flex" style="height: 30px;">
                                                <asp:Label ID="SubjectLabelL" runat="server" Text="Subject : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                                    &nbsp;  &nbsp;
                                                <asp:Label runat="server" ID="SubjectLabelT" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                </asp:Label>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div class="outerBox col-md-3 display-flex" style="height: 30px;">
                                                <asp:Label ID="TestTypeLabelL" runat="server" Text="Test Type : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                                    &nbsp;  &nbsp;
                                                <asp:Label runat="server" ID="TestTypeLabelT" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                </asp:Label>
                                            </div>
                                        </div>
                                        <div class="cBoth"></div>
                                        <div class="himsBoxContent">
                                            <div class="outerBox col-md-3 display-flex" style="height: 30px;">
                                                <asp:Label ID="TestDateLabelL" runat="server" Text="Test Date : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                                    &nbsp;  &nbsp;
                                                <asp:Label runat="server" ID="TestDateLabelT" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                </asp:Label>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div class="outerBox col-md-3 display-flex" style="height: 30px;">
                                                <asp:Label ID="TestQuestionLabelL" runat="server" Text="Test Questions : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                                    &nbsp;  &nbsp;
                                                <asp:Label runat="server" ID="TestQuestionLabelT" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                </asp:Label>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div class="outerBox col-md-3 display-flex" style="height: 30px;">
                                                <asp:Label ID="TestDurationLabelL" runat="server" Text="Test Duration : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                                    &nbsp;  &nbsp;
                                                <asp:Label runat="server" ID="TestDurationLabelT" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                </asp:Label>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div class="outerBox col-md-3 display-flex" style="height: 30px;">
                                                <asp:Label ID="TotalMarksLabelL" runat="server" Text="Total Marks : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                                    &nbsp;  &nbsp;
                                                <asp:Label runat="server" ID="TotalMarksLabelT" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                </asp:Label>
                                            </div>
                                        </div>
                                        <div class="cBoth"></div>
                                        <div class="himsBoxContent">
                                            <div class="outerBox col-md-3 display-flex" style="height: 30px;">
                                                <asp:Label ID="FromDateLabelL" runat="server" Text="From Date : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                                    &nbsp;  &nbsp;
                                                <asp:Label runat="server" ID="FromDateLabelT" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                </asp:Label>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div class="outerBox col-md-3 display-flex" style="height: 30px;">
                                                <asp:Label ID="FromTimeLabelL" runat="server" Text="From Time : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                                    &nbsp;  &nbsp;
                                                <asp:Label runat="server" ID="FromTimeLabelT" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                </asp:Label>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div class="outerBox col-md-3 display-flex" style="height: 30px;">
                                                <asp:Label ID="ToDateLabelL" runat="server" Text="To Date : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                                    &nbsp;  &nbsp;
                                                <asp:Label runat="server" ID="ToDateLabelT" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                </asp:Label>
                                            </div>
                                        </div>
                                        <div class="himsBoxContent">
                                            <div class="outerBox col-md-3 display-flex" style="height: 30px;">
                                                <asp:Label ID="ToTimeLabelL" runat="server" Text="To Time : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                                    &nbsp;  &nbsp;
                                                <asp:Label runat="server" ID="ToTimeLabelT" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                </asp:Label>
                                            </div>
                                        </div>

                                    </asp:Panel>

                                    <%-- Remark --%>
                                    <asp:Panel ID="Panel1" runat="server">
                                        <div class="himsBoxHeader card-head inner">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                        <asp:Label ID="Label1" runat="server" Text="eExam Instruction and Details"></asp:Label>
                                                    </header>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                    <asp:Panel ID="Panel2" runat="server">
                                        <div class="himsBoxContent">
                                            <div class="outerBox col-md-12 display-flex" style="height: 30px;">
                                                <asp:Label ID="Label2" runat="server" Text="General Instructions : " SkinID="CustomWidthLabel" Font-Bold="true"></asp:Label></td>
                                                                    &nbsp;  &nbsp;
                                                 </br>
                                                <asp:Label runat="server" ID="RemarkLabelT" onmouseleave="showHideTooltip()"
                                                    onmouseenter="showHideTooltip()" SkinID="CustomWidthLabel">
                                                </asp:Label>
                                            </div>
                                        </div>

                                        <div class="alignCenter pTop5 col-md-12 pTop5">
                                            <asp:Button ID="StartTestButton" runat="server" Text="Start Test" CssClass="btn-search btn fas" SkinID="0" Visible="false" OnClick="StartTestButton_Click" />
                                            <asp:Button ID="ResultButton" runat="server" Text="Result" CssClass="btn-search btn fas" SkinID="0" Visible="false" OnClick="ResultButton_Click" />
                                            <asp:Button ID="ReviewButton" runat="server" Text="Review" CssClass="btn-search btn fas" SkinID="0" Visible="false" OnClick="ReviewButton_Click" />
                                        </div>
                                    </asp:Panel>
                                </div>

                            </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>
