Rev 17070 | Rev 17098 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 17070 | Rev 17097 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | !if $wims_class=$empty |
2 | !if $wims_class=$empty |
3 | !restart module=home |
3 | !restart module=home |
4 | !endif |
4 | !endif |
5 | 5 | ||
6 | !! gestion des autorisations sur les variables (securisation) |
6 | !! gestion des autorisations sur les variables (securisation) |
7 | wims_prefix=class user |
7 | wims_prefix=class user swork |
8 | 8 | ||
9 |
|
9 | !! max user in a class to activate this module (maybe can be change with test) |
10 | maxuser=50 |
10 | maxuser=50 |
11 | 11 | ||
12 | !readproc tabletheme |
12 | !readproc tabletheme |
13 | 13 | ||
14 | !! --------- gestion des jobs du module |
14 | !! --------- gestion des jobs du module |
15 | !if $wims_user=supervisor |
15 | !if $wims_user=supervisor |
16 |
|
16 | listjob=userlist,config |
17 | defjob=userlist |
17 | defjob=userlist |
18 | !else |
18 | !else |
19 | listjob=swork |
19 | listjob=swork |
20 | defjob=swork |
20 | defjob=swork |
21 | !endif |
21 | !endif |
Line 39... | Line 39... | ||
39 | wims_module_log=$job |
39 | wims_module_log=$job |
40 | 40 | ||
41 | !! lecture du fichier de langue |
41 | !! lecture du fichier de langue |
42 | !read adm/language lang/names.phtml |
42 | !read adm/language lang/names.phtml |
43 | 43 | ||
- | 44 | !! ---- read class configuration file for swork |
|
- | 45 | !read wimshome/log/classes/$wims_class/swork/.def |
|
- | 46 | !bound swork_refreshtiming between 1 and 1000 default 2 |
|
- | 47 | !bound swork_open within 1,0 default 0 |
|
- | 48 | !bound swork_allowrefresh within 1,0 default 0 |
|
- | 49 | !bound swork_nbexo between 1 and 10 default 5 |
|
- | 50 | ||
- | 51 | !if $wims_user!=supervisor and $swork_open=0 |
|
- | 52 | error=notopen |
|
- | 53 | notallowed=1 |
|
- | 54 | !exit |
|
- | 55 | !endif |
|
- | 56 | ||
- | 57 | severity=!record 0 of wimshome/log/classes/$wims_class/sheets/.severity |
|
- | 58 | formulas=!record 0 of adm/class/sheetformula |
|
44 | 59 | ||
45 | !! lecture du fichier spécifique du job appelé |
60 | !! lecture du fichier spécifique du job appelé |
46 | !changeto $job.proc |
61 | !changeto $job.proc |