<%@ Page language="c#" Codebehind="Upload.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.Upload" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>上传</title>
	    <!--#include file="../inc/head2.inc"-->
	</head>
	<body>
		<form id="Form1" method="post" runat="server">
			<input type="file" id="fileUpload" name="File1" runat="server" />
			<asp:Button id="btnUpload" OnClick="btnUpload_Click" runat="server" Text="上传" CssClass="inputbtn"></asp:Button>
			<br />
			<table cellSpacing="0" cellPadding="0" class="llist" border="1" width="80%">
                <tr>
	                <th class="c2">名称</th>
	                <th class="c3">图片</th>
	                <th class="c14">删除</th>	                
	            </tr>
			<asp:Repeater runat="server" ID="rptImages">
			    <ItemTemplate>
			    <tr>
			        <td><%# DataBinder.Eval(Container.DataItem,"Name") %><br /><%# DataBinder.Eval(Container.DataItem,"Width") %>*<%# DataBinder.Eval(Container.DataItem,"Height") %>px</td>
			        <td><img src='/<%=ShopFolder %>upload/activity/<%=Request.QueryString["tempFolder"] %>/<%# DataBinder.Eval(Container.DataItem,"Name") %>' alt='<%# DataBinder.Eval(Container.DataItem,"Name") %>' <%# int.Parse(DataBinder.Eval(Container.DataItem,"Width").ToString()) > 500 ? "width='500'" : "" %>/></td>
			        <td><a href='Upload.aspx?Action=Delete&tempFolder=<%=Request.QueryString["tempFolder"] %>&pic=<%# Server.UrlEncode((string)DataBinder.Eval(Container.DataItem,"Name")) %>'>删除</a></td>
			    </tr>
			    </ItemTemplate>
			</asp:Repeater>
			</table>
		</form>
	</body>
</html>
