Subversion Repositories wimsdev

Rev

Rev 13752 | Rev 14944 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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