﻿<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SWFUpload Demos - Classic Form Demo</title>
<link href="default.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="/SKCMS/upload/swfupload/swfupload.mi.js"></script>
<script type="text/javascript">
		var swfu;
		window.onload = function () {
			swfu = new SWFUpload({
				// Backend settings
				upload_url: "../SKCMS/upload/SKCMS_upload.asp",     // 上传文件程序
				post_params: {"file" : "bbs"},
				file_post_name: "resume_file",       
				file_size_limit : "1 MB",           // 文件上传大小
				file_types : "*.rar;*.wpd;*.jpg",			// 可上传文件类型: "*.doc;*.wpd;*.pdf",
				file_types_description : "All Files", 
				file_upload_limit : 0,   //限定用户一次性最多上传多少个文件，在上传过程中，该数字会累加，如果设置为“0”，则表示没有限制 
				file_queue_limit : 1,
				swfupload_loaded_handler : swfUploadLoaded,
				file_dialog_start_handler: fileDialogStart,
				file_queued_handler : fileQueued,
				file_queue_error_handler : fileQueueError,
				file_dialog_complete_handler : fileDialogComplete,
 
                //外部函数接口
				swfupload_preload_handler : preLoad,
				swfupload_load_failed_handler : loadFailed,
				upload_progress_handler : uploadProgress,
				upload_error_handler : uploadError,
				upload_success_handler : uploadSuccess,  //上传成功后
				upload_complete_handler : uploadComplete,
				
				// 按钮
				button_image_url : "/SKCMS/upload/XPButtonUploadText_61x22.png",
				button_placeholder_id : "spanButtonPlaceholder",  //指定上传DOM
				button_width: 100,
				button_height: 22,
				button_text: '上传图片',
				button_text_style:'', //文字样式

				// Flash Settings
				flash_url : "/SKCMS/upload/swfupload/swfupload.swf",
				flash9_url : "/SKCMS/upload/swfupload/swfupload_fp9.swf",
				custom_settings : {
					progress_target : "fsUploadProgress",
					upload_successful : false
				},
				debug: false
			});
		};
	</script>
	
</head>
<body>
<div id="content">


	<form action="thanks.asp" method="post" enctype="multipart/form-data" name="form1" id="form1">
		<div class="fieldset">
			<span class="legend">Submit your Application</span>
			<table style="vertical-align:top;">
				<tr>
					<td><label for="lastname">Last Name:</label></td>
					<td><input name="lastname" id="lastname" type="text" style="width: 200px" /></td>
				</tr>
				<tr>
					<td><label for="firstname">First Name:</label></td>
					<td><input name="firstname" id="firstname" type="text" style="width: 200px" /></td>
				</tr>
				<tr>
					<td><label for="education">Education:</label></td>
					<td><textarea name="education"  id="education" cols="0" rows="0" style="width: 400px; height: 100px;"></textarea></td>
				</tr>
				<tr>
					<td><label for="txtFileName">Resume:</label></td>
					<td>
						<div>
							<div>
								<input type="text" id="txtFileName" name="FileName" disabled="true" style="border: solid 1px; background-color: #FFFFFF;" /><span id="spanButtonPlaceholder"></span>
								(1 MB max)<span style="color:#FF0000">为了安全，演示只允许上传RAR文件</span>
							</div>
							<div class="flash" id="fsUploadProgress">
								<!-- This is where the file progress gets shown.  SWFUpload doesn't update the UI directly.
											The Handlers (in handlers.js) process the upload events and make the UI updates -->
							</div>
							<input type="hidden" name="hidFileID" id="hidFileID" value="" />
							<!-- This is where the file ID is stored after SWFUpload uploads the file and gets the ID back from upload.php -->
						</div>
					</td>
				</tr>
				<tr>
					<td><label for="references">References:</label></td>
					<td><textarea name="references" id="references" cols="0" rows="0" style="width: 400px; height: 100px;"></textarea></td>
				</tr>
			</table>
			<br />
			<input type="submit" value="Submit Application" id="btnSubmit" />
		</div>
  </form>
</div>
</body>
</html>
