Rev 5496 | Rev 5868 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4142 | guerimand | 1 | $table_header |
2 | $table_hdtr |
||
3 | <th>$name_option</th><th>$name_value</th> |
||
4 | </tr> |
||
5 | $table_tr<td>$wims_name_title</td><td>$vote_title</td></tr> |
||
6 | $table_tr<td>$wims_name_Type</td> |
||
7 | <td>$(name_$(vote_option))</td> |
||
8 | </tr> |
||
9 | $table_tr |
||
10 | <td>$wims_name_Status</td> |
||
11 | <td>$(name_$(vote_status))</td> |
||
12 | </tr> |
||
13 | $table_tr |
||
14 | <td>$name_result</td> |
||
15 | <td> |
||
16 | !item $vote_show+1 of $name_hide,$name_publish |
||
17 | !if $showres>0 |
||
18 | |
||
4251 | guerimand | 19 | !if $wims_user=supervisor or $(user_vote_$Vote)!=$empty |
20 | !set wims_ref_class=wims_button |
||
21 | !href cmd=reply&job=showresult&vote=$vote $name_showresult |
||
22 | !endif |
||
4204 | bpr | 23 | |
4229 | bpr | 24 | !if $wims_user=supervisor |
4251 | guerimand | 25 | !set wims_ref_class=wims_button |
26 | !href cmd=reply&job=csv $wims_name_csv |
||
4229 | bpr | 27 | !endif |
4142 | guerimand | 28 | !endif |
29 | </td> |
||
30 | </tr> |
||
5368 | bpr | 31 | !!## list of voting names can be print even if there is few voters |
32 | !!## in case of nominative vote |
||
33 | !if $vote_status > 0 and $vote_whovoteshow=1 |
||
4142 | guerimand | 34 | $table_tr<td>$name_thisvote_answer</td><td>$vcnt</td></tr> |
5363 | bpr | 35 | !set nbs=!itemcnt $whovote |
5368 | bpr | 36 | !if $nbs<=5 and $vote_option notwordof nominative |
37 | !!!if $vote_whovoteshow!=1 |
||
38 | !! !let aff=$name_hide2 |
||
39 | !!!else |
||
5349 | guerimand | 40 | !let aff=$name_notenough |
5368 | bpr | 41 | !!!endif |
5349 | guerimand | 42 | $table_tr |
43 | <td>$name_whovote</td> |
||
44 | <td rowspan="2">$aff</td> |
||
45 | </tr> |
||
46 | $table_tr |
||
47 | <td>$name_whodontvote</td> |
||
48 | </tr> |
||
49 | !else |
||
50 | !for ty in whovote,whodontvote |
||
51 | $table_tr |
||
52 | <td>$(name_$ty)</td> |
||
53 | <td> |
||
54 | !let nb=!itemcnt $($ty) |
||
55 | !if $nb=0 |
||
56 | $name_novotant |
||
57 | !else |
||
58 | !replace internal , by , $ in $($ty) |
||
59 | !endif |
||
60 | </td> |
||
61 | </tr> |
||
62 | !next ty |
||
63 | !endif |
||
5368 | bpr | 64 | !endif |
4142 | guerimand | 65 | $table_end |
23 | reyssat | 66 | |
67 | !if $wims_user=supervisor |
||
4142 | guerimand | 68 | !if $wims_theme!=standard |
69 | !href cmd=reply&job=edit $wims_name_change |
||
217 | bpr | 70 | |
4142 | guerimand | 71 | !href cmd=reply&job=csv $wims_name_csv |
2150 | guerimand | 72 | <p> |
4142 | guerimand | 73 | !endif |
5496 | bpr | 74 | !set wims_menu_items=!append line change,1,cmd=reply&job=edit&gstep=0\ |
4142 | guerimand | 75 | to $wims_menu_items |
2150 | guerimand | 76 | !endif |
77 | |||
23 | reyssat | 78 | !if $vote_status=2 |
333 | bpr | 79 | !read $votedir/$vote.def |
4341 | guerimand | 80 | !exit |
23 | reyssat | 81 | !endif |
82 | |||
83 | !if $(user_vote_$Vote)!=$empty |
||
217 | bpr | 84 | !if $vote_option!=nominative |
2137 | bpr | 85 | $name_thisvote_already1<p> |
4341 | guerimand | 86 | !exit |
23 | reyssat | 87 | !else |
2137 | bpr | 88 | $name_thisvote_already2<p> |
23 | reyssat | 89 | !goto form |
90 | !endif |
||
91 | !else |
||
2137 | bpr | 92 | $name_give_your_choice<p> |
23 | reyssat | 93 | :form |
4142 | guerimand | 94 | !if $wims_user!=supervisor |
95 | !form reply |
||
5734 | bpr | 96 | <input type="hidden" name="job" value="vote"/> |
4142 | guerimand | 97 | !set m_formed=yes |
98 | !endif |
||
23 | reyssat | 99 | !endif |
100 | |||
101 | !read $votedir/$vote.def |
||
102 | |||
4142 | guerimand | 103 | !if $m_formed=yes and $wims_user!=supervisor |
23 | reyssat | 104 | <p><center> |
5734 | bpr | 105 | <input type="submit" value="$wims_name_tosave"/> |
23 | reyssat | 106 | </center></form> |
107 | !endif |
||
333 | bpr | 108 | |
5496 | bpr | 109 | !if $wims_user=supervisor and $vote_status=0 |
110 | <center> |
||
111 | !form reply |
||
112 | !set wims_ref_class=wims_button |
||
113 | !href cmd=reply&job=edit $wims_name_back2 |
||
114 | </form> |
||
115 | </center> |
||
116 | !endif |
||
4142 | guerimand | 117 |