[% USE Math %] [% c.load_once("jquery.ui/themes/flora/flora.all.css") %]
[% poll.title %] By [% poll.author.nickname %]
[% INCLUDE include/user_profile.html user = poll.author %] [% IF can_vote %]
[% END %]
[%# bar color, from 1 .. 10 %] [% bar_color = 1 %] [% FOREACH option IN poll.options %] [% bar_color = bar_color + 1;IF bar_color > 10; bar_color = 1; END;%] [% END %]
[% IF can_vote %] [% IF poll.multi == 1 %] [% input_type = 'checkbox' %] [% ELSE %] [% input_type = 'radio' %] [% END %] [% END %] [% option.text %] [% IF poll.vote_no %] [% bar_width = ( option.vote_no / poll.vote_no ) * 160 %] [% bar_width = Math.int(bar_width) %] ([% option.vote_no %]/[% poll.vote_no %]) [% END %]
[% IF can_vote %]
[% END %]
[% INCLUDE comment/show.html %]
[% INCLUDE comment/post.html %] [% IF can_vote %] [% c.load_once("jquery/form.js") %] [% END %]