Rev 7443 | Rev 12479 | 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> |
||
4186 | guerimand | 19 | <th>$wims_name_Status</th> |
10102 | bpr | 20 | !if $wims_user=supervisor |
4186 | guerimand | 21 | <th>$wims_name_action</th> |
22 | !endif |
||
23 | </tr> |
||
23 | reyssat | 24 | !for t=1 to $votecnt |
25 | !set l_=!record $t of $votedir/.votes |
||
2150 | guerimand | 26 | !distribute lines $l_ into vote_status,vote_title,vote_option,vote_show,vote_whovoteshow |
1993 | bpr | 27 | !default vote_title=$name_untitled |
23 | reyssat | 28 | !set vcnt=!defof vcnt in $votedir/$t.votes |
29 | !default vcnt=0 |
||
30 | !if $wims_user!=supervisor |
||
31 | !if $vote_status iswordof 1 2 |
||
4186 | guerimand | 32 | $table_tr |
33 | <td> |
||
34 | !href cmd=reply&job=read&vote=$t $vote_title |
||
35 | </td> |
||
23 | reyssat | 36 | !if $vote_show>0 |
7443 | bpr | 37 | <td>$vcnt</td> |
1993 | bpr | 38 | <td>$(name_$vote_status), $(name_$vote_option) |
23 | reyssat | 39 | !else |
1993 | bpr | 40 | <td> </td> |
41 | <td>$(name_$vote_status), $(name_$vote_option)</td> |
||
23 | reyssat | 42 | !endif |
4186 | guerimand | 43 | </tr> |
23 | reyssat | 44 | !endif |
45 | !else |
||
1993 | bpr | 46 | $table_tr<td> |
23 | reyssat | 47 | $vote_title |
1993 | bpr | 48 | </td> |
7443 | bpr | 49 | <td>$vcnt</td> |
6146 | bpr | 50 | <td class="small">$(name_$vote_status), $(name_$vote_option) |
1993 | bpr | 51 | </td><td> |
4186 | guerimand | 52 | !set wims_ref_class=wims_button |
1993 | bpr | 53 | !href cmd=reply&job=read&vote=$t $wims_name_Show |
23 | reyssat | 54 | |
4186 | guerimand | 55 | !set wims_ref_class=wims_button |
1993 | bpr | 56 | !href cmd=reply&job=edit&vote=$t $wims_name_change |
217 | bpr | 57 | |
4186 | guerimand | 58 | !set wims_ref_class=wims_button |
1993 | bpr | 59 | !href cmd=reply&job=csv&vote=$t $wims_name_csv |
4142 | guerimand | 60 | !if vote_show=1 or $wims_user=supervisor |
61 | |
||
4144 | bpr | 62 | !set wims_ref_class=wims_button |
4142 | guerimand | 63 | !href cmd=reply&job=showresult&vote=$t $name_showresult |
64 | !endif |
||
1993 | bpr | 65 | </td> |
23 | reyssat | 66 | !endif |
5868 | bpr | 67 | </tr> |
23 | reyssat | 68 | !next t |
1993 | bpr | 69 | $table_end |
5850 | bpr | 70 | |
23 | reyssat | 71 | !endif |
72 | |||
73 | !if $wims_user=supervisor |
||
1993 | bpr | 74 | !set wims_menu_items=!append line add_vote,1,cmd=reply&job=creat\ |
1348 | bpr | 75 | to $wims_menu_items |
23 | reyssat | 76 | !endif |