Rev 16387 | Rev 16395 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1533 | guerimand | 1 | !! -------------------- affiche le contenu de la feuille $sheet de la classe $wims_class |
11152 | bpr | 2 | !! langage is defined in adm/class/sheet/lang/names.phtml.$lang |
1533 | guerimand | 3 | |
4 | $table_header |
||
12656 | obado | 5 | <caption>$name_content</caption> |
6 | <thead> |
||
7 | $table_hdtr |
||
8 | !for k=1 to 5 |
||
9 | <th>$(name_shtab[$k])</th> |
||
10 | !next k |
||
11 | <th>$name_qnum</th> |
||
12 | !for k=6 to 7 |
||
13 | <th>$(name_shtab[$k])</th> |
||
14 | !next k |
||
15 | <th>$(name_shtab[10])</th> |
||
16 | !if $activetest>=0 |
||
16387 | guerimand | 17 | <th |
18 | !if $activetest=0 and $exocnt>1 |
||
19 | colspan="2" |
||
14107 | guerimand | 20 | !endif |
16387 | guerimand | 21 | >$(name_shtab[8])</th> |
12656 | obado | 22 | !endif |
23 | </tr> |
||
24 | </thead> |
||
25 | <tbody> |
||
12314 | bpr | 26 | !for i=1 to $exocnt |
1533 | guerimand | 27 | !set ex=!record $i of wimshome/log/classes/$wims_class/sheets/.sheet$sheet |
15885 | guerimand | 28 | !distribute lines $ex into di,pa,req,weig,ti,de,dep,com,feed,icone |
1533 | guerimand | 29 | $table_tr |
12314 | bpr | 30 | <td id="td_exo_$i">$i</td> |
31 | <td> |
||
12316 | bpr | 32 | !if $icone!=$empty |
12329 | bpr | 33 | !set wims_ref_class=text_icon icon_$icone |
12316 | bpr | 34 | !endif |
12314 | bpr | 35 | !href cmd=new&module=$di&worksheet=$sheet&$pa $ti |
36 | </td> |
||
37 | <td>$de</td> |
||
15885 | guerimand | 38 | !if $activetest>0 |
39 | <td> |
||
40 | !getscorerequire sheet=$sheet work=$i |
||
41 | </td> |
||
42 | <td> |
||
43 | !getscoreweight sheet=$sheet work=$i |
||
44 | </td> |
||
45 | !else |
||
46 | <td> |
||
15910 | guerimand | 47 | !row 1 of $req |
15885 | guerimand | 48 | </td> |
49 | <td> |
||
15910 | guerimand | 50 | !row 1 of $weig |
15885 | guerimand | 51 | </td> |
52 | !endif |
||
12314 | bpr | 53 | !set pa=!replace internal & by $ $ in $pa |
54 | !reset qnum |
||
55 | !!oef exercises |
||
56 | !set qnum=!getopt qnum in $pa |
||
57 | !if $qnum= |
||
14129 | bpr | 58 | !!J.E. exercises |
12314 | bpr | 59 | !set qnum=!getopt total_exos in $pa |
60 | !endif |
||
11152 | bpr | 61 | <td>$qnum</td> |
1533 | guerimand | 62 | <td> |
12314 | bpr | 63 | !if $dep!=$empty |
14129 | bpr | 64 | $dep |
65 | !else |
||
66 | $ |
||
12314 | bpr | 67 | !endif |
1533 | guerimand | 68 | </td> |
1969 | guerimand | 69 | <td>$com</td> |
14646 | bpr | 70 | !set feedbr=!rows2lines $feed |
71 | !set feedbr=!replace internal $\ |
||
72 | $ by </li><li> in <ul><li>$feedbr</li></ul> |
||
73 | <td style="text-align:left" class="small"> |
||
74 | !if $feed!=$empty |
||
75 | $feedbr |
||
76 | !endif |
||
77 | </td> |
||
12314 | bpr | 78 | !if $activetest>=0 |
13824 | bpr | 79 | <td> |
3066 | bpr | 80 | !set wims_ref_class=wims_button |
12314 | bpr | 81 | !href cmd=reply&job=prep_modify&modif=$i $(seriesaction[1]) |
4864 | bpr | 82 | !if $activetest=0 |
12656 | obado | 83 | $ |
12314 | bpr | 84 | !set wims_ref_class=wims_button wims_warning |
85 | !href cmd=reply&job=delete&delete=$i#list $(seriesaction[2]) |
||
16387 | guerimand | 86 | !if $exocnt>1 |
87 | </td> |
||
88 | <td> |
||
16388 | guerimand | 89 | !read adm/sheet/moveafterform.phtml $(name_shtab[11]) |
16387 | guerimand | 90 | !endif |
4864 | bpr | 91 | !endif |
14107 | guerimand | 92 | </td> |
12314 | bpr | 93 | !endif |
1533 | guerimand | 94 | </tr> |
12314 | bpr | 95 | !next i |
12656 | obado | 96 | </tbody> |
1533 | guerimand | 97 | $table_end |