Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
23 reyssat 1
!if $job=print
12476 bpr 2
  !changeto print.phtml
23 reyssat 3
!endif
4
 
14441 guerimand 5
!if $public!=P and $error=$empty
12476 bpr 6
  !changeto class.phtml
23 reyssat 7
!endif
2247 bpr 8
!if $(module_title_$modu_lang)!=
12476 bpr 9
  !set module_title=$(module_title_$modu_lang)
2247 bpr 10
!endif
23 reyssat 11
 
12
!header
15427 obado 13
<!-- adm/sheet/main.phtml START -->
23 reyssat 14
!if $error!=$empty
12476 bpr 15
  <div class="wims_msg alert">
12654 obado 16
    !read lang/msg.phtml.$modu_lang
12476 bpr 17
  </div>
18
  !tail
19
  !exit
23 reyssat 20
!endif
21
 
22
!if $wims_user=supervisor and $job=raw
12476 bpr 23
  <p id="textsource">$name_textsource</p>
17170 bpr 24
  <hr>
12476 bpr 25
  <pre>
26
  !sh awk 'BEGIN {a=0};\
27
        /^:/ {a=1};\
28
        a==1 {print}' bases/sheet/$sh.def
29
  </pre>
17170 bpr 30
  <hr>
1766 bpr 31
 
12476 bpr 32
  !set wims_menu_items=!append line participantview,1,cmd=resume&job=read \
33
  to $wims_menu_items
1766 bpr 34
 
12476 bpr 35
  !tail
36
  !exit
23 reyssat 37
!endif
38
 
1924 bpr 39
!set intro=!record 0 of $data
40
!set dur=!words2items $(intro[3;])
41
!distribute items $dur into duration,year
5195 guerimand 42
!if ? notin $duration
12476 bpr 43
  !let duration=- $name_duration $duration mn
5195 guerimand 44
!else
12476 bpr 45
  !let duration=$empty
5195 guerimand 46
!endif
1924 bpr 47
!read adm/title.phtml 3\
48
$sheet_title\
12654 obado 49
$name_level : $(name_wims_level_$(intro[5;])) $duration - $year\
1924 bpr 50
 
14374 obado 51
<div class="wims_content">
52
  <div class="wims_sheet_desc">$sheet_desc</div>
53
  <div class="wims_credits">$(intro[8;])</div>
23 reyssat 54
 
14374 obado 55
  !if $n=0
56
    $name_sheetempty
57
  !else
58
    <div class="wims_sheet">
59
      <div class="wims_title_seq">$wims_name_Exercices</div>
60
      <ol class="wims_sheet_list">
61
      !for i=1 to $n
62
        !set ex=!record $i of $data
63
        !distribute lines $ex into di,pa,require,we,ti,de
64
        !set got=!word $i of $scores
65
        !set mean=!word $i of $means
66
        !if .___ isin $(ti)___
67
          !set ti=!replace internal .___ by in $(ti)___
68
        !endif
69
        <li class="wims_exo_item">
70
          !href module=$di&cmd=new&worksheet=$public$shn&$pa $ti
71
          !if $de notsametext $empty
12654 obado 72
, $de
14374 obado 73
          !else
12476 bpr 74
.
14374 obado 75
          !endif
76
        </li>
77
      !next i
78
      </ol>
79
    </div>
80
    !if $wims_user=supervisor
81
      !set wims_menu_items=!append line import,1,cmd=reply&job=import \
82
      sheetsource,1,cmd=reply&job=raw\
83
      to $wims_menu_items
84
    !endif
7101 bpr 85
  !endif
14374 obado 86
</div>
16937 bpr 87
!reset latexuser printlatex
1336 bpr 88
!set wims_menu_items=!append line printable,1,cmd=reply&job=print\
89
to $wims_menu_items
5648 obado 90
<!-- adm/sheet/main.phtml END -->
91
 
23 reyssat 92
!tail