Rev 4010 | Rev 4144 | 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 | |
||
19 | !href cmd=reply&job=showresult&vote=$vote $name_showresult |
||
20 | !endif |
||
21 | </td> |
||
22 | </tr> |
||
23 | $table_tr<td>$name_thisvote_answer</td><td>$vcnt</td></tr> |
||
24 | $table_tr |
||
25 | <td>$name_whovote</td> |
||
26 | <td> |
||
27 | !if $vote_whovoteshow=1 |
||
28 | !let nb=!itemcnt $whovote |
||
29 | !if $nb=0 |
||
30 | $name_novotant |
||
31 | !else |
||
32 | !if $nb<=5 |
||
33 | $name_notenough |
||
34 | !else |
||
35 | $whovote |
||
36 | !endif |
||
37 | !endif |
||
38 | !else |
||
39 | $name_hide2 |
||
40 | !endif |
||
41 | </td> |
||
42 | </tr> |
||
43 | $table_end |
||
23 | reyssat | 44 | |
45 | !if $wims_user=supervisor |
||
4142 | guerimand | 46 | !if $wims_theme!=standard |
47 | !href cmd=reply&job=edit $wims_name_change |
||
217 | bpr | 48 | |
4142 | guerimand | 49 | !href cmd=reply&job=csv $wims_name_csv |
2150 | guerimand | 50 | <p> |
4142 | guerimand | 51 | !endif |
52 | !set wims_menu_items=!append line change,1,cmd=reply&job=edit\ |
||
53 | csv,1,cmd=reply&job=csv\ |
||
54 | to $wims_menu_items |
||
2150 | guerimand | 55 | !endif |
56 | |||
23 | reyssat | 57 | !if $vote_status=2 |
333 | bpr | 58 | !read $votedir/$vote.def |
59 | !goto comments |
||
23 | reyssat | 60 | !endif |
61 | |||
62 | !if $(user_vote_$Vote)!=$empty |
||
217 | bpr | 63 | !if $vote_option!=nominative |
2137 | bpr | 64 | $name_thisvote_already1<p> |
4142 | guerimand | 65 | !goto end |
23 | reyssat | 66 | !else |
2137 | bpr | 67 | $name_thisvote_already2<p> |
23 | reyssat | 68 | !goto form |
69 | !endif |
||
70 | !else |
||
2137 | bpr | 71 | $name_give_your_choice<p> |
23 | reyssat | 72 | :form |
4142 | guerimand | 73 | !if $wims_user!=supervisor |
74 | !form reply |
||
75 | <input type=hidden name="job" value=vote> |
||
76 | !set m_formed=yes |
||
77 | !endif |
||
23 | reyssat | 78 | !endif |
79 | |||
80 | !read $votedir/$vote.def |
||
81 | |||
4142 | guerimand | 82 | !if $m_formed=yes and $wims_user!=supervisor |
23 | reyssat | 83 | <p><center> |
1509 | bpr | 84 | <input type=submit value="$wims_name_tosave"> |
23 | reyssat | 85 | </center></form> |
86 | !endif |
||
333 | bpr | 87 | |
88 | :comments |
||
4142 | guerimand | 89 | !exit |
90 | !! wait en see needed between this comment |
||
91 | |||
92 | |||
93 | |||
94 | |||
3256 | guerimand | 95 | !readdef $votedir/$vote.comments |
4142 | guerimand | 96 | |
3256 | guerimand | 97 | !if ($wims_user=supervisor or ($vote_show>0 and $m_formed!=yes)) and $vote_option!=nominative |
98 | |||
99 | <p><b>$name_comments</b> : |
||
23 | reyssat | 100 | </p><p> |
101 | !for i=1 to $parmcnt |
||
102 | !if $(type_comment$i)=yes |
||
103 | !set comment_$i = !replace internal --- by $\ |
||
217 | bpr | 104 | $<br>- in $(comment_$i) |
23 | reyssat | 105 | |
217 | bpr | 106 | $i : |
107 | $(comment_$i) |
||
576 | bpr | 108 | !set rcnt=!recordcnt $votedir/$(vote)_$i.comments |
109 | !for r_j=1 to $rcnt |
||
110 | <br>- |
||
111 | !record $r_j of $votedir/$(vote)_$i.comments |
||
112 | !next |
||
23 | reyssat | 113 | </p><p> |
114 | !endif |
||
115 | </p> |
||
116 | !next |
||
117 | !endif |
||
217 | bpr | 118 | !if $wims_user=supervisor and $vote_option!=anonymous |
2137 | bpr | 119 | <p> $name_details |
23 | reyssat | 120 | !for i=1 to $parmcnt |
121 | !for c=1 to $(choices$i) |
||
122 | !if /supervisor/ notin $c/ |
||
217 | bpr | 123 | <p>$i- |
23 | reyssat | 124 | !item $c of $(chlist$i) |
4010 | bpr | 125 | <br> <pre> |
23 | reyssat | 126 | !for u in $(votes_$(i)_$c) |
217 | bpr | 127 | !if $vote_option=nominative |
128 | !set U=!translate internal / to , in $u |
||
129 | !readproc adm/class/userdef classes,$U |
||
130 | !defof user_lastname, user_firstname in $userdef |
||
131 | ($u) |
||
333 | bpr | 132 | !else |
217 | bpr | 133 | ($u) |
333 | bpr | 134 | !endif |
217 | bpr | 135 | !next u |
4010 | bpr | 136 | </pre> |
217 | bpr | 137 | !endif |
23 | reyssat | 138 | !next c |
139 | !next i |
||
140 | !endif |
||
4142 | guerimand | 141 | |
142 | :end |
||
143 |