<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpdMulti.aspx.cs" Inherits="FlashV1.Controls.UpdMulti" %>

<!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 runat="server">
 <title>批量上传图片</title>
<link href="SwfUpd/css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="SwfUpd/swfupload.js"></script>
<script type="text/javascript" src="SwfUpd/js/handlers.js"></script>
	
<script type="text/javascript">	
var swfu;
window.onload = function () {
	swfu = new SWFUpload({
		// Backend Settings
	upload_url: "Upd4235.aspx",
        post_params : {
            "ASPSESSID" : "",
            "k":"<%=Request.QueryString["k"] %>"      
        },
		// File Upload Settings
		file_size_limit : "2 MB",
		file_types : "*.jpg;*.gif;*.bmp;*.png",
		file_types_description : "JPG Images",
		file_upload_limit : 0,    // Zero means unlimited

		// Event Handler Settings - these functions as defined in Handlers.js
		//  The handlers are not part of SWFUpload but are part of my website and control how
		//  my website reacts to the SWFUpload events.		

		file_queue_error_handler : fileQueueError,
		file_dialog_complete_handler : fileDialogComplete,
		upload_progress_handler : uploadProgress,
		upload_error_handler : uploadError,
		upload_success_handler : uploadSuccess,
		upload_complete_handler : uploadComplete,

		// Button settings
		button_image_url: "SwfUpd/images/XPButtonNoText_160x22.png",
		button_placeholder_id : "spanButtonPlaceholder",
		button_width: 160,
		button_height: 22,
		button_text : '<span class="button">选择图片<span class="buttonSmall">（支持多选）</span></span>',
		button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 14pt; } .buttonSmall { font-size: 10pt; }',
		button_text_top_padding: 1,
		button_text_left_padding: 5,

		// Flash Settings
		flash_url: "SwfUpd/swfupload.swf", // Relative to this file

		custom_settings : {
			upload_target : "divFileProgressContainer"
		},

		// Debug Settings
		debug: false
	});
}
</script>
</head>
<body>
<form id="form1" runat="server">
    <div id="header">
			<h3 id="logo">Kling批量上传图片组件</h3>	
			<div id="version">version 2.0.0</div>		
		</div>

	<div id="content">
			    <h2>批量上传图片</h2>
		
	    <div id="swfu_container" style="margin: 0px 10px;">
		    <div>
				<span id="spanButtonPlaceholder"></span>
		    </div>
		    <div id="divFileProgressContainer" style="height: 75px;"></div>
		    <div id="thumbnails"></div>
	    </div>
		</div>
    </form>
</body>
</html>
