Rev 4144 | Rev 5850 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4144 | Rev 4186 | ||
---|---|---|---|
Line 14... | Line 14... | ||
14 | !endif |
14 | !endif |
15 | !endif |
15 | !endif |
16 | $name_class_vote |
16 | $name_class_vote |
17 | $table_header |
17 | $table_header |
18 | $table_tr<th>$wims_name_title</th><th>$name_cnt_votes</th> |
18 | $table_tr<th>$wims_name_title</th><th>$name_cnt_votes</th> |
- | 19 | <th>$wims_name_Status</th> |
|
- | 20 | !if $wims_user=supercvisor |
|
19 |
|
21 | <th>$wims_name_action</th> |
- | 22 | !endif |
|
- | 23 | </tr> |
|
20 | !for t=1 to $votecnt |
24 | !for t=1 to $votecnt |
21 | !set l_=!record $t of $votedir/.votes |
25 | !set l_=!record $t of $votedir/.votes |
22 | !distribute lines $l_ into vote_status,vote_title,vote_option,vote_show,vote_whovoteshow |
26 | !distribute lines $l_ into vote_status,vote_title,vote_option,vote_show,vote_whovoteshow |
23 | !default vote_title=$name_untitled |
27 | !default vote_title=$name_untitled |
24 | !set vcnt=!defof vcnt in $votedir/$t.votes |
28 | !set vcnt=!defof vcnt in $votedir/$t.votes |
25 | !default vcnt=0 |
29 | !default vcnt=0 |
26 | !if $wims_user!=supervisor |
30 | !if $wims_user!=supervisor |
27 | !if $vote_status iswordof 1 2 |
31 | !if $vote_status iswordof 1 2 |
28 | $table_tr |
32 | $table_tr |
- | 33 | <td> |
|
29 | !href cmd=reply&job=read&vote=$t $vote_title |
34 | !href cmd=reply&job=read&vote=$t $vote_title |
30 | </ |
35 | </td> |
31 | !if $vote_show>0 |
36 | !if $vote_show>0 |
32 | <td align="center">$vcnt</td> |
37 | <td align="center">$vcnt</td> |
33 | <td>$(name_$vote_status), $(name_$vote_option) |
38 | <td>$(name_$vote_status), $(name_$vote_option) |
34 | !else |
39 | !else |
35 | <td> </td> |
40 | <td> </td> |
36 | <td>$(name_$vote_status), $(name_$vote_option)</td> |
41 | <td>$(name_$vote_status), $(name_$vote_option)</td> |
37 | !endif |
42 | !endif |
38 |
|
43 | </tr> |
39 | !endif |
44 | !endif |
40 | !else |
45 | !else |
41 | $table_tr<td> |
46 | $table_tr<td> |
42 | $vote_title |
47 | $vote_title |
43 | </td> |
48 | </td> |
44 | <td align="center">$vcnt</td> |
49 | <td align="center">$vcnt</td> |
45 | <td><small>$(name_$vote_status), $(name_$vote_option)</small> |
50 | <td><small>$(name_$vote_status), $(name_$vote_option)</small> |
46 | </td><td> |
51 | </td><td> |
- | 52 | !set wims_ref_class=wims_button |
|
47 | !href cmd=reply&job=read&vote=$t $wims_name_Show |
53 | !href cmd=reply&job=read&vote=$t $wims_name_Show |
48 | |
54 | |
- | 55 | !set wims_ref_class=wims_button |
|
49 | !href cmd=reply&job=edit&vote=$t $wims_name_change |
56 | !href cmd=reply&job=edit&vote=$t $wims_name_change |
50 | |
57 | |
- | 58 | !set wims_ref_class=wims_button |
|
51 | !href cmd=reply&job=csv&vote=$t $wims_name_csv |
59 | !href cmd=reply&job=csv&vote=$t $wims_name_csv |
52 | !if vote_show=1 or $wims_user=supervisor |
60 | !if vote_show=1 or $wims_user=supervisor |
53 | |
61 | |
54 | !set wims_ref_class=wims_button |
62 | !set wims_ref_class=wims_button |
55 | !href cmd=reply&job=showresult&vote=$t $name_showresult |
63 | !href cmd=reply&job=showresult&vote=$t $name_showresult |