Subversion Repositories wimsdev

Rev

Rev 17540 | Go to most recent revision | 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
6283 obado 6
 
17540 bpr 7
 <caption>$name_contentsuper</caption>
6283 obado 8
 
2329 guerimand 9
 $table_hdtr
10
  !for k=1 to 7
17553 bpr 11
    !if $mode=1
12
      !if $k notwordof 4 5 6 7
13
        <th>$(name_extab[$k])</th>
14
      !endif
15
    !else
16
      <th>$(name_extab[$k])</th>
17
    !endif
2329 guerimand 18
  !next k
19
  !if $activetest=0
16388 guerimand 20
    <th colspan="2">$(name_extab[8])</th>
2329 guerimand 21
  !endif
15494 bpr 22
  </tr>
2329 guerimand 23
 !for i=1 to $exocnt
15494 bpr 24
    !set ex=!record $i of wimshome/log/classes/$wims_class/exams/.exam$exam
25
    !distribute lines $ex into poids,content,title,dep,option,com
17553 bpr 26
    !if $mode=1
27
      !set dep_=!record $exam of wimshome/log/classes/$wims_class/exams/.exams
28
      !set dep_=!line 3 of $dep_
29
      !set dep_=!word 3 of $dep_
30
      !if $dep_!= and $i>1
31
        !set dep=$[$i-1]:$dep_
32
      !endif
33
    !endif
15494 bpr 34
    $table_tr
35
    <td>$i</td>
36
    <td>$title</td>
37
    <td>
2329 guerimand 38
    !for k in $content
15494 bpr 39
      !let t=!replace internal . by , in $k
40
      !distribute item $t into s_,e_
41
      !let t=!record $e_ of wimshome/log/classes/$wims_class/sheets/.sheet$s_
42
      !distribute line $t into di,pa,bl,bl,bl,bl,bl
43
      !href target=wims_new module=$di&cmd=new&$pa $s_.$e_
44
      &nbsp;
2329 guerimand 45
    !next k
15494 bpr 46
    </td>
17553 bpr 47
    !if $mode iswordof 0
48
      <td>$poids</td>
49
      <td>$dep</td>
50
      <td>$com</td>
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
       &nbsp;
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>