(file) Return to attach.dragon.tmpl CVS log (file) (dir) Up to [RizwankCVS] / geekymedia_web / twiki / templates

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

Rizwan Kassim
Powered by
ViewCVS 0.9.2