Subversion Repositories wimsdev

Rev

Rev 14107 | Rev 14128 | 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
17
      <th>$(name_shtab[8])</th>
14107 guerimand 18
      !if $activetest=0
19
        <th>$(name_shtab[11])</th>
20
      !endif
12656 obado 21
    !endif
22
  </tr>
23
</thead>
24
<tbody>
12314 bpr 25
!for i=1 to $exocnt
1533 guerimand 26
  !set ex=!record $i of wimshome/log/classes/$wims_class/sheets/.sheet$sheet
12316 bpr 27
  !distribute lines $ex into di,pa,re,we,ti,de,dep,com,feed,icone
1533 guerimand 28
  $table_tr
12314 bpr 29
  <td id="td_exo_$i">$i</td>
30
  <td>
12316 bpr 31
  !if $icone!=$empty
12329 bpr 32
    !set wims_ref_class=text_icon icon_$icone
12316 bpr 33
  !endif
12314 bpr 34
  !href cmd=new&module=$di&worksheet=$sheet&$pa $ti
35
  </td>
36
  <td>$de</td>
37
  <td>$re</td>
38
  <td>$we</td>
39
  !set pa=!replace internal & by $ $ in $pa
40
  !reset qnum
41
  !!oef exercises
42
  !set qnum=!getopt qnum in $pa
43
  !if $qnum=
11152 bpr 44
   !!J.E. exercises
12314 bpr 45
    !set qnum=!getopt total_exos in $pa
46
  !endif
11152 bpr 47
   <td>$qnum</td>
1533 guerimand 48
   <td>
12314 bpr 49
  !if $dep!=$empty
50
      $dep
1533 guerimand 51
    !else
10489 bpr 52
     $
12314 bpr 53
  !endif
1533 guerimand 54
   </td>
1969 guerimand 55
   <td>$com</td>
4528 bpr 56
   <td>$feed</td>
12314 bpr 57
  !if $activetest>=0
13824 bpr 58
    <td>
3066 bpr 59
    !set wims_ref_class=wims_button
12314 bpr 60
    !href cmd=reply&job=prep_modify&modif=$i $(seriesaction[1])
4864 bpr 61
    !if $activetest=0
12656 obado 62
      $
12314 bpr 63
      !set wims_ref_class=wims_button wims_warning
64
      !href cmd=reply&job=delete&delete=$i#list $(seriesaction[2])
14107 guerimand 65
      </td><td>
12314 bpr 66
      !if $i>1
12656 obado 67
        $
13432 bpr 68
        !set wims_ref_class=wims_button wims_button_move
12314 bpr 69
        !href cmd=reply&job=moveup&moveup=$i#td_exo_$[$i-1] $(seriesaction[3])
70
      !endif
14104 guerimand 71
      !form reply
72
        <input type="hidden" name="job" value="moveto">
73
        <input type="hidden" name="movesource" value="$i">
74
        <input type="submit" value="$(seriesaction[4])">
14113 guerimand 75
        !let movetarget=$[$i+1]
76
        !formselect movetarget from 1 to $[$exocnt+1]
14104 guerimand 77
      !formend
4864 bpr 78
    !endif
14107 guerimand 79
    </td>
12314 bpr 80
  !endif
1533 guerimand 81
  </tr>
12314 bpr 82
!next i
12656 obado 83
</tbody>
1533 guerimand 84
$table_end