1 rizwank 1.1 %TMPL:INCLUDE{"twiki"}%
2
3
4
5 %TMPL:DEF{"script"}%
6 <script type="text/javascript">
7 <!--HIDE
8 function initForm() {
9 document.main.filepath.focus();
10 }
11 function launchWindow( theWeb, theTopic ) {
12 win = open("%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/" + theWeb + "/" + theTopic + "?skin=plain", theTopic, "titlebar=0,width=500,height=480,resizable,scrollbars");
13 if( win ) {
14 win.focus();
15 }
16 return false;
17 }
18 //STOP HIDING-->
19 </script> %TMPL:END%
20
21
22 rizwank 1.1
23 %TMPL:DEF{"bodystart"}%
24 <body class="twikiNoViewPage twikiAttachPage" onload="initForm()"><a name="PageTop"></a>%TMPL:END%
25
26
27
28 %TMPL:DEF{"titleaction"}%(attach) %TMPL:END%
29
30
31
32 %TMPL:DEF{"simpleheader"}%
33 ---+ Attach image or document on %TOPIC% %TMPL:END%
34
35
36
37 %TMPL:DEF{"notes"}%
38 * *Help:* Please see %TWIKIWEB%.FileAttachment for more information about attaching files.
39 * *Bug:* Internet Explorer 4.0 or earlier: If you get an "Internal Server Error" message when you upload a file, you need to try again. It should work the second time.
40 %TMPL:END%
41
42
43 rizwank 1.1
44 %TMPL:DEF{"content"}%
45 <form name="main" enctype="multipart/form-data" action="%SCRIPTURLPATH%/upload%SCRIPTSUFFIX%/%INTURLENCODE{"%WEB%/%TOPIC%"}%" method="post">
46 %TMPL:P{"simpleheader"}%
47
48 <div>
49 %TMPL:P{"previousdetails"}%
50 <div class="twikiVersatileTable">
51 <table width="100%">%TMPL:P{"previous"}%
52 <tr>
53 <th>
54 Local file
55 </th>
56 <td class="twikiMainCol">
57 <input type="hidden" name="filename" value="%FILENAME%" /><input type="file" name="filepath" value="%FILEPATH%" size="30" />
58 </td>
59 <td class="twikiHelpCol twikiMainCol">
60 Upload up to %ATTACHFILESIZELIMIT% KB.
61 </td>
62 </tr>
63 <tr>
64 rizwank 1.1 <th>
65 Comment
66 </th>
67 <td>
68 <input class="comment" type="text" name="filecomment" value="%FILECOMMENT%" maxlength="256" size="50" />
69 </td>
70 <td class="twikiHelpCol"></td>
71 </tr>
72 <tr>
73 <th>
74 Link
75 </th>
76 <td>
77 <input type="checkbox" class="twikiCheckbox" id="createlink" name="createlink" %ATTACHLINKBOX% /><label for="createlink">Create a link to the attached file</label>
78 </td>
79 <td class="twikiHelpCol">
80 Images will be displayed, for other attachments a link will be created.
81 </td>
82 </tr>
83 <tr>
84 <th>
85 rizwank 1.1 Hide file
86 </th>
87 <td>
88 <input type="checkbox" class="twikiCheckbox" id="hidefile" name="hidefile" %HIDEFILE% /><label for="hidefile">Do not show attachment in table</label>
89 </td>
90 <td class="twikiHelpCol">Attachments will not be shown in topic view page.</td>
91 </tr>
92 </table>
93 </div>
94 %TMPL:P{"topicaction"}%</form>
95 <div class="twikiHelp twikiGrayText">
96 %TMPL:P{"notes"}%
97 %TMPL:P{"extranotes"}%</div></div>
98 ---++ Existing attachments for <span class="twikiTitle"><nop>%TOPIC%</span>
99 %META{"attachments" all="on"}%
100 %TMPL:P{"standardfooter"}%%TMPL:END%
101
102
103
104 %TMPL:DEF{"attach"}%
105 %TMPL:P{"htmldoctype"}%
106 rizwank 1.1 %TMPL:P{"head"}%
107 %TMPL:P{"bodystart"}%
108 %TMPL:P{"main"}%
109 %TMPL:P{"bodyend"}%
110 %TMPL:END%
|