Subversion Repositories wimsdev

Rev

Rev 16395 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
18434 bpr 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
16395 obado 17
      <th
16387 guerimand 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
18434 bpr 29
  !set testdep=!getdef deprecated in wimshome/public_html/modules/$di/INDEX
1533 guerimand 30
  $table_tr
12314 bpr 31
  <td id="td_exo_$i">$i</td>
32
  <td>
12316 bpr 33
  !if $icone!=$empty
12329 bpr 34
    !set wims_ref_class=text_icon icon_$icone
12316 bpr 35
  !endif
12314 bpr 36
  !href cmd=new&module=$di&worksheet=$sheet&$pa $ti
18434 bpr 37
  !if $testdep=yes
38
    (deprecated)
39
  !endif
12314 bpr 40
  </td>
41
  <td>$de</td>
15885 guerimand 42
  !if $activetest>0
43
    <td>
44
      !getscorerequire sheet=$sheet work=$i
45
    </td>
46
    <td>
47
      !getscoreweight sheet=$sheet work=$i
48
    </td>
49
  !else
50
    <td>
15910 guerimand 51
     !row 1 of $req
15885 guerimand 52
    </td>
53
    <td>
15910 guerimand 54
     !row 1 of $weig
15885 guerimand 55
    </td>
56
  !endif
12314 bpr 57
  !set pa=!replace internal & by $ $ in $pa
58
  !reset qnum
59
  !!oef exercises
60
  !set qnum=!getopt qnum in $pa
61
  !if $qnum=
14129 bpr 62
    !!J.E. exercises
12314 bpr 63
    !set qnum=!getopt total_exos in $pa
64
  !endif
11152 bpr 65
   <td>$qnum</td>
1533 guerimand 66
   <td>
12314 bpr 67
  !if $dep!=$empty
14129 bpr 68
    $dep
69
  !else
70
    $
12314 bpr 71
  !endif
1533 guerimand 72
   </td>
1969 guerimand 73
   <td>$com</td>
14646 bpr 74
  !set feedbr=!rows2lines $feed
75
  !set feedbr=!replace internal $\
76
$ by </li><li> in <ul><li>$feedbr</li></ul>
77
   <td style="text-align:left" class="small">
78
  !if $feed!=$empty
79
      $feedbr
80
  !endif
81
  </td>
12314 bpr 82
  !if $activetest>=0
13824 bpr 83
    <td>
3066 bpr 84
    !set wims_ref_class=wims_button
12314 bpr 85
    !href cmd=reply&job=prep_modify&modif=$i $(seriesaction[1])
4864 bpr 86
    !if $activetest=0
12656 obado 87
      $
12314 bpr 88
      !set wims_ref_class=wims_button wims_warning
89
      !href cmd=reply&job=delete&delete=$i#list $(seriesaction[2])
16387 guerimand 90
      !if $exocnt>1
91
        </td>
92
        <td>
16388 guerimand 93
        !read adm/sheet/moveafterform.phtml $(name_shtab[11])
16387 guerimand 94
      !endif
4864 bpr 95
    !endif
14107 guerimand 96
    </td>
12314 bpr 97
  !endif
1533 guerimand 98
  </tr>
12314 bpr 99
!next i
12656 obado 100
</tbody>
1533 guerimand 101
$table_end