Rev 5813 | Rev 5927 | 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 | Ficheros de imagen para el ejercicio |
||
23 | reyssat | 5 | |
6 | !if $quota=yes |
||
5130 | bpr | 7 | <span class="wims_warning">$wims_name_Error</span>. No puede añadir más ficheros a su clase porque su contendido |
23 | reyssat | 8 | ha igualado o superado el espacio de disco autorizado. |
9 | Lo sentimos. |
||
10 | <p> |
||
11 | !goto sendend |
||
12 | !endif |
||
13 | |||
14 | !set wims_form_method=file |
||
5130 | bpr | 15 | Vous pouvez charger différents types de fichiers (image, mp3, pdf, ...). |
3727 | bpr | 16 | |
23 | reyssat | 17 | !form reply |
18 | Fichero de imagen que se va a enviar en el ejercicio: |
||
5716 | bpr | 19 | <input type="file" name="wims_deposit"/> |
20 | <input type="submit" value="$wims_name_tosave"/> |
||
23 | reyssat | 21 | </form> |
22 | |||
23 | :sendend |
||
3727 | bpr | 24 | |
23 | reyssat | 25 | !if $imglist=$empty |
2868 | didsene | 26 | Este ejercicio no tiene aún ningún fichero de imagen. |
23 | reyssat | 27 | !else |
28 | Lista de ficheros de imagen del ejercicio: |
||
5718 | bpr | 29 | <table class="wimsborder wimscenter"> |
5716 | bpr | 30 | <tr><th>Nombre del fichero</th><th>Vista</th><th>-</th></tr> |
23 | reyssat | 31 | !for i in $imglist |
5716 | bpr | 32 | <tr><td>$i</td> |
33 | <td> |
||
1086 | bpr | 34 | <img src="$wims_ref_name?cmd=getfile&+session=$wims_session&+special_parm=oefimg/$i" alt="" |
5917 | bpr | 35 | height="40px" width="50px" alt=""/></td> |
5716 | bpr | 36 | <td> |
3727 | bpr | 37 | !set wims_ref_class=wims_button |
38 | !href cmd=reply&delfile=$i $wims_name_erase |
||
39 | </td> |
||
23 | reyssat | 40 | !next i |
5917 | bpr | 41 | </tr> |
5716 | bpr | 42 | $table_end |
43 | |||
44 | !if $imgfname!= |
||
45 | !set example=$imgfname |
||
46 | !else |
||
47 | !set example=!item 1 of $imglist |
||
48 | !endif |
||
49 | <p> |
||
23 | reyssat | 50 | Se puede acceder a estos ficheros de imagen en el enunciado del ejercicio |
51 | mediante el parámetro interno \imagedir. Por ejemplo puede escribir |
||
5813 | bpr | 52 | </p> |
23 | reyssat | 53 | <center><pre> |
5716 | bpr | 54 | <img src=\imagedir/$example/> |
23 | reyssat | 55 | </pre></center> |
84 | bpr | 56 | Puede también escribir simplemente <tt>\img{\imagedir/$example}</tt>, o |
57 | <tt>\img{\imagedir/$example}{opciones html}</tt>. La ventaja de este segundo método |
||
23 | reyssat | 58 | es que los estudiantes no verán el nombre del fichero. A causa de su coste |
59 | en consumo de recursos, no utilice este método más que cuando sea necesario. |
||
60 | !endif |
||
5716 | bpr | 61 | <p class="wims_warning"> |
3727 | bpr | 62 | Sauvez l'exercice pour que les fichiers ajoutés le soient de manière |
63 | permanente. |
||
5716 | bpr | 64 | </p> |
1393 | bpr | 65 | !set wims_menu_items=!append line \ |
66 | testexo,1,cmd=resume&level=3&realtest=yes&retest=again\ |
||
67 | backcreatexo,1,cmd=reply&level=3\ |
||
68 | to $wims_menu_items |