<div class="top-content">
	<%= form_tag(:controller => 'bids', :action => 'contest', :method => :get) do %>
	<table width="940px">
		<tr>
			<td class="info_font" style="width: 220px; color: #15bccf" rowspan="2">
              <a href="http://<%= Setting.host_contest%>" style="color: #15bccf;">
                <%=l(:label_contest_innovate_community)%>
              </a>
            </td>
			<td class="location-list">
              <strong><%= l(:label_user_location) %> :</strong>
            </td>
			<td rowspan="2">
			<% if User.current.logged? %>
			<% unless User.current.user_extensions.identity == 1 %>					
			<%= link_to(l(:label_newtype_contest), {:controller => 'bids', :action => 'new_contest'}, :class => 'icon icon-add') %>		
			<% end %>		
			<% end %>	
			</td>
			<td rowspan="2" >	
			<div class="project-search" style="float: right">			
			<%= text_field_tag 'name', params[:name], :size => 30 %>
			<%= hidden_field_tag 'project_type', params[:project_type] %>
			<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>		
			</div>			
			</td>
		</tr>
		<tr>
	        <td >
              <%=link_to l(:field_homepage), home_path %> >
              <a><%= l(:label_contest_innovate) %></a>
            </td>
		</tr>
	</table>
	<% end %>
</div>						



<!-- <div class="pagination" style="border-bottom: 1px solid rgb(223,223,223); width: 95%; margin-left: 2%; margin-top: 15px" >
<ul style="margin-right:0px">
	<li>
		<%#= link_to l(:label_sort_by_time), calls_path(:bid_sort_type => '0') %>
	</li>
	<li>
		<%#= link_to l(:label_sort_by_active), calls_path(:bid_sort_type => '1') %>
	</li>
	<!-- <li>
		<%#= link_to l(:label_sort_by_influence), calls_path(:bid_sort_type => '2') %>
	</li> -->
<!-- </ul>
</div>  -->
<% if @bids.size > 0%>
<%= sort_contest(@s_state)%>
<div id="bid-show">
	<%= render :partial => 'contest_show', :locals => {:bids => @bids, :bid_pages => @bid_pages} %>
</div>
<% else %>
    <%= render :partial => "layouts/no_content"%>
<% end %>

<% html_title l(:label_contest_list)%>
