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

<%@ OutputCache Duration="1" VaryByParam="none" NoStore="true" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="StudentPhotoUploadUpdatePanel" runat="server">
        <ContentTemplate>
            <table style="height: 100%; margin-left: 45%; margin-top: 10%" class="whitebox">
                <tr>
                    <td>
                        <asp:FileUpload ID="FileUpload1" runat="server" /></td>
                    <td>
                        <%--<a href="javascript:$('#<%=FileUpload1.ClientID%>').fileUploadStart()">Start Upload</a>&nbsp; 
           |&nbsp;<a href="javascript:$('#<%=FileUpload1.ClientID%>').fileUploadClearQueue()">Clear</a>--%>
                    </td>

                </tr>
            </table>
            <%--<div id="Div1" class="himssuHeader1WireBox" runat="server" style="width: 100%; margin-right: 5px;">
                <div id="StudentPhotoUploadDetailDiv" runat="server">
                    <div class="spacer">
                        <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" 
                            meta:resourcekey="Image3Resource1" />
                    </div>
                    <div class="himsBoxHeader" id="StudentPhotoUploadDiv" runat="server">
                        <div class="leftdiv">
                        </div>
                        <div class="himsBoxTitle" style="width: 99%">
                            <div class="headerText">
                                <div class="fLeft">
                                    <asp:Label ID="GridViewLabel" Text="List" runat="server" Font-Bold="True" 
                                        meta:resourcekey="GridViewLabelResource1" />
                                </div>
                            </div>
                            <div align="right" class="fRight" style="margin-top: -3px;">
                                <uc1:GridViewPager ID="UploadFileGridView_GridViewPager" runat="server" OnFirstRecordClick="UploadFileGridView_GridViewPager_FirstRecordClick"
                                    OnLastRecordClick="UploadFileGridView_GridViewPager_LastRecordClick" OnNextRecordClick="UploadFileGridView_GridViewPager_NextRecordClick"
                                    OnPrevRecordClick="UploadFileGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="UploadFileGridView_GridViewPager_TextBoxValueChange"
                                    ParentGridView="TaxRateGridView" />
                            </div>
                        </div>
                    </div>
                    <div class="himsBoxContent">
                        <div class="himsBoxContentMsg" id="GridMessageDiv" runat="server" 
                            visible="False">
                        </div>
                        <asp:GridView ID="UploadFileGridView" runat="server" Width="100%" AutoGenerateColumns="False"
                            OnRowDataBound="UploadFileGridView_RowDataBound" OnPageIndexChanging="UploadFileGridView_PageIndexChanging"
                            AllowPaging="True" PageSize="20" ShowHeader="false"
                            OnDataBinding="UploadFileGridView_DataBinding" EmptyDataText="No Records Found" 
                            meta:resourcekey="TaxRateGridViewResource1">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:Label ID="FileNameLabel" runat="server" Text='<% #Eval("FileName") %>'></asp:Label>
                                    </ItemTemplate>
                                     <ItemStyle Width="300px" />
                                </asp:TemplateField> 
                               
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:Image ID="EmployeeImageId" Visible="true" runat="server" Height="150px" Width="150px" ImageUrl='<%#Eval("FilePath") %>'/>
                                    </ItemTemplate>
                                     <ItemStyle Width="150px" />
                                </asp:TemplateField> 
                                
                                <asp:TemplateField>
                                    <ItemTemplate>
                                      <asp:HyperLink ID="DownloadLinkButton" runat="server" NavigateUrl='<%#Eval("FilePath") %>'>Download</asp:HyperLink>
                                    </ItemTemplate>
                                     <ItemStyle Width="30px" />
                                </asp:TemplateField>
                                  
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:ImageButton SkinID="DeleteImage" ID="DeleteImageButton" runat="server" OnClick="DeleteImageButton_Click"
                                                    ToolTip="Delete" meta:resourcekey="DeleteImageButtonResource1" />
                                    </ItemTemplate>
                                    <ItemStyle Width="30px" />
                                </asp:TemplateField> 
                                <asp:TemplateField Visible="false">
                                    <ItemTemplate>
                                        <asp:Label ID="FileIdLabel" runat="server" Text='<% #Eval("Id") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField> 
                            </Columns>
                            <PagerSettings Visible="False" />
                        </asp:GridView>
                    </div>
                </div>
            </div>--%>
        </ContentTemplate>
    </asp:UpdatePanel>
 <%--   <script data-main="../../../JavaScript/rjs/encrypt/student-photo-upload-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/student-photo-upload")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>