<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" enableeventvalidation="false" inherits="HL_Admin_Admin_ShopUploadFile, WebApp_deploy" title="上传文件管理" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <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="5" 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" ReadOnly="true" /></td>
            <td>
                <asp:Button ID="Button1" runat="server" Text="快速查找" OnClick="Button1_Click" /></td>
        </tr>
    </table>
    <br />
    <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>
</asp:Content>
