<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_ManageUploadFile, mallz" title="广告上传文件管理" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <table class="nick" style="display:none;">
        <tr>
            <td colspan="4" class="tit">广告上传文件管理</td>
        </tr>
        <tr>
            <td class="ltd">
                文件目录路径：
            </td>
            <td class="rtd" style="width: 35%;">
                <asp:TextBox ID="TxtDir" runat="server" ReadOnly="true" Width="300px"></asp:TextBox>
            </td>
           <td class="ltd">
                最后访问日期：
            </td>
            <td class="rtd" style="width: 35%;">
                <asp:TextBox ID="TxtLastAccess" runat="server"  Width="91px"/>
            </td>
        </tr>
    </table>


    <asp:GridView  class="adminlist"  ID="GridView1" runat="server" AutoGenerateColumns="False" AllowPaging="True" OnRowDataBound="GridView1_RowDataBound" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" PageSize="15" >
        <Columns>
            <asp:TemplateField HeaderText="选择">
                <ItemTemplate>
                    <input id="ids" type="checkbox" name="ids" value="<%# Eval("Name") %>"/>
                </ItemTemplate>
                 <HeaderTemplate>
                      <input id="chkAll" onclick="SelectAllCheckboxes(this,'ids');" type="checkbox" />
                 </HeaderTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Name" HeaderText="文件名" />
            <asp:BoundField DataField="Size" HeaderText="文件大小" />
            <asp:BoundField DataField="Type" HeaderText="文件类型" />
            <asp:TemplateField HeaderText="缩略图">
                <ItemTemplate>
                   <a href="<%# Eval("FileUrl") %>" target="_blank" ><asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("FileUrl") %>' Height="50px" Width="50px" /></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="删除">
               <ItemTemplate>
                   <asp:LinkButton ID="cl" runat="server" OnClientClick="if(confirm('确定删除吗？'))return true; return false;" Text="删除" CommandName="Select"  />
               </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
                    <tr>
                      <th>全选</th><th>文件名</th><th>文件大小</th><th>最后访问时间</th><th>文件类型</th><th>是否垃圾文件</th><th>删除</th>
		            </tr>
		            <tr>
		              <td colspan="7">暂无文件！</td>
		            </tr>
        </EmptyDataTemplate>
    </asp:GridView> 

   <div class="div_btm">
      <asp:Button ID="Button3" runat="server" Visible="false" Text="批量删除" OnClick="Button3_Click" CausesValidation="False" />
   </div>

</asp:Content>

