Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
9405 bpr 1
limitpart=10
2
!default maxday=365
2368 bpr 3
!read adm/class/classlang names.phtml
232 bpr 4
 
17153 guerimand 5
wims_prefix=class user tmp n sharing sharable wtime
232 bpr 6
!read tabletheme
7
!if $wims_user!=supervisor
12950 guerimand 8
  user=$wims_user
232 bpr 9
!endif
9928 guerimand 10
 
12950 guerimand 11
!if $wims_user=supervisor
12
  !read adm/vfilter/listvarfilter.proc
13
  !read adm/vfilter/varfilter proc
14
  !if $varfilterclear!=$empty
15
    !reset varfilterclear,status
16
  !endif
17153 guerimand 17
  !bound job within activity,useractivity,workingtime,cfwtime default activity
12950 guerimand 18
!else
16903 guerimand 19
  !bound job within useractivity,workingtime default useractivity
9546 guerimand 20
!endif
9500 bpr 21
 
17819 lemaire 22
!if $job=workingtime 
23
  !! job not allowed in an open class
24
  !if $wims_superclass=$empty
25
    sclass=$wims_class
26
  !else
27
    sclass=$wims_superclass
28
  !endif
29
  !if $wims_class!=$empty and $sclass<10000
30
    error=closedmodexcls
31
    notallowed=1
32
    !exit
33
  !endif
34
!endif
35
 
17153 guerimand 36
!if $job=workingtime or $job=cfwtime
17322 guerimand 37
  !! for list of months in variable months
38
  !read adm/date.phtml
17153 guerimand 39
  !read wimshome/log/classes/$wims_class/.def
40
  !bound wtime_subval between 1 and 30 default 15
41
  !bound wtime_open within 1,0 default 0
42
  !bound wtime_nbsub between 3 and 10 default 4
43
  ltcolor=#FFFFFF,#4682B4,#B0C4DE,#B0E0E6,#ADD8E6,#87CEEB,#87CEFA,#00BFFF,#6495ED,#1E90FF,#0000FF
44
  wtime_ltcolor=!item 1 to $[$wtime_nbsub+1] of $wtime_ltcolor
45
  !default wtime_ltcolor=#FFFFFF
46
  nb=!itemcnt $wtime_ltcolor
47
  !ifval $nb<$wtime_nbsub+1
48
    tmp=!item $[-($wtime_nbsub+1-$nb)] to -1 of $ltcolor
49
    wtime_ltcolor=!append item $tmp to $wtime_ltcolor
50
  !endif
51
  !if $wtime_open=0
52
    !if $wims_user=supervisor
53
      job=cfwtime
54
    !else
55
      error=notopen
56
      notallowed=1
57
      !exit
58
    !endif
59
  !endif
60
!endif
12947 guerimand 61
 
62
!read $job.proc
63