<%@ control language="VB" autoeventwireup="false" inherits="Template_CC_Selectable_Selected_LBX, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="CC" %>

<asp:Panel ID="Pnl_Members" runat="server">
    <asp:TextBox ID="HF_SyncMembers" runat="server" Text="1" CssClass="hide mp-hide" />
    <asp:TextBox ID="HF_SelectedMembers" runat="server" Text="" CssClass="hide mp-hide" />

    <asp:TextBox ID="HF_PreSelectedMembers" runat="server" Text="" CssClass="hide mp-hide" />

    <asp:Button ID="btn_dummyPostBack" runat="server" Text=" " CssClass="btn-dummy mp-hide hide" />

    <div class="row">
        <div class="col-xs-6">
            <div class="form-group">
                <div class="form-line">
                    <asp:TextBox ID="TxBx_MembersSearchMembers" runat="server" CssClass="TypeToSearch"
                        Text='<%# Resources.Content.TypeAndPressEnterToSearch%>'
                        onFocus="ClearDefault(this)" Width="100%"
                        onBlur='<%# "SetDefaultValue(this,&#39;" & Resources.Content.TypeAndPressEnterToSearch & "&#39;)"%>'
                        onKeyUp='<%# "SearchInMultipleSelect(this,event,&#39;" & LBX_SelectableMembers.ClientID & "&#39;,&#39;" & LBX_SelectedMembers.ClientID & "&#39;)"%>'>
                    </asp:TextBox>
                </div>
            </div>
        </div>
        <div class="col-xs-6">

            <div class="form-group">
                <asp:LinkButton ID="Lbtn_SelectFromFile" runat="server" Text="<% $Resources:Content, StrSelectFromFile %>" CssClass="open-selectable-file-modal" data-target-modal='<%= MPE_SelectFile.ClientID %>' data-target-file='<%= FU.ClientID %>' OnClientClick="selectableFileModalOpen(event)"></asp:LinkButton>
                <asp:Button ID="Btn_Dummy" CssClass="hide btn-dummy" runat="server" />
                <EM:ModalPopupExtender runat="server" ID="MPE_SelectFile" BackgroundCssClass="modalBackground"
                    DropShadow="false" PopupControlID="Pnl_SelectFile" TargetControlID="Lbtn_SelectFromFile">
                </EM:ModalPopupExtender>
                <asp:Panel ID="Pnl_SelectFile" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
                    <div class="card">
                        <div class="header container-fluid">
                            <h3 class="pull-left">
                                <asp:Literal ID="Ltrl_SelectFileTitle" runat="server" Text='<%$ Resources:Content, StrSelectFromFile %>'></asp:Literal>
                            </h3>
                            <span>
                                <button type="button" class="close close-modal close-selectable-file-modal" data-target-modal='<%= MPE_SelectFile.ClientID %>' data-target-file='<%= FU.ClientID %>'>&times;</button>
                            </span>
                        </div>
                        <div class="body">
                            
                            <div class="row">
                                <div class="col-sm-5 col-xs-12 row-label">
                                    <label>
                                        <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,SelectDataFormat %>"></asp:Literal>:</label>
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <div class="form-group">
                                       <asp:DropDownList ID="Ddl_FileDataFormat" runat="server" onChange="multiSelectFileFormatChange(event)" AutoPostBack="false" CausesValidation="false">
                                           <asp:ListItem Text="<%$ Resources:Content,LineSeparatedVals %>" Value="line" Selected="true"></asp:ListItem>
                                           <asp:ListItem Text="<%$ Resources:Content, CommaSepratedVals %>" Value="comma"></asp:ListItem>
                                           <asp:ListItem Text="<%$ Resources:Content, SemicolonSepratedVals %>" Value="semicolon"></asp:ListItem>
                                       </asp:DropDownList>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-5 col-xs-12 row-label">
                                    <label>
                                        <asp:Literal ID="Literal3" runat="server" Text="<%$Resources:Content,StrSelectMatchingCondition %>"></asp:Literal>:</label>
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <div class="form-group">
                                        <asp:RadioButtonList ID="Rbl_MatchingCondition" runat="server" CssClass="multiselect-file-search-condition" RepeatColumns="3">
                                            <asp:ListItem Text="<%$ Resources:Content, SMI693 %>" Value="equals" Selected="True" ></asp:ListItem>
                                            <asp:ListItem Text="<%$ Resources:Content, SMI694 %>" Value="notequals" ></asp:ListItem>
                                            <asp:ListItem Text="<%$ Resources:Content,GN0000544 %>" Value="contains" ></asp:ListItem>
                                            <asp:ListItem Text="<%$ Resources:Content,SMI697 %>" Value="notcontains" ></asp:ListItem>
                                            <asp:ListItem Text="<%$ Resources:Content, SMI695 %>" Value="startswith" ></asp:ListItem>
                                            <asp:ListItem Text="<%$ Resources:Content, SMI696 %>" Value="endswith" ></asp:ListItem>
                                        </asp:RadioButtonList>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-5 col-xs-12 row-label">
                                    <%--<label>
                                        <asp:Literal ID="Ltrl_UploadFile" runat="server" Text="<%$Resources:Content,UploadFile %>"></asp:Literal>:</label>--%>
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <div class="form-group">
                                        <%--<div class="fileupload fileupload-new" data-provides="fileupload">
                                            <span class="btn btn-primary btn-file"><span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                                <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>--%>
                                        <span class="btn btn-primary btn-file">
                                            <span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                            <asp:FileUpload ID="FU" runat="server" onchange="searchAndSelectFromFile(this,event)" />
                                        </span>
                                        <%-- </span>
                                            <span class="fileupload-preview"></span>
                                            <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                                        </div> --%>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </asp:Panel>
            </div>
        </div>
    </div>

    <div class="row" id="Tr_ShowOrdering" runat="server" visible="false">
        <div class="col-sm-5 col-xs-12">
        </div>
        <div class="col-sm-2 col-xs-12">
        </div>
        <div class="col-sm-5 col-xs-12">
            <asp:LinkButton ID="Btn_MoveUpSelected" runat="server" CssClass="LinkButtonUp" ToolTip="Move Up" />
            <asp:LinkButton ID="Btn_MoveTopSelected" runat="server" CssClass="LinkButtonTop" ToolTip="Move Top" />
            <asp:LinkButton ID="Btn_MoveDownSelected" runat="server" CssClass="LinkButtonDown" ToolTip="Move Down" />
            <asp:LinkButton ID="Btn_MoveBottomSelected" runat="server" CssClass="LinkButtonBottom" ToolTip="Move Bottom" />
        </div>
    </div>

    <div class="row">
        <div class="col-sm-5 col-xs-12">
            <span class="row-label">
                <asp:Literal ID="Literal1" runat="server" EnableViewState="false" Text="<%$ Resources:Content, GN012%>"></asp:Literal>
            </span>
            <asp:ListBox SelectionMode="Multiple" CssClass="ms" ID="LBX_SelectableMembers" runat="server" Width="98%"
                Height="125px"></asp:ListBox>
        </div>
        <div class="col-sm-2 col-xs-12 align-center SelectArrows">
            <button class="btn btn-primary waves-effect" id="Btn_AllSelectable_SelectedMembers" runat="server">
                <i class="material-icons btn-icons-position">last_page</i>
            </button>

            <button class="btn btn-primary waves-effect" id="Btn_AllSelected_DeSelectedMembers" runat="server">
                <i class="material-icons btn-icons-position">first_page</i>
            </button>
            <div class="clearfix hidden-xs"></div>
            <button class="btn btn-primary waves-effect" id="Btn_MultipleSelectable_SelectedMembers" runat="server">
                <i class="material-icons btn-icons-position">chevron_right</i>
            </button>

            <button class="btn btn-primary waves-effect" id="Btn_MultipleSelected_DeSelectedMembers" runat="server">
                <i class="material-icons btn-icons-position">chevron_left</i>
            </button>

        </div>
        <div class="col-sm-5 col-xs-12">
            <div class="form-group">
                <span class="row-label">
                    <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text="<%$ Resources:Content, GN013%>"></asp:Literal>
                    <asp:Literal ID="ltlIsSlectedRequired" runat="server" Text="*" Visible="false"></asp:Literal>
                </span>
                <asp:ListBox SelectionMode="Multiple" CssClass="ms" ID="LBX_SelectedMembers" runat="server" Width="98%"
                    Height="125px"></asp:ListBox>
                <asp:TextBox ID="HTxBx_SelectedMembers" runat="server" CssClass="mp-hide"></asp:TextBox>
            </div>
            <asp:RequiredFieldValidator Enabled="false"
                SetFocusOnError="true" runat="server" ID="RFV" ControlToValidate="HTxBx_SelectedMembers"
                Display="None" ErrorMessage="">
            </asp:RequiredFieldValidator>
        </div>
    </div>

</asp:Panel>
<span id="LoadingMembers" style="display: none;" class="O365DetailLoading" runat="server"></span>

<%--<CC:UpdatePanelInlineScriptControl ID="UpdatePanelInlineScriptControl1" runat="server">--%>
    
<%--</CC:UpdatePanelInlineScriptControl>--%>

