修改了竞赛页面

添加了搜索功能
This commit is contained in:
huangjingquan 2013-11-04 22:09:03 +08:00
parent 5d83a03e5f
commit ee33583ae1
2 changed files with 10 additions and 19 deletions

View File

@ -1,4 +1,4 @@
<!-- fq --> <!-- huang-->
<%= form_tag(:controller => 'bids', :action => 'contest', :method => :get) do %> <%= form_tag(:controller => 'bids', :action => 'contest', :method => :get) do %>
<div class="project-search-block"> <div class="project-search-block">
<table width="100%" valign="center"> <table width="100%" valign="center">

View File

@ -19,15 +19,7 @@
<div id="wrapper"> <div id="wrapper">
<div id="wrapper2"> <div id="wrapper2">
<div id="wrapper3"> <div id="wrapper3">
<% if session[:enterprise_college] == 2 %>
<%=render :partial => 'layouts/base_enterprise_header'%>
<% elsif session[:enterprise_college] == 1 %>
<%=render :partial => 'layouts/base_college_header'%>
<% else %>
<%=render :partial => 'layouts/base_header'%> <%=render :partial => 'layouts/base_header'%>
<% end %>
<div id="main" class=""> <div id="main" class="">
<!-- added by bai --> <!-- added by bai -->
@ -38,19 +30,18 @@
<td style="width: 350px"><strong>当前位置 : </strong></td> <td style="width: 350px"><strong>当前位置 : </strong></td>
<td rowspan="2" width="350px"> <td rowspan="2" width="350px">
<div class="project-search"> <div class="project-search">
<%= form_tag(:controller => 'bids', :action => 'contest', :method => :get) do %>
<%= text_field_tag 'name', params[:name], :size => 30 %> <%= text_field_tag 'name', params[:name], :size => 30 %>
<%= hidden_field_tag 'reward_type', @bid.reward_type %>
<%= hidden_field_tag 'reward_type', params[:reward_type] %>
<%= hidden_field_tag 'project_type', params[:project_type] %> <%= hidden_field_tag 'project_type', params[:project_type] %>
<%= submit_tag l(:label_search), :class => "small", :name => nil %> <%= submit_tag l(:label_search), :class => "small", :name => nil %>
<% end %>
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td style="padding-left: 8px"><a>http://forge.trustie.net</a></td> <td style="padding-left: 8px"><a>http://forge.trustie.net/contest</a></td>
<td ><%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_contest_innovate), :controller => 'bids', :action => 'index' %> > <span><%=link_to @bid.name ,bid_path %></span></td> <td ><%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_contest_innovate), :controller => 'bids', :action => 'contest' %> > <span><%=link_to @bid.name ,bid_path %></span></td>
</tr> </tr>
</table> </table>
</div> </div>