Subversion Repositories wimsdev

Rev

Rev 2523 | Rev 3070 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
 
1393 bpr 2
!read adm/title.phtml 3\
3
\
4
Image files for the exercise
23 reyssat 5
 
6
!if $quota=yes
7
 <b>Error</b>. You can no longer put files into your class, because its
8
 content has reached or exceeded disk space allowance. Sorry.
9
 <p>
10
 !goto sendend
11
!endif
12
 
13
!set wims_form_method=file
14
!form reply
15
Image file to send to the exercise:
3049 bpr 16
<input type=file name="wims_deposit">
2523 bpr 17
<input type=submit value="$wims_name_tosave">
23 reyssat 18
</form>
19
 
20
:sendend
2391 bpr 21
 
23 reyssat 22
!if $imglist=$empty
23
 This exercise has no image file yet.
24
!else
25
 Here is the list of image files in this exercise.
26
 <p><center><table border=2>
27
 <th>File name<th>glimps<th>-
28
 !for i in $imglist
3049 bpr 29
  <tr><td valign="middle" align="center">$i
30
  <td valign="middle" align="center">
1086 bpr 31
  <img src="$wims_ref_name?cmd=getfile&+session=$wims_session&+special_parm=oefimg/$i" alt=""
23 reyssat 32
   height=40 width=50>
3049 bpr 33
  <td valign="middle" align="center">
2391 bpr 34
  !href cmd=reply&delfile=$i  $wims_name_erase
23 reyssat 35
 !next i
36
 $table_end <p>
37
 !set example=!item 1 of $imglist
38
 These images files can be accessed in the statement of the exercise
39
 via the internal parameter \imagedir. For
40
 example, you can write 
41
 <center><pre>
42
 &lt;img src=\imagedir/$example&gt;
43
 </pre></center> <p>
84 bpr 44
 You can also simply write <tt>\img{\imagedir/$example}</tt>, or 
45
 <tt>\img{\imagedir/$example}{html options}</tt>. The advantage of this method is that
23 reyssat 46
 the file name will be hidden to the students. Due to its performance
47
 cost, this method should be used only when necessary.
48
!endif
1393 bpr 49
!set wims_menu_items=!append line \
50
testexo,1,cmd=resume&level=3&realtest=yes&retest=again\
51
backcreatexo,1,cmd=reply&level=3\
52
to $wims_menu_items
23 reyssat 53
 
1393 bpr 54