<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" enableeventvalidation="false" inherits="HL_Admin_Admin_ShopUploadFile, HoWaveVGO" title="上传文件管理" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript" src="js/getdate.js"></script>
 <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"/>
     <table class="adminheading">
       <tr>
          <th valign="middle" class="cpane" >上传文件管理</th>
           <td align="right"></td>
             <td class="rtdw"></td>
        </tr>
</table>

 <table class="nick"><tr><td colspan="4" class="tit">快速查找</td></tr>
    <tr><td class="ltd">文件类型：</td><td class="rtd" style="width:35%"><asp:DropDownList ID="DropUploadFileType" runat="server" AutoPostBack="True" Width="150px" OnSelectedIndexChanged="DropUploadFileType_SelectedIndexChanged">
                    <asp:ListItem Value="0">身份验证图片</asp:ListItem> 
                    <asp:ListItem Value="1">店铺商品图片</asp:ListItem>
                    <asp:ListItem Value="2">店铺形象照</asp:ListItem>
                </asp:DropDownList></td>
        <td class="ltd">上传年月：</td><td class="rtd" style="width:35%"><asp:TextBox ID="UpTime" runat="server" /></td>
     </tr>
     </table><br /> 
<%--    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
              <ContentTemplate> --%>
    <asp:GridView id="GridView1" runat="server" OnRowDataBound="GridView1_RowDataBound" PageSize="10" AllowPaging="True" AutoGenerateColumns="False" CssClass="adminlist" OnPageIndexChanging="GridView1_PageIndexChanging" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnDataBound="GridView1_DataBound">
           <Columns>
              <asp:TemplateField HeaderText="选择" >
                  <ItemTemplate>
                     <asp:CheckBox ID="sele" runat="server" ToolTip='<%# Eval("imageurl") %>' />
                  </ItemTemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="图片">
                 <ItemTemplate> 
                      <asp:Image ImageUrl='<%# "../"+Eval("imageurl") %>'  Width="120px" Height="100px" ID="IMG1" runat="server" />
                 </ItemTemplate>
              </asp:TemplateField> 
              <asp:HyperLinkField HeaderText="文件名" DataTextField="Name"  DataNavigateUrlFormatString="Admin_UserDetail.aspx?UserID={0}" />     
             <asp:TemplateField HeaderText="查看">
                 <ItemTemplate>
                   <asp:HyperLink runat="server" ID="HLView" target="_blank"  NavigateUrl='<%#"Admin_DeleteUploadFile.aspx?FileImageUrl="+"../"+Eval("imageurl") %>' Text="查看原图"/> 
                </ItemTemplate>
               </asp:TemplateField>
               <asp:TemplateField HeaderText="删除">
                 <ItemTemplate>
                   <asp:LinkButton runat="server" ID="cl" CommandName="Select" OnClientClick="if(confirm('确定删除吗？'))return true; return false;" Text="删除"/> 
                </ItemTemplate>
               </asp:TemplateField>
         </Columns>
         <EmptyDataTemplate>
                  <tr>
                       <th>编号</th>
                       <th>图片</th>
                       <th>用户名</th>
                       <th>查看</th>
                       <th>操作</th>                     
                  </tr>
                  <tr><td colspan="5">暂无信息！</td></tr> 
         </EmptyDataTemplate> 
    </asp:GridView>  
   <%-- </ContentTemplate>
         <Triggers>
            <asp:AsyncPostBackTrigger ControlID="DropUploadFileType" EventName="SelectedIndexChanged"></asp:AsyncPostBackTrigger>
            <asp:AsyncPostBackTrigger ControlID="TxtNickName" EventName="TextChanged"></asp:AsyncPostBackTrigger>
            <asp:AsyncPostBackTrigger ControlID="DropIdentity" EventName="SelectedIndexChanged"></asp:AsyncPostBackTrigger>
            <asp:AsyncPostBackTrigger ControlID="TxtUploadFile" EventName="TextChanged"></asp:AsyncPostBackTrigger>
        </Triggers>
 </asp:UpdatePanel>--%>
 
</asp:Content>

