Rev 12479 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12479 | Rev 15718 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | !if $vote_status=$empty or ($wims_user!=supervisor and $vote_status notwordof 1 2 ) |
3 | !if $vote_status=$empty or ($wims_user!=supervisor and $vote_status notwordof 1 2 ) |
4 | error=bad_vote |
4 | error=bad_vote |
5 | job=home |
5 | job=home |
6 | !changeto home.proc |
6 | !changeto home.proc |
7 | !endif |
7 | !endif |
8 | - | ||
9 | 8 | ||
10 | !if anonymous!=$vote_option |
9 | !if anonymous!=$vote_option |
11 | listjob2=global,list,listbystudent |
10 | listjob2=global,list,listbystudent |
12 | !if supervisor=$wims_user |
11 | !if supervisor=$wims_user |
13 | listjob2=$listjob2,studentbyitem |
12 | listjob2=$listjob2,studentbyitem |
14 | !endif |
13 | !endif |
15 | !else |
14 | !else |
16 | job2=global |
15 | job2=global |
17 | !endif |
16 | !endif |
18 | 17 | ||
19 | !bound job2 within $listjob2 default global |
18 | !bound job2 within $listjob2 default global |
20 | 19 | ||
21 | wims_multiexec=pari maxima yacas |
20 | wims_multiexec=pari maxima yacas |
22 | insmath_rawmath=yes |
21 | insmath_rawmath=yes |
23 | wims_backslash_insmath=yes |
22 | wims_backslash_insmath=yes |
24 | parmcnt=0 |
23 | parmcnt=0 |
Line 35... | Line 34... | ||
35 | 34 | ||
36 | !if $wims_user!=supervisor and $vote_show=0 |
35 | !if $wims_user!=supervisor and $vote_show=0 |
37 | job=home |
36 | job=home |
38 | !changeto home.proc |
37 | !changeto home.proc |
39 | !endif |
38 | !endif |
40 | - | ||
41 | !if $vote>0 |
39 | !if $vote>0 |
- | 40 | !if $choices1=$empty |
|
- | 41 | !readproc primitives/getlimit.proc parms |
|
- | 42 | !endif |
|
42 | !if $choices1!=$empty |
43 | !if $choices1!=$empty |
43 | noprint=yes |
44 | noprint=yes |
44 | !endif |
45 | !endif |
45 | vote_description=$empty |
46 | vote_description=$empty |
46 | !read $votedir/$vote.def |
47 | !read $votedir/$vote.def |
47 | !endif |
48 | !endif |
48 | - | ||
49 | - | ||
50 | max_rep=0 |
49 | max_rep=0 |
51 | !for k=1 to $parmcnt |
50 | !for k=1 to $parmcnt |
52 | t=!itemcnt $(vote_description[$k;]) |
51 | t=!itemcnt $(vote_description[$k;]) |
53 | max_rep=$[max($max_rep,$t-2)] |
52 | max_rep=$[max($max_rep,$t-2)] |
54 | !next k |
53 | !next k |