@ -21,25 +21,68 @@
<td style="color: red;" align="right" valign="0.1em" width="35%">
<td style="color: red;" align="right" valign="0.1em" width="35%">
<strong><span id="reward_result_<%=b_project.id%>">
<strong><span id="reward_result_<%=b_project.id%>">
<%if @bid.reward_type == 2%>
<% if get_prize(b_project).nil? or get_prize(b_project) == "" %>
<% if get_prize(b_project).nil? or get_prize(b_project) == "" %>
<% if @bid.deadline < Date.today %>
未评奖
未评奖
<% end %>
<% else %>
<% else %>
<% case @bid.reward_type %>
<% when 1 %>
<% case get_prize(b_project) %>
<% when '6' %>
<%= image_tag("/images/bid/win_bid.png")%>
<% when '7' %>
<%= image_tag("/images/bid/candidate.png")%>
<% when '8' %>
<%= image_tag("/images/bid/obsolete.png")%>
<% end %>
<% when 2 %>
<% case get_prize(b_project) %>
<% case get_prize(b_project) %>
<% when '0' %>
<% when '0' %>
<%= image_tag("/images/bid/first_reward.png")%>
<%= image_tag("/images/bid/first_reward.png")%>
<% when '1' %>
<% when '1' %>
<%= image_tag("/images/bid/second_reward.png")%>
<%= image_tag("/images/bid/second_reward.png")%>
<% when '2' %>
<% when '2' %>
<%= image_tag("/images/bid/third_reward.png")%>
<% when '3' %>
<%= image_tag("/images/bid/forth_reward.png")%>
<% when '4' %>
<%= image_tag("/images/bid/fifth_reward.png")%>
<% when '5' %>
<%= image_tag("/images/bid/qualified.png")%>
<%= image_tag("/images/bid/qualified.png")%>
<% end %>
<% end %>
<% when 3 %>
<% case get_prize(b_project) %>
<% when '10' %>
<%= image_tag("/images/bid/A.jpg")%>
<% when '11' %>
<%= image_tag("/images/bid/B+.jpg")%>
<% when '12' %>
<%= image_tag("/images/bid/B.jpg")%>
<% when '13' %>
<%= image_tag("/images/bid/C+.jpg")%>
<% when '14' %>
<%= image_tag("/images/bid/C.jpg")%>
<% when '15' %>
<%= image_tag("/images/bid/D+.jpg")%>
<% when '16' %>
<%= image_tag("/images/bid/D.jpg")%>
<% when '17' %>
<%= image_tag("/images/bid/E+.png")%>
<% when '18' %>
<%= image_tag("/images/bid/E.png")%>
<% when '19' %>
<%= image_tag("/images/bid/F.jpg")%>
<% end %>
<% end %>
<% end %>
<% end %>
<% end %>
</span></strong>
</span></strong>
</td>
</td>
<!-- 评价显隐控制按钮-->
<!-- 评价显隐控制按钮-->
<% if User.current.id == @bid.author_id %>
<% if User.current.id == @bid.author_id && @bid.deadline > Date.today %>
<td valign="top" align="right" width="10%">
<td valign="top" align="right" width="10%">
<span> <%= toggle_link '评价', b_project.id.to_s %></span>
<span> <%= toggle_link '评价', b_project.id.to_s %></span>
<!-- 评价应标项目的表单 -->
<!-- 评价应标项目的表单 -->
@ -47,9 +90,18 @@
<%= form_for "set_reward",:remote=>true,:url=>set_reward_path do |f| %>
<%= form_for "set_reward",:remote=>true,:url=>set_reward_path do |f| %>
<%= f.text_field :b_id,:style => "display:none",:value => b_project.id,:size=>"0" %>
<%= f.text_field :b_id,:style => "display:none",:value => b_project.id,:size=>"0" %>
<% case @bid.reward_type %>
<%= f.select :reward,"<option value = '0'>#{l(:label_first_reward)}</option> <option value = '1'>#{l(:label_second_reward)}</option> <option value = '2'>#{l(:label_comfort_reward)}</option>"
<% when 1 %>
<%= f.select :reward,"<option value = '6'>中标</option> <option value = '7'>备选</option> <option value = '8'>淘汰</option>"
.html_safe %>
.html_safe %>
<% when 2 %>
<%= f.select :reward,"<option value = '0'>#{l(:label_first_reward)}</option> <option value = '1'>#{l(:label_second_reward)}</option> <option value = '2'>三等奖</option> <option value = '3'>四等奖</option> <option value = '4'>五等奖</option> <option value = '5'>#{l(:label_comfort_reward)}</option>"
.html_safe %>
<% when 3 %>
<%= f.select :reward,"<option value = '10'>A</option> <option value = '11'>B+</option> <option value = '12'>B</option> <option value = '13'>C+</option> <option value = '14'>C</option> <option value = '15'>D+</option>
<option value = '16'>D</option> <option value = '17'>E+</option> <option value = '18'>E</option> <option value = '19'>F</option>"
.html_safe %>
<% end %>
<%= f.submit "提交",:class=>"submit" %>
<%= f.submit "提交",:class=>"submit" %>
<% end %>
<% end %>
@ -69,10 +121,6 @@
</tr>
</tr>
</table>
</table>
</td>
</td>
<td width="30%">
<td width="30%">
<div class="bid-user-message" style="border-left: 1px solid rgb(225, 225, 225); margin-left: 20px; padding-left: 20px;">
<div class="bid-user-message" style="border-left: 1px solid rgb(225, 225, 225); margin-left: 20px; padding-left: 20px;">
<table width="100%">
<table width="100%">