Subversion Repositories wimsdev

Rev

Rev 3962 | Rev 5195 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2247 bpr 1
 
23 reyssat 2
!if $job=print
3
 !changeto print.phtml
4
!endif
5
 
6
!if $public!=P
7
 !changeto class.phtml
8
!endif
2247 bpr 9
!if $(module_title_$modu_lang)!=
10
   !set module_title=$(module_title_$modu_lang)
11
!endif
23 reyssat 12
 
13
!header
14
 
15
!if $error!=$empty
2247 bpr 16
 !read lang/msg.phtml.$modu_lang
23 reyssat 17
 !tail
18
 !exit
19
!endif
20
 
21
!if $wims_user=supervisor and $job=raw
4298 obado 22
<p id="textsource">$name_textsource</p>
23
<hr/>
24
<pre>
23 reyssat 25
 !sh awk 'BEGIN {a=0};\
26
        /^:/ {a=1};\
27
        a==1 {print}' bases/sheet/$sh.def
4298 obado 28
 </pre>
29
 <hr/>
1766 bpr 30
 
31
!set wims_menu_items=!append line participantview,1,cmd=resume&job=read \
32
to $wims_menu_items
33
 
23 reyssat 34
 !tail
35
 !exit
36
!endif
37
 
1924 bpr 38
!set intro=!record 0 of $data
39
!set dur=!words2items $(intro[3;])
40
!distribute items $dur into duration,year
41
!read adm/title.phtml 3\
42
$sheet_title\
43
$name_level $(intro[5;]), $name_duration $duration mn ($year)<br>$(intro[8;])\
44
 
4298 obado 45
<div class="wims_sheet_desc">$sheet_desc</div>
46
<p id="sheet_remark">$sheet_remark</p>
23 reyssat 47
 
48
!if $n=0
3962 bpr 49
 $name_sheetempty
23 reyssat 50
!else
258 bpr 51
 <div class="wims_sheet">
3205 bpr 52
 <ul class="wims_sheet_list">
23 reyssat 53
 !for i=1 to $n
54
  !set ex=!record $i of $data
55
  !distribute lines $ex into di,pa,require,we,ti,de
56
  !set got=!word $i of $scores
57
  !set mean=!word $i of $means
3205 bpr 58
  <li class="wims_sheet_list">$i.
23 reyssat 59
  !href module=$di&cmd=new&worksheet=$public$shn&$pa $ti
60
, $de
258 bpr 61
 </li>
23 reyssat 62
 !next i
63
 </ul>
258 bpr 64
 </div>
23 reyssat 65
 !if $wims_user=supervisor
1766 bpr 66
 !set wims_menu_items=!append line import,1,cmd=reply&job=import \
67
 sheetsource,1,cmd=reply&job=raw\
68
 to $wims_menu_items
23 reyssat 69
 !endif
70
!endif
1544 bpr 71
 
1336 bpr 72
!set wims_menu_items=!append line printable,1,cmd=reply&job=print\
73
to $wims_menu_items
23 reyssat 74
 
75
!tail
76