Subversion Repositories wimsdev

Rev

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