增加poll统计结果的显示

sw_new_course
sw 10 years ago
parent 1bba235ca0
commit 25b3772520

@ -1,16 +1,20 @@
<div class="ur_table_result">
<table border="0" cellspacing="0" cellpadding="0" >
<table border="0" cellspacing="0" cellpadding="0" class="full_width">
<tbody>
<tr class="table_bluebg">
<td class="td327" ><%= l(:label_answer) %> </td>
<td class="td_full"><%= l(:label_answer) %> </td>
</tr>
<% poll_question.poll_votes.each do |poll_vote| %>
<tr>
<td class="td111"><%= poll_vote.vote_text.html_safe %> </td>
<td class="td_full"><%= poll_vote.vote_text.html_safe %> </td>
</tr>
<% end %>
<tr class="table_bluebg">
<td class="td327"><%= l(:label_poll_answer_valid_result) %> <%= l(:label_answer_total) %><%= poll_question.poll_votes.count %></td>
<td class="td_full">
<%= l(:label_poll_answer_valid_result) %>
<%= l(:label_answer_total) %>
<%= poll_question.poll_votes.count %>
</td>
</tr>
</tbody>
</table>

@ -1,13 +1,4 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
<%= l(:label_poll_result) %>
</title>
<%= stylesheet_link_tag 'polls', :media => 'all' %>
</head>
<body>
<div class="polls_content polls_box" id="polls">
<div class="ur_page_head" >
<h1 class="ur_page_title">
@ -17,7 +8,7 @@
</div>
<div>
<% @poll_questions.each do |poll_question| %>
<ol style="margin-left: -40px;">
<ol>
<li class="ur_question_item">
<div class="ur_title_result">
<span class="title_index">
@ -42,5 +33,3 @@
<div class="cl"></div>
</div>
</div>
</body>
</html>

@ -52,6 +52,8 @@ a:hover.ur_button{ background:#0fa9bb; text-decoration:none;}
.ur_table_result tr td{ border-left:1px solid #cbcbcb;border-top:1px solid #cbcbcb; height:20px;}
.table_bluebg{ background:#e9f1f6; color:#2f3a40; height:24px;}
.td327{ width:300px; padding-left:5px;}
.full_width{width:100%;}
.td_full{ width:100%; padding-left:5px;}
.td42{ width:42px; text-align:center;}
.td287{ width:259px;padding-left:5px; }
.Bar{ position: relative; width: 120px; border: 1px solid #cbcbcb; float:left; height:10px; margin-top:5px; margin-right:3px; }

Loading…
Cancel
Save