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

<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="UploadOrganizationPhotoUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
                <!-- ContentPlaceHolder Box Starts -->
                <div id="Td1" class="dashBoardLeftCont" valign="top" runat="server">
                    <div class="himssuHeader3WireBox">
                        <table width=" 0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="260"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <div class="himssuHeader1WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <div class="leftdiv">
                            </div>
                            <div class="himsBoxTitle">
                                <div class="headerText" id="codeHeader">
                                    <header>
                                        <i class="fas fa-image"></i>
                                        Upload Organization Photo
                                    </header>
                                </div>
                            </div>
                        </div>
                        <div class="himsBoxContent card-body">
                            <div class="contentHolder">
                                <div class="col-md-12 pTop5">
                                    <div class="paddingright15 pLeft10  col-md-3">
                                        <asp:Button ID="LoginBGButton" runat="Server" SkinID="0"
                                            OnClick="LoginBGButton_Click" CssClass="btn btn-assign fas" Text="&#xf302; Login BG" />
                                    </div>
                                    <div class="help-tableformat  col-md-9">

                                        <div class="help alert mt0 alert-info">
                                            <i class="material-icons">info</i> | For better result,please upload image in 710 * 586 resolution
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-12 pTop5">
                                    <div class="paddingright15 pLeft10  col-md-3">
                                        <asp:Button ID="AddPhotoButton" Text="&#xf302; Add Logo" runat="Server" OnClick="AddPhotoButton_Click"
                                            SkinID="0" CssClass="btn btn-assign fas" />
                                    </div>
                                    <div class="help-tableformat  col-md-9">

                                        <div class="help alert mt0 alert-info">
                                            <i class="material-icons">info</i> | For better result,please upload image in 160 * 160 pixel resolution
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-12 pTop5">
                                    <div class="paddingright15 pLeft10  col-md-3">
                                        <asp:Button ID="AddPrincipalSignatureButton" runat="Server" OnClick="AddPrincipalSignatureButton_Click"
                                            SkinID="0" CssClass="btn btn-assign fas" Text="&#xf302; Add Pr. Sign" />
                                    </div>
                                    <div class="help-tableformat  col-md-9">

                                        <div class="help alert mt0 alert-info">
                                            <i class="material-icons">info</i> | For better result,please upload image in 310 * 140 resolution
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-12 alignCenter pTop15 pb5">
                                    <asp:Label ID="Label2" runat="server" Text="" Style="padding-left: 10px; font-size: medium;"></asp:Label>
                                    <asp:Button ID="RefreshButton" runat="server" OnClick="RefreshButton_Click" SkinID="0"
                                        CssClass="btn btn-refresh fas" Text="&#xf2f9; Refresh" />
                                    <asp:Button ID="UploadButton" runat="server" OnClick="UploadButton_Click" SkinID="0"
                                        CssClass="btn btn-upload fas" Text="&#xf093; Upload" />
                                </div>

                                <div id="UploadOrganizationPhotoGridDiv" runat="server" visible="false">
                                    <div class="himssuHeader6WireBox col-md-12">
                                        <div class="himsBoxHeader" id="OrganizationDiv" visible="false" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                </div>
                                            </div>
                                            <div class="himsBoxContent pTop5">
                                                <asp:UpdatePanel ID="MenuPlanDetailUpdatePanel" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>
                                                        <div id="Div5" runat="server">
                                                            <div id="Div4" runat="server" class="table-responsive">
                                                                <asp:GridView ID="UploadOrganizationPhotoGridView" runat="server" AutoGenerateColumns="False"
                                                                    SkinID="" ShowHeader="True" PagerSettings-Visible="false" DataKeyNames="FullFileName,FilePath"
                                                                    CssClass="table table-striped table-bordered table-hover" EmptyDataText="No records found"
                                                                    OnRowDataBound="UploadOrganizationPhotoGridView_RowDataBound">
                                                                    <Columns>
                                                                        <asp:BoundField DataField="FileName" HeaderText="File Name" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
                                                                        <asp:BoundField DataField="DisplayFor" HeaderText="Display For" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="10%" />
                                                                        <asp:TemplateField HeaderText="Fullfile" ItemStyle-Width="20%" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="false" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="lblFullFileName" runat="server" Text='<%#Eval("FullFileName") %>' />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Photo" ItemStyle-Width="40%" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Image ID="OrganizationPhoto" runat="server" ImageUrl='<%# Eval("FilePath")%>' Height="140px" Width="70%" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Size" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="SizeLabel" runat="server" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="Delete" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="true">
                                                                            <ItemTemplate>
                                                                                <asp:ImageButton ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_OnClick"
                                                                                    ToolTip="Delete" ImageUrl="~/Images/Del.png" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="spacer">
                    <img src="../../../Images/spacer.gif" />
                </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
