Subversion Repositories wimsdev

Rev

Rev 13752 | Rev 14944 | Go to most recent revision | 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
14
    <li class="text_icon file">
15
      !set wims_getfile_fname=$f
16
      !getfile doc/$f $f
17
    </li>
18
  !next f
19
  </ul>
20
</div>
21
 
22
!form reply
6235 bpr 23
 <input type="hidden" name="job2" value="erase" />
2266 bpr 24
 Erase a file:
25
 !formselect job2 list $flist
6235 bpr 26
 <input type="submit" value="$wims_name_erase" />
5927 bpr 27
 
28
 !formend
2266 bpr 29
 <p>
5901 bpr 30
 Files in the document can be accessed using the variable <span class="tt wims_code_variable">\filedir</span>
5832 bpr 31
in the document. For example,
32
</p>
33
<p class="wimscenter">
14940 bpr 34
 <span class="tt wims_address">&lt;a href="\filedir/$f1" target="wims_external" download="$f1"&gt;$f1&lt;/a&gt;</span>
5832 bpr 35
</p>
3618 bpr 36
 gives a link to the file <a href="$m_filedir/$f1" alt="$f1">$f1</a>.
2266 bpr 37
 Also, you can write
5832 bpr 38
<p class="wimscenter">
5901 bpr 39
 <span class="tt wims_address">&lt;img src="\filedir/myfile.jpg" alt="myfile"&gt;</span>
5832 bpr 40
</p><p>
5901 bpr 41
to include an image file <span class="tt wims_fname">myfile.jpg</span> in the page.
2266 bpr 42
 Files deposited to this document are only accessible by people having
3145 bpr 43
 rights to read the document.
2266 bpr 44
 
14940 bpr 45
</p><div>
13665 bpr 46
A new command <span class="tt wims_code_words">\href{}{}</span> is under testing.
10676 reyssat 47
To get a link to the file, it suffices to write
5832 bpr 48
<p class="wimscenter">
14940 bpr 49
  <code class="wims_code_words">\href{$f1}</code> or <code class="wims_code_words">\href{$f1}{link}</code>.
5832 bpr 50
</p>
14940 bpr 51
</div>
2266 bpr 52
!exit
53
 
54
:readauth
55
 If you are the author of the document, please remember that you need the
56
 authorization of the
3930 bpr 57
 !mailurl $wims_site_manager webmaster\
2266 bpr 58
Ask to open WIMS document $doc
3922 bpr 59
 to put the document visible by the public.
2285 bpr 60
 
61
!exit
62
 
63
:erase1
3930 bpr 64
 For security reasons, only webmasters can erase public documents.
2285 bpr 65
 <p>
66
 Please
3930 bpr 67
 !mailurl $wims_site_manager ask the webmaster
2285 bpr 68
 to erase this document for you.
5972 bpr 69
 </p>
2285 bpr 70
!exit
71
 
72
:erase2
4385 bpr 73
<span class="wims_warning">ATTENTION</span>. An erased document cannot be recovered!
2285 bpr 74
<p>
13665 bpr 75
Are you sure you want to erase the content of the document <span class="tt wims_fname">$tit</span>?
5972 bpr 76
</p>
2285 bpr 77
!exit
14940 bpr 78
 
2285 bpr 79
:public
80
<b>Remark</b>. You must ask the approval of the
3930 bpr 81
 !mailurl $wims_site_manager webmaster\
2285 bpr 82
Ask to open WIMS document $doc
83
 to make the document accessible by le public.
13665 bpr 84
!exit