This commit is contained in:
huang 2015-01-17 14:04:20 +08:00
parent d9772ff2d0
commit 6bba6b2b76
4 changed files with 9 additions and 5 deletions

View File

@ -55,6 +55,10 @@ module PollHelper
t == 0 ? 0 : format("%.2f", e*100/t)
end
# def total_answer
# poll_question.poll_votes(distinct a.ID
# end
#
#页面体型显示
def options_show pq
case pq

View File

@ -19,7 +19,7 @@
<% end %>
<tr class="table_bluebg">
<td class="td327"><%= l(:label_poll_valid_commit) %> </td>
<td class="td42"><%= @poll.users.count %></td>
<td class="td42"><%= poll_question.poll_votes.count %></td>
<td class="td287">&nbsp; </td>
</tr>
</tbody>

View File

@ -2262,7 +2262,7 @@ zh:
label_poll_proportion: 比例
label_poll_valid_commit: 本题有效填写人次
label_poll_result: 问卷调查_问卷统计
label_answer: 答案
label_answer: 答案
label_poll_answer_valid_result: 以上为有效问答题答案!
label_answer_total: 总计:

View File

@ -65,10 +65,10 @@ a:hover.ur_button{ background:#0fa9bb; text-decoration:none;}
.ur_table_result{ color:#5d5d5d;border-right:1px solid #cbcbcb;border-bottom:1px solid #cbcbcb;}
.ur_table_result tr td{ border-left:1px solid #cbcbcb;border-top:1px solid #cbcbcb; height:20px;}
.table_bluebg{ background:#d7e5ee; color:#2f3a40; height:24px;}
.td327{ width:601px; padding-left:5px;}
.td327{ width:601px; padding-left:5px; word-break:break-all; word-wrap:break-word; }
.td42{ width:42px; text-align:center;}
.td287{ width:259px;padding-left:5px; }
.td111{ width:601px;padding-left:5px; word-break:break-all; word-wrap:break-word }
.td287{ width:259px;padding-left:5px; text-align:center; }
.td111{ width:601px;padding-left:5px; word-break:break-all; word-wrap:break-word; }
.Bar{ position: relative; width: 120px; border: 1px solid #cbcbcb; float:left; height:10px; margin-top:5px; margin-right:3px; }
.Bar span{ display: block; position: relative;background:#64badb;/* 进度条背景颜色 */ color: #333333;height: 10px; /* 高度 */ line-height: 20px; }
.ur_progress_text{ color:#3a3a3a;}