|
|
@ -1,21 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class="ur_table_result">
|
|
|
|
<div class="ur_table_result">
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0" >
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0" >
|
|
|
|
<tbody>
|
|
|
|
<tbody>
|
|
|
|
<tr class="table_bluebg">
|
|
|
|
<tr class="table_bluebg">
|
|
|
|
<td class="td327">选项 </td>
|
|
|
|
<td class="td327"><%= l(:label_poll_options) %> </td>
|
|
|
|
<td class="td42">小计 </td>
|
|
|
|
<td class="td42"><%= l(:label_poll_subtotal) %> </td>
|
|
|
|
<td class="td287">比例 </td>
|
|
|
|
<td class="td287"><%= l(:label_poll_proportion) %> </td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<% poll_question.poll_answers.each do |poll_answer| %>
|
|
|
|
<% poll_question.poll_answers.each do |poll_answer| %>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="td327"><%= poll_answer.answer_text %> </td>
|
|
|
|
<td class="td327"><%= poll_answer.answer_text %> </td>
|
|
|
|
<td class="td42"><% poll_answer.poll_votes.count %> </td>
|
|
|
|
<td class="td42"><%= poll_answer.poll_votes.count %> </td>
|
|
|
|
<td class="td287"><div class="Bar"><span style="width:75%;"></span></div> 75% </td>
|
|
|
|
<td class="td287">
|
|
|
|
|
|
|
|
<div class="Bar">
|
|
|
|
|
|
|
|
<span style="width:<%= statistics_result_percentage(poll_answer.poll_votes.count, @poll.users.count) %>%;" id="choice_percentage_<%= poll_answer.id %>"></span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= statistics_result_percentage(poll_answer.poll_votes.count, @poll.users.count) %>%</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<tr class="table_bluebg">
|
|
|
|
<tr class="table_bluebg">
|
|
|
|
<td class="td327">本题有效填写人次 </td>
|
|
|
|
<td class="td327"><%= l(:label_poll_valid_commit) %> </td>
|
|
|
|
<td class="td42"><%= poll_question.poll_votes.count %></td>
|
|
|
|
<td class="td42"><%= poll_question.poll_votes.count %></td>
|
|
|
|
<td class="td287"> </td>
|
|
|
|
<td class="td287"> </td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|