Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
1479 bpr 1
!!##!! language independant
1319 guerimand 2
!if $job2=print and $job isitemof todo,work
3
 !changeto print$job.phtml
4
!endif
2790 guerimand 5
!if $job=modpalier
6
 !let js=!record 0 of js/chooselist.js
7
 !let wims_html_header=!append line $js to $wims_html_header
8
!endif
4527 bpr 9
!read adm/css.phtml
1326 bpr 10
!header1
5956 bpr 11
<script type="text/javascript" src="scripts/js/wz_tooltip.js"></script>\
1319 guerimand 12
 
2051 guerimand 13
!if $cmd=help
14
 !changeto help.phtml
15
!endif
1319 guerimand 16
 
17
!headmenu
18
 
3212 guerimand 19
!if $error!=$empty
10228 bpr 20
 <div class="wims_msg alert">
5874 bpr 21
 !read lang/msg.phtml.$moduclass_lang  $error
22
 </div>
3212 guerimand 23
 !reset job
12359 guerimand 24
 !if $wims_class=$empty
25
  !tail
26
  !exit
27
 !endif
1319 guerimand 28
!endif
29
 
30
!read $job.phtml
31
 
32
!if $wims_user=supervisor
1400 guerimand 33
 !if config notin $job
12053 bpr 34
  !set wims_menu_items=!append line configb,1,cmd=renew&job=config to $wims_menu_items
1400 guerimand 35
 !endif
3212 guerimand 36
 !if save notin $job
37
  !set wims_menu_items=!append line save,1,cmd=renew&job=save to $wims_menu_items
38
 !endif
39
 !if $livret_nbcomp<$maxcomp
12044 bpr 40
  !set wims_menu_items=!append line add_competence,1,cmd=renew&job=addcomp&comp=$[$livret_nbcomp+1]\
41
to $wims_menu_items
3212 guerimand 42
 !endif
12053 bpr 43
 !set wims_menu_items=!append line refresh,1,cmd=reply\
9351 bpr 44
to $wims_menu_items
45
 !reset parmuser1 parmuser3
46
 !if $user!=$empty and $job!=userlist
47
    !set parmuser1=&job=getuser&getuser=$user
48
    !set parmuser3=&job=userprop&getuser=$user
49
    !set parmuser4=&job=exobyday&user=$user
50
    !set sc=scores
51
    !set ac=activity1
12044 bpr 52
    !set acc=account
9351 bpr 53
 !else
54
    !set sc=Score1
55
    !set ac=activity
12044 bpr 56
    !set acc=usermanage
9351 bpr 57
 !endif
12053 bpr 58
 !set wims_menu_items=!append line itemsep,0,$wims_name_manage\
12044 bpr 59
 $acc,1,module=adm/class/usermanage$parmuser3\
12053 bpr 60
 itemsep,0,$wims_name_Evaluation\
9351 bpr 61
 $sc,1,cmd=new&module=adm/class/userscore$parmuser1\
62
 $ac,1,cmd=new&module=adm/class/activity$parmuser4\
63
 to $wims_menu_items
1400 guerimand 64
!endif
9351 bpr 65
 
2031 bpr 66
!if $wims_user=supervisor
9351 bpr 67
  !if userlist notin $job
12053 bpr 68
    !set wims_menu_items=!append line livret,1,cmd=renew&job=userlist\
2031 bpr 69
to $wims_menu_items
12044 bpr 70
    !if $user!=$empty
71
      !set wims_menu_items=!append line usermanage,1,cmd=new&module=adm/class/usermanage\
72
to $wims_menu_items
73
    !endif
9571 guerimand 74
  !endif
2031 bpr 75
!else
9031 guerimand 76
  !set wims_menu_items=!append line myscore,1,cmd=new&module=adm/class/userscore\
2031 bpr 77
to $wims_menu_items
78
!endif
1400 guerimand 79
 
1319 guerimand 80
!tail