Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
2177 bpr 1
 
16903 guerimand 2
!readproc lang/names.phtml.$moduclass_lang
4039 bpr 3
!read adm/class/classname.phtml $wims_classname\
4018 bpr 4
$wims_institutionname
16903 guerimand 5
!if $job_title=$empty
6
  !set module_title_lang=!module title_$lang
7
  !default module_title_lang=$module_title
8
!else
9
  !set module_title_lang=$job_title
10
!endif
1170 bpr 11
!read adm/css.phtml
232 bpr 12
!if $cmd=help
12488 bpr 13
  !header
14
  !changeto help.phtml
232 bpr 15
!endif
13495 obado 16
!set js=<script src="scripts/js/chooselist.js"></script>
9353 bpr 17
!set wims_html_header=!append line $js to $wims_html_header
9355 bpr 18
!set wims_html_header=!append line \
14732 bpr 19
<style>\
9355 bpr 20
.activity_title { text-align:left; font-weight:bold; font-style:italic;}\
21
</style>\
22
to $wims_html_header
1051 bpr 23
!header1
1336 bpr 24
!read adm/title.phtml 1\
4018 bpr 25
$classname\
10085 bpr 26
$(module_title_lang)
12947 guerimand 27
 
16903 guerimand 28
 
232 bpr 29
!if $error!=$empty
12488 bpr 30
  <div class="wims_msg alert">
16903 guerimand 31
    <strong>$wims_name_Error:</strong>
32
    !read msg.phtml $error
33
    !reset error
12488 bpr 34
  </div>
16903 guerimand 35
  !if $notallowed=1
36
    !goto end
37
  !endif
38
!else
39
  !if $success!=$empty
40
    <div class="wims_msg success">
41
      !read msg.phtml $success
42
      !reset success
43
    </div>
44
  !endif
45
  !if $warning!=$empty
46
    <div class="wims_msg warning">
47
      !read msg.phtml $warning
48
      !reset warning
49
    </div>
50
  !endif
232 bpr 51
!endif
52
 
12947 guerimand 53
!read $job.phtml
232 bpr 54
 
55
:end
9353 bpr 56
!reset parmuser1 parmuser2
16891 guerimand 57
!if $user!=$empty and $wims_user=supervisor
12488 bpr 58
  !set parmuser1=&job=getuser&getuser=$user
59
  !set parmuser2=&job=user&user=$user
60
  !distribute items scores,livret1 into sc,li
9353 bpr 61
!else
12488 bpr 62
  !distribute items Score1,livret into sc,li
9353 bpr 63
!endif
17153 guerimand 64
!if $wims_user=supervisor and $job=workingtime
65
!set wims_menu_items=!append line config,1,module=adm/class/activity&job=cfwtime to $wims_menu_items
66
!endif
16891 guerimand 67
!set wims_menu_items=!append line itemsep,0,$wims_name_Evaluation\
10081 bpr 68
$sc,1,module=adm/class/userscore$parmuser1\
9353 bpr 69
$li,1,module=adm/class/livret$parmuser2\
9115 bpr 70
 to $wims_menu_items
16903 guerimand 71
 !if $job!=workingtime
72
   !set wims_menu_items=!append line workingtime,1,module=adm/class/activity&+job=workingtime&+user=$user to $wims_menu_items
73
 !endif
16891 guerimand 74
 !if $status=OK
75
   !set wims_menu_items=!append line itemsep,0,\
76
back2,1,module=adm/class/activity\
77
to $wims_menu_items
78
 !endif
79
 
232 bpr 80
!tail
81
 
82
!reset show