-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanage.html
More file actions
86 lines (83 loc) · 2.47 KB
/
manage.html
File metadata and controls
86 lines (83 loc) · 2.47 KB
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
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<title>SimpleViewer</title>
<!-- Download SimpleViewer at www.airtightinteractive.com/simpleviewer -->
<script type="text/javascript" src="simpleviewer/swfobject.js"></script>
<style type="text/css">
/* hide from ie on mac \*/
html {
height: 100%;
}
#flashcontent {
height: 100%;
}
/* end hide */
body {
height: 100%;
margin: 0;
padding: 0;
background-color: #181818;
color:#ffffff;
font-family:sans-serif;
font-size:20;
}
a {
color:#cccccc;
}
</style>
</head>
<body>
<a href="/">Home</a><br /><br />
<form action="/manage" method="post" enctype="multipart/form-data">
<label>File: </label><input name="file" type="file" size="50"><br />
<label>Caption: </label><input name="caption" type="input" size="50"><br />
<label>原始图片链接: </label><input name="olink" type="input" size="50"><br />
<label>原始网页链接: </label><input name="opagelink" type="input" size="50"><br />
<input type="submit">
</form>
{{ error }}
{% if img and not error %}
picture name = {{ img.name|escape }} | caption = {{ img.caption }} | <a href="images/{{ img.key }}{{ img.ext }}">View original<a/>
<br />
{% endif %}
<br />
<form action="/manage" method="post">
<table>{% for img in images %}
{% if forloop.first %}
<tr>
<th></th>
<th>Photo</th>
<th>Name | </th>
<th>Length | </th>
<th>Caption</th>
</tr>
{% endif %}
<tr>
<td><input type="checkbox" name="image" id="{{ img.key }}" value="{{ img.key }}"></td>
<td><a href="imgdetail/{{ img.key }}"><img src="thumbs/{{ img.key }}{{ img.ext_thumb }}" /><a/></td>
<td>{{ img.name }} | </td>
<td>{{ img.length }} | </td>
<td>{{ img.caption }}</td>
</tr>
{% if forloop.last %}
<tr>
<td><input type="submit" name="action" value="Del"></td>
</tr>
{% endif %}
{% endfor %}
</table>
</form>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-4155622-4");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>