Subversion Repositories wimsdev

Rev

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