forked from Quasimo/FotoRatan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupload2.html
125 lines (115 loc) · 2.91 KB
/
upload2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!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>大菠萝多文件上传</title>
<style type="text/css">
ul, ol {
list-style-image:none;
list-style-position:outside;
list-style-type:none;
padding:0;
}
#fileList{
border:1px solid #AFE14C;
}
#fileList legend{
color:#73B304;
font-size:14px;
}
#uploadPanal{
width:40%;
float:left;
}
#imgPanal{
width:59%;
float:right;
}
.filename{
float:left;
color:#555555;
width:300px;
}
.filestate{
float:right;
font-size:7pt;
color:#999999;
}
#btnUpload{
clear:both;
margin-left: 2px;
font-size: 8pt;
height: 29px;
width:50px;
}
#showResult{
clear:both;
}
#imglist li{
width:85px;
height:85px;
float:left;
}
#imglist img{
height:75px;
width:75px;
border:0;}
</style>
<script type="text/javascript" src="/static/swfupload/swfupload.js"></script>
<script type="text/javascript" src="/static/swfupload/handlers.js"></script>
<script type="text/javascript">
var swfu;
window.onload = function () {
swfu = new SWFUpload({
// Backend Settings
upload_url: "/admin/upload2/", // Relative to the SWF file or absolute
// File Upload Settings
file_size_limit : "1 MB", // 2MB
file_types : "*.jpg;*.png;*.gif",
file_types_description : "Web Image Files",
file_upload_limit : "0",
// 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_queued_handler:fileQueued,
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: "/static/images/select.png", // Relative to the Flash file
button_width: "61",
button_height: "22",
button_placeholder_id: "btnSelect",
// Flash Settings
flash_url : "/static/swfupload/swfupload.swf",
// Debug Settings
debug: false
});
};
</script>
</head>
<body>
<div id="uploadPanal">
<form id="uploadForm" action="/">
<fieldset id="fileList">
<legend>Upload Queue</legend>
<ul id="cFileList">
</ul>
</fieldset>
<span id="showResult"></span><br />
<div style="width: 61px; height: 22px; margin-bottom: 10px;">
<span id="btnSelect"></span>
</div>
<p>点击”Upload“选择图片,可以使用Ctrl或Shift多选。</p>
<p>那位帮忙美化下界面呀!!!联系我邮箱ben###119797.com</p>
</form>
</div>
<div id="imgPanal">
<ul id="imglist">
</ul>
</div>
</body>
</html>