Rev 17231 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2286 | bpr | 1 | !set lang_exists=yes |
2 | !if $wims_read_parm=$empty |
||
3 | !exit |
||
4 | !endif |
||
5 | |||
2266 | bpr | 6 | !goto $wims_read_parm |
4385 | bpr | 7 | |
2266 | bpr | 8 | :file |
9 | |||
14940 | bpr | 10 | <div> |
11 | Available files in this document: |
||
12 | <ul class="inline"> |
||
13 | !for f in $flist |
||
14944 | obado | 14 | <li> |
17281 | bpr | 15 | !set wims_getfile_fname=$f |
14944 | obado | 16 | !set wims_ref_class=text_icon file |
14940 | bpr | 17 | !getfile doc/$f $f |
18 | </li> |
||
19 | !next f |
||
20 | </ul> |
||
21 | </div> |
||
22 | |||
23 | !form reply |
||
17281 | bpr | 24 | <input type="hidden" name="job2" value="erase"> |
25 | <fieldset> |
||
26 | <legend>Erase a file:</legend> |
||
14944 | obado | 27 | !formselect job2 list $flist |
17281 | bpr | 28 | <input type="submit" class="wims_warning" value="$wims_name_erase"> |
29 | </fieldset> |
||
14944 | obado | 30 | !formend |
5927 | bpr | 31 | |
14944 | obado | 32 | <p> |
33 | Files in the document can be accessed using the variable <span class="tt wims_code_variable">\filedir</span> |
||
34 | in the document. For example, |
||
17281 | bpr | 35 | </p><p> |
36 | For example |
||
14944 | obado | 37 | <code class="wims_address"><a href="\filedir/$f1" download="$f1">$f1</a></code> |
17281 | bpr | 38 | gives a link to the file |
39 | <a href="$m_filedir/$f1" download="$f1">$f1</a>. |
||
40 | </p><p> |
||
14944 | obado | 41 | Also, you can write |
17281 | bpr | 42 | <code class="wims_address"><img src="\filedir/myfile.jpg" alt="myfile"></code> |
5832 | bpr | 43 | </p><p> |
14944 | obado | 44 | to include an image file <span class="tt wims_fname">myfile.jpg</span> in the page. |
45 | Files deposited to this document are only accessible by people having |
||
46 | rights to read the document. |
||
5832 | bpr | 47 | </p> |
14944 | obado | 48 | <div> |
49 | A new command <span class="tt wims_code_words">\href{}{}</span> is under testing. |
||
50 | To get a link to the file, it suffices to write |
||
51 | <p class="wimscenter"> |
||
52 | <code class="wims_code_words">\href{$f1}</code> or <code class="wims_code_words">\href{$f1}{link}</code>. |
||
53 | </p> |
||
14940 | bpr | 54 | </div> |
2266 | bpr | 55 | !exit |
56 | |||
57 | :readauth |
||
58 | If you are the author of the document, please remember that you need the |
||
59 | authorization of the |
||
3930 | bpr | 60 | !mailurl $wims_site_manager webmaster\ |
2266 | bpr | 61 | Ask to open WIMS document $doc |
3922 | bpr | 62 | to put the document visible by the public. |
2285 | bpr | 63 | !exit |
64 | |||
65 | :erase1 |
||
17281 | bpr | 66 | For security reasons, only webmasters can erase public documents. |
67 | <p> |
||
14944 | obado | 68 | Please |
69 | !mailurl $wims_site_manager ask the webmaster |
||
70 | to erase this document for you. |
||
17281 | bpr | 71 | </p> |
2285 | bpr | 72 | !exit |
73 | |||
74 | :erase2 |
||
17281 | bpr | 75 | <div class="wims_msg warning"><span class="wims_warning">ATTENTION</span>. |
76 | An erased document cannot be recovered!</div> |
||
2285 | bpr | 77 | <p> |
13665 | bpr | 78 | Are you sure you want to erase the content of the document <span class="tt wims_fname">$tit</span>? |
5972 | bpr | 79 | </p> |
2285 | bpr | 80 | !exit |
14940 | bpr | 81 | |
2285 | bpr | 82 | :public |
83 | <b>Remark</b>. You must ask the approval of the |
||
3930 | bpr | 84 | !mailurl $wims_site_manager webmaster\ |
2285 | bpr | 85 | Ask to open WIMS document $doc |
86 | to make the document accessible by le public. |
||
13665 | bpr | 87 | !exit |