<%@ page title="" language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Communication_Poll, App_Web_sqnaqmtm" 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="OTQueueListingUpdatePanel" 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="157"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <div class="himssuHeader1WireBox card card-box">
                                    <div class="himsBoxHeader card-head" id="Div5" runat="server" visible="True">
                                       
                                        <div class="himsBoxTitle">
                                            <div class="headerText fLeft">
                                                <header>
                                                <i class="fas fa-chart-bar"></i>
                                                <asp:Label ID="Label4" Text="Poll" 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="Panel3" runat="Server">
                                            <div class="contentHolder">
                                                <div class="tableContainer">
                                                    <cc1:TabContainer Width="100%" ID="PollTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox"
                                                        meta:resourcekey="PollTabContainerResource1" ActiveTabIndex="0">
                                                        <cc1:TabPanel Width="40%" ID="PollDetails" runat="server" HeaderText="Create Poll">
                                                            <HeaderTemplate>
                                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                                     <li class="fancyTab"><a><i class="fas fa-comment"></i>&nbsp;Create Poll </a></li>
                                                                 </ul>
                                                            </HeaderTemplate>
                                                            <ContentTemplate>
                                                                <div class="contentHolder">
                                                                    <div class="himssuHeader6WireBox">
                                                                        <div class="himsBoxHeader card-head inner" id="Div4" runat="server">
                                                                            
                                                                            <div class="himsBoxTitle">
                                                                               <div class="gridHeaderText ">
                                                                                    <header>
                                                                                    <asp:Label ID="Label3" Text="Describe Poll Question" runat="server" />
                                                                                    </header>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                        <br />
                                                                        <asp:Panel ID="DetailPanel" runat="server">
                                                                            <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="DetailHiddenField" runat="server" />
                                                                                </div>
                                                                            </div>
                                                                          <%--Change for mantis : 31108--%>
                                                                            <div class="outerBox10 pTop5 col-md-6" style="margin-bottom: 10px">
                                                                                <div class="controlLabelWidth">
                                                                                    <asp:Label ID="RemarkLabel" runat="server" Text="Description"></asp:Label>
                                                                                </div>
                                                                                <div class="fLeft pRight5">
                                                                                    <asp:TextBox ID="RemarkTextBox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                                        runat="server" MaxLength="500" SkinID="MultilineTextbox" TextMode="MultiLine"
                                                                                        ></asp:TextBox>
                                                                                </div>
                                                                            </div>
                                                                          
                                                                        </asp:Panel>
                                                                       
                                                                        <div class="himssuHeader6WireBox col-md-12">
                                                                            <div class="himsBoxHeader card-head inner" id="Div2" runat="server">
                                                                               
                                                                                <div class="himsBoxTitle">
                                                                                    <div class="gridHeaderText ">
                                                                                    <header>
                                                                                        <asp:Label ID="Label2" Text="Define Answers Choices" runat="server" />
                                                                                    </header>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <div class="himsBoxContent card-body table-responsive">
                                                                                <asp:Panel ID="Panel1" runat="server">
                                                                                    <asp:GridView ID="PollAnswerGridView" runat="server" AutoGenerateColumns="False" CssClass="table table-striped table-bordered table-hover" DataKeyNames="PollAnswerId,Index">
                                                                                        <Columns>
                                                                                            <asp:TemplateField>
                                                                                                <ItemTemplate>
                                                                                                    <asp:Label ID="AnswerLabel" runat="server" Text="Answer" Font-Bold="true"></asp:Label>
                                                                                                </ItemTemplate>
                                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                                <ItemStyle Width="10%" Wrap="True" />
                                                                                            </asp:TemplateField>
                                                                                            <asp:TemplateField>
                                                                                                <ItemTemplate>
                                                                                                    <asp:TextBox ID="PollAnswerTextBox" runat="server" MaxLength="200" Text='<%# Bind("PollAnswer") %>'
                                                                                                        Width="400px" SkinID="CustomWidthTextBox"></asp:TextBox>
                                                                                                </ItemTemplate>
                                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                                <ItemStyle Width="83%" Wrap="True" />
                                                                                            </asp:TemplateField>
                                                                                            <asp:TemplateField HeaderText="Delete">
                                                                                                <ItemTemplate>
                                                                                                    <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_OnClick"
                                                                                                        ImageUrl="~/images/icons/icon_delete.gif" ToolTip="Delete" />
                                                                                                </ItemTemplate>
                                                                                                <HeaderStyle HorizontalAlign="Left" />
                                                                                                <ItemStyle HorizontalAlign="Center" Width="7%" />
                                                                                            </asp:TemplateField>
                                                                                        </Columns>
                                                                                        <PagerSettings Visible="False" />
                                                                                    </asp:GridView>
                                                                                    
                                                                                    <div class="outerBox pTop5 col-md-3">
                                                                                        <div class="controlLabelWidth">
                                                                                            <asp:LinkButton runat="server" ID="AddAnswerLinkButton" Text=" Add another" Font-Size="Small"
                                                                                                ForeColor="Green" OnClick="AddAnswerLinkButton_OnClick"></asp:LinkButton>
                                                                                        </div>
                                                                                    </div>
                                                                                    <div class="outerBox pTop5 col-md-3">
                                                                                        <div class="controlLabelWidth">
                                                                                            <asp:CheckBox ID="IsOwnAnswerCheckBox" runat="server" Text="Allow other answer"/>
                                                                                        </div>
                                                                                    </div>
                                                                                    <div class="outerBox pTop5 col-md-3">
                                                                                        <div class="controlLabelWidth">
                                                                                            <asp:CheckBox ID="IsOpenCheckBox" runat="server" Text="Open for polling" />
                                                                                        </div>
                                                                                    </div>
                                                                                   
                                                                                    <div class="outerBox pTop5 col-md-3">
                                                                                        <div class="fLeft">
                                                                                            <asp:CheckBox ID="StopAutoAlertCheckBox" runat="server" Text="Stop Auto Alert"/>
                                                                                        </div>
                                                                                    </div>
                                                                                   </asp:Panel>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                              
                                                            </ContentTemplate>
                                                        </cc1:TabPanel>
                                                        <cc1:TabPanel Width="40%" ID="PollMember" ClientIDMode="Static" runat="server" HeaderText="Poll Member">
                                                            <HeaderTemplate>
                                                                
                                                                <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                                      <li class="fancyTab"><a><i class="fas fa-comment"></i>&nbsp;Poll Member </a></li>
                                                                </ul>
                                                            </HeaderTemplate>
                                                            <ContentTemplate>
                                                                <div class="contentHolder">
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="OrganizationLabel" Text="Organization" runat="server"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList ID="OrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                                onmouseenter="showHideTooltip()" AutoPostBack="true" SkinID="CustomWidthDropDownList"
                                                                                CssClass="form-control" OnSelectedIndexChanged="OrganizationDropDownList_OnSelectedIndexChanged">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                    <table style="width: 100%">
                                                                        <tr>
                                                                            <td style="width: 50%; vertical-align: top">
                                                                                <div id="Div1" class="himssuHeader6WireBox col-md-12" runat="server" visible="true" style="width: 99%; height: 100%">
                                                                                    <div class="himsBoxHeader card-head inner" id="Div8" runat="server" visible="True">
                                                                                        
                                                                                        <div class="himsBoxTitle">
                                                                                            <div class="gridHeaderText fLeft">
                                                                                                <header>
                                                                                                <asp:Label ID="Label6" Text="Select Class To Assign Poll (Only for Student)" runat="server" />
                                                                                                </header>
                                                                                            </div>
                                                                                        </div>
                                                                                    </div>
                                                                                    <div class="himsBoxContent card-body table-responsive">
                                                                                        <asp:GridView ID="ClassGridView" runat="server" AutoGenerateColumns="False" 
                                                                                            CssClass="table table-striped table-bordered table-hover" EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true" DataKeyNames="SourceId">
                                                                                            <Columns>
                                                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Center">
                                                                                                    <HeaderTemplate>
                                                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                                                        <asp:CheckBox ID="HeaderIsObsoleteCheckBox" onclick="CheckAll(this);" runat="server" />
                                                                                                            <span></span>
                                                                                                        </label>
                                                                                                    </HeaderTemplate>
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                    <ItemTemplate>
                                                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                                                        <asp:CheckBox ID="IsObsoleteCheckBox" runat="server" Checked='<%# Eval("IsObsolete") %>' />
                                                                                                            <span></span>
                                                                                                        </label>
                                                                                                    </ItemTemplate>
                                                                                                </asp:TemplateField>
                                                                                                <asp:BoundField DataField="ClassDept" HeaderText="Class" ItemStyle-Width="48%"></asp:BoundField>
                                                                                                <asp:BoundField DataField="Organization" HeaderText="Organization" ItemStyle-Width="45%"
                                                                                                    HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                            </Columns>
                                                                                            <PagerSettings Visible="False" />
                                                                                        </asp:GridView>
                                                                                    </div>
                                                                                </div>
                                                                            </td>
                                                                            <td style="width: 50%; vertical-align: top">
                                                                                <div id="Div6" class="himssuHeader6WireBox col-md-12" runat="server" visible="true" style="width: 99%; height: 100%">
                                                                                    <div class="himsBoxHeader card-head inner" id="Div7" runat="server" visible="True">
                                                                                       
                                                                                        <div class="himsBoxTitle">
                                                                                            <div class="gridHeaderText fLeft">
                                                                                                <header>
                                                                                                <asp:Label ID="Label5" Text="Select Department To Assign Poll (Only for Employee)" runat="server" />
                                                                                                </header>
                                                                                            </div>
                                                                                        </div>
                                                                                    </div>
                                                                                    <div class="himsBoxContent card-body table-responsive">
                                                                                        <asp:GridView ID="DepartmentGridView" runat="server" AutoGenerateColumns="False"
                                                                                            EmptyDataText="No Records Found !!" AllowPaging="false" ShowHeader="true"
                                                                                            CssClass="table table-striped table-bordered table-hover" DataKeyNames="SourceId">
                                                                                            <Columns>
                                                                                                <asp:TemplateField HeaderStyle-HorizontalAlign="Center">
                                                                                                    <HeaderTemplate>
                                                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                                                        <asp:CheckBox ID="HeaderIsObsoleteCheckBox" onclick="CheckAll(this);" runat="server" />
                                                                                                            <span></span>
                                                                                                        </label>
                                                                                                    </HeaderTemplate>
                                                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                                                    <ItemTemplate>
                                                                                                        <label class="rt-chkbox rt-chkbox-outline">
                                                                                                        <asp:CheckBox ID="IsObsoleteCheckBox" runat="server" Checked='<%# Eval("IsObsolete") %>' />
                                                                                                            <span></span>
                                                                                                        </label>
                                                                                                    </ItemTemplate>
                                                                                                </asp:TemplateField>
                                                                                                <asp:BoundField DataField="ClassDept" HeaderText="Department" ItemStyle-Width="48%"
                                                                                                    HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                                <asp:BoundField DataField="Organization" HeaderText="Organization" ItemStyle-Width="45%"
                                                                                                    HeaderStyle-HorizontalAlign="Left"></asp:BoundField>
                                                                                            </Columns>
                                                                                            <PagerSettings Visible="False" />
                                                                                        </asp:GridView>
                                                                                    </div>
                                                                                </div>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </ContentTemplate>
                                                        </cc1:TabPanel>
                                                    </cc1:TabContainer>
                                                </div>
                                                
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                            </div>
                     
                </div>
            </div>
           
        </ContentTemplate>
    </asp:UpdatePanel>
  <%--  <script data-main="../../JavaScript/rjs/encrypt/poll-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/poll")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>