Subversion Repositories wimsdev

Rev

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

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