1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
3 | <head> |
---|
4 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> |
---|
5 | <title>Upload</title> |
---|
6 | <meta name="title" content="Upload"/> |
---|
7 | @STYLESHEET@ |
---|
8 | <script language="JavaScript"> |
---|
9 | function setup() { |
---|
10 | window.resizeTo(750,750); |
---|
11 | @REPEAT( |
---|
12 | showhide('textcntls@INDEX@','hidden'); |
---|
13 | )@ |
---|
14 | } |
---|
15 | window.onload = setup; |
---|
16 | |
---|
17 | function showhide(name,vis) { |
---|
18 | if (document.getElementById) { |
---|
19 | document.getElementById(name).style.visibility = vis; |
---|
20 | if (vis == 'hidden') { |
---|
21 | document.getElementById(name).style.height = 0; |
---|
22 | } else { |
---|
23 | document.getElementById(name).style.height = ''; |
---|
24 | } |
---|
25 | } |
---|
26 | } |
---|
27 | </script> |
---|
28 | </head> |
---|
29 | <body> |
---|
30 | <div id="logo"> |
---|
31 | @LOGO@ |
---|
32 | </div> |
---|
33 | <div id="main"> |
---|
34 | <h1>Upload</h1> |
---|
35 | <p id="description"> |
---|
36 | Use this form to upload data for @TOOL@. If you don't specify a |
---|
37 | file for a particular input, that input won't be modified by the |
---|
38 | <i>Upload</i> operation. |
---|
39 | </p> |
---|
40 | |
---|
41 | <form action="/upload" enctype="multipart/form-data" method="post"> |
---|
42 | @REPEAT( |
---|
43 | <div id="input"> |
---|
44 | <div id="heading"> |
---|
45 | @LABEL@: |
---|
46 | </div> |
---|
47 | <div id="options"> |
---|
48 | <input type="radio" name="which@INDEX@" value="file" checked onclick="showhide('filecntls@INDEX@','visible'); showhide('textcntls@INDEX@','hidden')"> |
---|
49 | Upload a file</input> |
---|
50 | <input type="radio" name="which@INDEX@" value="text" onclick="showhide('filecntls@INDEX@','hidden'); showhide('textcntls@INDEX@','visible')"> |
---|
51 | Copy/paste text</input> |
---|
52 | </div> |
---|
53 | <div> |
---|
54 | <div class="incntl" id="filecntls@INDEX@" title="@DESCRIPTION@"> |
---|
55 | <input type="file" name="file@INDEX@"> |
---|
56 | </div> |
---|
57 | <div class="incntl" id="textcntls@INDEX@" title="@DESCRIPTION@"> |
---|
58 | <textarea rows="20" cols="80" name="text@INDEX@">Copy/paste your text into this area, and then click the Upload button to upload it.</textarea> |
---|
59 | </div> |
---|
60 | </div> |
---|
61 | <input type="hidden" name="path@INDEX@" value="@ID@"> |
---|
62 | </div> |
---|
63 | )@ |
---|
64 | |
---|
65 | <input type="hidden" name="callback" value="@COOKIE@"> |
---|
66 | <div id="submit"> |
---|
67 | <input type="submit" value="Upload"/> |
---|
68 | </div> |
---|
69 | </form> |
---|
70 | </div> |
---|
71 | </body> |
---|
72 | </html> |
---|