Rev 17553 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2329 | guerimand | 1 | !!!### language independant |
17553 | bpr | 2 | !! ---- affiche le contenu de l'exam $exam de la classe $wims_class |
2329 | guerimand | 3 | |
6283 | obado | 4 | <div id="list"> |
2329 | guerimand | 5 | $table_header |
17540 | bpr | 6 | <caption>$name_contentsuper</caption> |
2329 | guerimand | 7 | $table_hdtr |
8 | !for k=1 to 7 |
||
17553 | bpr | 9 | !if $mode=1 |
17557 | bpr | 10 | !if $k notwordof 5 7 |
17553 | bpr | 11 | <th>$(name_extab[$k])</th> |
12 | !endif |
||
13 | !else |
||
14 | <th>$(name_extab[$k])</th> |
||
15 | !endif |
||
2329 | guerimand | 16 | !next k |
17 | !if $activetest=0 |
||
16388 | guerimand | 18 | <th colspan="2">$(name_extab[8])</th> |
2329 | guerimand | 19 | !endif |
15494 | bpr | 20 | </tr> |
2329 | guerimand | 21 | !for i=1 to $exocnt |
15494 | bpr | 22 | !set ex=!record $i of wimshome/log/classes/$wims_class/exams/.exam$exam |
23 | !distribute lines $ex into poids,content,title,dep,option,com |
||
17553 | bpr | 24 | !if $mode=1 |
25 | !set dep_=!record $exam of wimshome/log/classes/$wims_class/exams/.exams |
||
26 | !set dep_=!line 3 of $dep_ |
||
27 | !set dep_=!word 3 of $dep_ |
||
28 | !if $dep_!= and $i>1 |
||
29 | !set dep=$[$i-1]:$dep_ |
||
30 | !endif |
||
31 | !endif |
||
15494 | bpr | 32 | $table_tr |
33 | <td>$i</td> |
||
34 | <td>$title</td> |
||
35 | <td> |
||
2329 | guerimand | 36 | !for k in $content |
15494 | bpr | 37 | !let t=!replace internal . by , in $k |
38 | !distribute item $t into s_,e_ |
||
39 | !let t=!record $e_ of wimshome/log/classes/$wims_class/sheets/.sheet$s_ |
||
40 | !distribute line $t into di,pa,bl,bl,bl,bl,bl |
||
41 | !href target=wims_new module=$di&cmd=new&$pa $s_.$e_ |
||
42 | |
||
2329 | guerimand | 43 | !next k |
15494 | bpr | 44 | </td> |
17557 | bpr | 45 | <td>$poids</td> |
46 | !if $mode iswordof 0 or $mode= |
||
17553 | bpr | 47 | <td>$dep</td> |
17557 | bpr | 48 | !endif |
49 | <td>$com</td> |
||
50 | !if $mode iswordof 0 or $mode= |
||
17553 | bpr | 51 | <td>$option</td> |
52 | !endif |
||
15494 | bpr | 53 | !if $activetest=0 |
54 | <td> |
||
14109 | guerimand | 55 | !set wims_ref_class=wims_button |
56 | !href cmd=reply&job=exo&exo=$i $wims_name_change |
||
57 | |
||
58 | !set wims_ref_class=wims_button wims_warning |
||
59 | !href cmd=reply&job=delete&delete=$i#list $wims_name_erase |
||
15494 | bpr | 60 | </td> |
61 | <td> |
||
16388 | guerimand | 62 | !read adm/sheet/moveafterform.phtml $(name_extab[9]) |
15494 | bpr | 63 | </td> |
64 | !endif |
||
2329 | guerimand | 65 | </tr> |
15494 | bpr | 66 | !next i |
2329 | guerimand | 67 | $table_end |
7543 | bpr | 68 | </div> |