|
|
|
@ -193,6 +193,61 @@
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding-left: 68px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="color: #ec6300;" align="right" valign="0.1em" width="16%">
|
|
|
|
|
<strong>
|
|
|
|
|
<span id="reward_result_<%=c_project.id%>"> <!-- 调用js进行刷新 -->
|
|
|
|
|
<% if get_prize(c_project).nil? or get_prize(c_project) == "" %>
|
|
|
|
|
<% if @contest.deadline < Date.today %>
|
|
|
|
|
<%= l(:label_noawards)%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% case get_prize(c_project) %>
|
|
|
|
|
<% when '-1' %>
|
|
|
|
|
<%= image_tag("/images/bid/special_reward.png")%>
|
|
|
|
|
<% when '0' %>
|
|
|
|
|
<%= image_tag("/images/bid/first_reward.png")%>
|
|
|
|
|
<% when '1' %>
|
|
|
|
|
<%= image_tag("/images/bid/second_reward.png")%>
|
|
|
|
|
<% 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")%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</span>
|
|
|
|
|
</strong>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<!-- 评价显隐控制按钮-->
|
|
|
|
|
<% if ((User.current.id == @contest.author_id) && (@contest.deadline > Date.today))||User.current.admin %>
|
|
|
|
|
<td valign="top" align="right" width="10%">
|
|
|
|
|
<span> <%= toggle_link '评价', c_project.id.to_s %></span>
|
|
|
|
|
<!-- 评价应标项目的表单 -->
|
|
|
|
|
<span style="display: none; vertical-align: top " id = '<%= c_project.id %>'>
|
|
|
|
|
<%= form_for "set_reward_project",:remote=>true,:url=>set_reward_project_contest_path do |f| %>
|
|
|
|
|
<%= f.text_field :c_id,:style => "display:none",:value => c_project.id,:size=>"0" %>
|
|
|
|
|
<%= f.select :reward,"<option value = '-1'>#{l(:label_special_reward)}</option>
|
|
|
|
|
<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 %>
|
|
|
|
|
<%= f.submit "提交",:class=>"submit" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</span>
|
|
|
|
|
</td>
|
|
|
|
|
<% end %>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
</tr>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="underline-contests_three"></div>
|
|
|
|
@ -219,6 +274,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<!--获奖及教师评奖-->
|
|
|
|
|
<div style="padding-left: 68px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="color: #ec6300;" align="right" valign="0.1em" width="16%">
|
|
|
|
|
<strong>
|
|
|
|
|
<span id="reward_result_<%=c_softapplication.id%>"> <!-- 调用js进行刷新 -->
|
|
|
|
|
<% if get_prize(c_softapplication).nil? or get_prize(c_softapplication) == "" %>
|
|
|
|
|
<% if @contest.deadline < Date.today %>
|
|
|
|
|
<%= l(:label_noawards)%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% case get_prize(c_softapplication) %>
|
|
|
|
|
<% when '-1' %>
|
|
|
|
|
<%= image_tag("/images/bid/special_reward.png")%>
|
|
|
|
|
<% when '0' %>
|
|
|
|
|
<%= image_tag("/images/bid/first_reward.png")%>
|
|
|
|
|
<% when '1' %>
|
|
|
|
|
<%= image_tag("/images/bid/second_reward.png")%>
|
|
|
|
|
<% 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")%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</span>
|
|
|
|
|
</strong>
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<!-- 评价显隐控制按钮-->
|
|
|
|
|
<% if ((User.current.id == @contest.author_id) && (@contest.deadline > Date.today))||User.current.admin %>
|
|
|
|
|
<td valign="top" align="right" width="10%">
|
|
|
|
|
<span> <%= toggle_link '评价', c_softapplication.id.to_s %></span>
|
|
|
|
|
<!-- 评价应标项目的表单 -->
|
|
|
|
|
<span style="display: none; vertical-align: top " id = '<%= c_softapplication.id %>'>
|
|
|
|
|
<%= form_for "set_reward_softapplication",:remote=>true,:url=>set_reward_softapplication_contest_path do |f| %>
|
|
|
|
|
<%= f.text_field :c_id,:style => "display:none",:value => c_softapplication.id,:size=>"0" %>
|
|
|
|
|
<%= f.select :reward,"<option value = '-1'>#{l(:label_special_reward)}</option>
|
|
|
|
|
<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 %>
|
|
|
|
|
<%= f.submit "提交",:class=>"submit" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</span>
|
|
|
|
|
</td>
|
|
|
|
|
<% end %>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
</tr>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="underline-contests_three"></div>
|
|
|
|
|