Rev 2254 | Rev 4144 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1993 | bpr | 1 | !!!### language independant |
23 | reyssat | 2 | !if $votecnt<1 |
3 | !if $wims_user!=supervisor |
||
1993 | bpr | 4 | $name_novote $name_novotecheck |
23 | reyssat | 5 | !exit |
6 | !else |
||
1993 | bpr | 7 | $name_novote |
23 | reyssat | 8 | !endif |
9 | !else |
||
10 | !if $wims_user!=supervisor |
||
11 | !if $active<1 |
||
1993 | bpr | 12 | $name_noactivevote $name_novotecheck |
23 | reyssat | 13 | !exit |
14 | !endif |
||
15 | !endif |
||
1993 | bpr | 16 | $name_class_vote |
17 | $table_header |
||
18 | $table_tr<th>$wims_name_title</th><th>$name_cnt_votes</th> |
||
19 | <th>$wims_name_Status</th><th>$wims_name_action</th> |
||
23 | reyssat | 20 | !for t=1 to $votecnt |
21 | !set l_=!record $t of $votedir/.votes |
||
2150 | guerimand | 22 | !distribute lines $l_ into vote_status,vote_title,vote_option,vote_show,vote_whovoteshow |
1993 | bpr | 23 | !default vote_title=$name_untitled |
23 | reyssat | 24 | !set vcnt=!defof vcnt in $votedir/$t.votes |
25 | !default vcnt=0 |
||
26 | !if $wims_user!=supervisor |
||
27 | !if $vote_status iswordof 1 2 |
||
1993 | bpr | 28 | $table_tr<td> |
23 | reyssat | 29 | !href cmd=reply&job=read&vote=$t $vote_title |
1993 | bpr | 30 | </td><td> |
23 | reyssat | 31 | !if $vote_show>0 |
1993 | bpr | 32 | <td align="center">$vcnt</td> |
33 | <td>$(name_$vote_status), $(name_$vote_option) |
||
23 | reyssat | 34 | !else |
1993 | bpr | 35 | <td> </td> |
36 | <td>$(name_$vote_status), $(name_$vote_option)</td> |
||
23 | reyssat | 37 | !endif |
1993 | bpr | 38 | </td></tr> |
23 | reyssat | 39 | !endif |
40 | !else |
||
1993 | bpr | 41 | $table_tr<td> |
23 | reyssat | 42 | $vote_title |
1993 | bpr | 43 | </td> |
44 | <td align="center">$vcnt</td> |
||
45 | <td><small>$(name_$vote_status), $(name_$vote_option)</small> |
||
46 | </td><td> |
||
47 | !href cmd=reply&job=read&vote=$t $wims_name_Show |
||
23 | reyssat | 48 | |
1993 | bpr | 49 | !href cmd=reply&job=edit&vote=$t $wims_name_change |
217 | bpr | 50 | |
1993 | bpr | 51 | !href cmd=reply&job=csv&vote=$t $wims_name_csv |
4142 | guerimand | 52 | !if vote_show=1 or $wims_user=supervisor |
53 | |
||
54 | !href cmd=reply&job=showresult&vote=$t $name_showresult |
||
55 | !endif |
||
1993 | bpr | 56 | </td> |
23 | reyssat | 57 | !endif |
58 | !next t |
||
1993 | bpr | 59 | $table_end |
60 | <p> |
||
23 | reyssat | 61 | !endif |
62 | |||
63 | !if $wims_user=supervisor |
||
1993 | bpr | 64 | !set wims_menu_items=!append line add_vote,1,cmd=reply&job=creat\ |
1348 | bpr | 65 | to $wims_menu_items |
23 | reyssat | 66 | !endif |