1 rizwank 1.1 %TMPL:INCLUDE{"twiki"}%
2 %TMPL:DEF{"footernote"}%
3 <div class="TWikiFooterNote">
4 %META{"moved"}%
5 </div>%TMPL:END%
6 %TMPL:DEF{"script"}%
7 <script type="text/javascript">
8 <!--HIDE
9 function initForm() {
10 document.main.filepath.focus();
11 }
12 function launchWindow( theWeb, theTopic ) {
13 win = open("%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/" + theWeb + "/" + theTopic + "?skin=plain", theTopic, "titlebar=0,width=500,height=480,resizable,scrollbars");
14 if( win ) {
15 win.focus();
16 }
17 return false;
18 }
19 //STOP HIDING-->
20 </script>%TMPL:END%
21 %TMPL:DEF{"attach"}%
22 rizwank 1.1 %TMPL:P{"htmldoctype"}%
23 %TMPL:P{"head"}%
24 <body bgcolor="#ffffff" onload="initForm()" >
25 #PageTop
26 <form name="main" enctype="multipart/form-data" action="%SCRIPTURLPATH%/upload%SCRIPTSUFFIX%/%WEB%/%TOPIC%" method="post">
27 %TMPL:P{"simpleheader"}%
28 ---++ Existing attachments for <nop>%TOPIC%
29 %META{"attachments" all="on"}%
30 %TMPL:P{"previousdetails"}%
31 <table width="100%">
32 %TMPL:P{"previous"}%
33 <tr>
34 <td align="right">
35 Local file:
36 </td><td>
37 <input type="hidden" name="filename" value="%FILENAME%" />
38 <input type="file" name="filepath" value="%FILEPATH%" size="50" />
39 </td>
40 </tr>
41 <tr>
42 <td align="right">
43 rizwank 1.1 Comment:
44 </td><td>
45 <input type="text" name="filecomment" value="%FILECOMMENT%" maxlength="256" size="50" />
46 </td>
47 </tr>
48 <tr>
49 <td align="right">
50 Link:
51 </td><td>
52 <input type="checkbox" name="createlink" %ATTACHLINKBOX% /> Create a link to the attached file at the end of the topic.
53 </td>
54 </tr>
55 <tr>
56 <td align="right">
57 Hide file:
58 </td><td>
59 <input type="checkbox" name="hidefile" %HIDEFILE% /> Hide attachment in normal topic view.
60 </td>
61 </tr>
62 </table>
63
64 rizwank 1.1 __Notes:__
65
66 * *Help:* Please see %TWIKIWEB%.FileAttachment for more information about attaching files.
67 * *File size:* You can upload files up to %ATTACHFILESIZELIMIT% KB in size.
68 * *Link checkbox:* If the attached file is a JPG, GIF or PNG image and you check the box,
69 it will create an inline image (e.g. show the image) at the end of the topic. For other
70 file types a simple link will be created.
71 * *Bug:* Internet Explorer 4.0 or earlier: If you get an "Internal Server Error"
72 message when you upload a file, you need to try again. It should work the second time.
73 %TMPL:P{"extranotes"}%
74 %TMPL:P{"standardfooter"}%
75 </form>
76 #PageBottom
77 </body>
78 </html>%TMPL:END%
|