Rev 17639 | Rev 17780 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 17639 | Rev 17642 | ||
---|---|---|---|
Line 41... | Line 41... | ||
41 | lpara_type=1,1,3,1,3 |
41 | lpara_type=1,1,3,1,3 |
42 | 42 | ||
43 | !! end configure of applets for type=3 |
43 | !! end configure of applets for type=3 |
44 | 44 | ||
45 | nbztype=!itemcnt $listfilename_ztype |
45 | nbztype=!itemcnt $listfilename_ztype |
46 | - | ||
47 | !if $type=2 |
- | |
48 | showstudlist=yes |
- | |
49 | !else |
- | |
50 | showstudlist=no |
- | |
51 | !endif |
- | |
52 | 46 | ||
53 | !! check access |
47 | !! check access |
54 | !if $statutfreework!=open |
48 | !if $statutfreework!=open |
55 | error=notallowedmodule |
49 | error=notallowedmodule |
56 | notallowed=1 |
50 | notallowed=1 |
Line 71... | Line 65... | ||
71 | desc_limit=2000 |
65 | desc_limit=2000 |
72 | textezone_limit=10000 |
66 | textezone_limit=10000 |
73 | fw_nbline=12 |
67 | fw_nbline=12 |
74 | 68 | ||
75 | !if $cmd=help |
69 | !if $cmd=help |
76 | !exit |
70 | !exit |
77 | !endif |
71 | !endif |
78 | 72 | ||
79 | !! initializing counter for opening file in popup window |
73 | !! initializing counter for opening file in popup window |
80 | windowfilenumber=0 |
74 | windowfilenumber=0 |
81 | 75 | ||
82 | !if $class_expiration=$empty |
76 | !if $class_expiration=$empty |
83 | !defread wimshome/log/classes/$wims_class/.def |
77 | !defread wimshome/log/classes/$wims_class/.def |
84 | !if $wims_superclass!=$empty |
78 | !if $wims_superclass!=$empty |
85 | class_expiration=!defof class_expiration in wimshome/log/classes/$wims_superclass/.def |
79 | class_expiration=!defof class_expiration in wimshome/log/classes/$wims_superclass/.def |
86 | !endif |
80 | !endif |
87 | !endif |
81 | !endif |
88 | 82 | ||
89 | !if $class_expiration=$empty |
83 | !if $class_expiration=$empty |
90 | error=bad_class |
84 | error=bad_class |
91 | !exit |
85 | !exit |
92 | !endif |
86 | !endif |
93 | 87 | ||
94 | jquery_defined=!defof jquery_defined in wimshome/public_html/themes/$class_theme/header.phtml |
88 | jquery_defined=!defof jquery_defined in wimshome/public_html/themes/$class_theme/header.phtml |
95 | 89 | ||
96 | !if $cmd=resume and $jquery_defined!=yes |
90 | !if $cmd=resume and $jquery_defined!=yes |
97 | !for k in infoshow1,infoshow2 |
91 | !for k in infoshow1,infoshow2 |
Line 102... | Line 96... | ||
102 | !endif |
96 | !endif |
103 | !next k |
97 | !next k |
104 | !endif |
98 | !endif |
105 | 99 | ||
106 | !! ------ check job function of user right |
100 | !! ------ check job function of user right |
107 | !if $wims_user=supervisor |
101 | !if $wims_user=supervisor |
108 | listjob=configfw,prep_activate,expire,hide,reactivate,deactivate,prep_erase,uploadco,\ |
102 | listjob=configfw,prep_activate,expire,hide,reactivate,deactivate,prep_erase,uploadco,\ |
109 | savescore,viewuser3,uploadco3,archive,student,exocheck,addexo,directexo,delexo,remark3,duplicate |
103 | savescore,viewuser3,uploadco3,archive,student,exocheck,addexo,directexo,delexo,remark3,duplicate |
110 | defjob=configfw |
104 | defjob=configfw |
111 | !else |
105 | !else |
112 | listjob=student,exolog,exocheck,directexo |
106 | listjob=student,exolog,exocheck,directexo |
Line 117... | Line 111... | ||
117 | today=!char 1 to 8 of $wims_now |
111 | today=!char 1 to 8 of $wims_now |
118 | !! --------- read general data of the freework |
112 | !! --------- read general data of the freework |
119 | nbfreework=!recordcnt wimshome/log/classes/$wims_class/freeworks/.freeworks |
113 | nbfreework=!recordcnt wimshome/log/classes/$wims_class/freeworks/.freeworks |
120 | !if $job=addexo |
114 | !if $job=addexo |
121 | !changeto $job.proc |
115 | !changeto $job.proc |
122 | !endif |
116 | !endif |
123 | !if $wims_user=supervisor |
117 | !if $wims_user=supervisor |
124 | !if $job=configfw |
118 | !if $job=configfw |
125 | !bound freework between 1 and $[$nbfreework+1] default $[$nbfreework+1] |
119 | !bound freework between 1 and $[$nbfreework+1] default $[$nbfreework+1] |
126 | !else |
120 | !else |
127 | !bound freework between 1 and $nbfreework default 1 |
121 | !bound freework between 1 and $nbfreework default 1 |
128 | !endif |
122 | !endif |
129 | !else |
123 | !else |
130 | !reset save |
124 | !reset save |
131 | !bound freework between 1 and $nbfreework default 1 |
125 | !bound freework between 1 and $nbfreework default 1 |
132 | !endif |
126 | !endif |
133 | !if $freework>$max_freeworks |
127 | !if $freework>$max_freeworks |
134 | error=bad_maxfreework |
128 | error=bad_maxfreework |
135 | !exit |
129 | !exit |
136 | !endif |
130 | !endif |
137 | 131 | ||
138 | !! -------- make manual score index |
132 | !! -------- make manual score index |
139 | uucnt=!recordcnt wimshome/log/classes/$wims_class/.grades |
133 | uucnt=!recordcnt wimshome/log/classes/$wims_class/.grades |
140 | !if $uucnt>0 |
134 | !if $uucnt>0 |
141 | !! --- check for column for score |
135 | !! --- check for column for score |
142 | tmp=!record 1 of wimshome/log/classes/$wims_class/.grades |
136 | tmp=!record 1 of wimshome/log/classes/$wims_class/.grades |
Line 163... | Line 157... | ||
163 | !distribute item $t into $val,time$val |
157 | !distribute item $t into $val,time$val |
164 | !default $val=$today |
158 | !default $val=$today |
165 | !default time$val=00:00 |
159 | !default time$val=00:00 |
166 | !next val |
160 | !next val |
167 | !bound activetest between 0 and 3 |
161 | !bound activetest between 0 and 3 |
- | 162 | !endif |
|
- | 163 | ||
- | 164 | !if $type=2 |
|
- | 165 | showstudlist=yes |
|
- | 166 | !else |
|
- | 167 | showstudlist=no |
|
168 | !endif |
168 | !endif |
169 | 169 | ||
170 | !if $freework>$nbfreework |
170 | !if $freework>$nbfreework |
171 | !default deadline=$today |
171 | !default deadline=$today |
172 | !default timedeadline=00:00 |
172 | !default timedeadline=00:00 |