<%= l(:label_search) %>

<% form_tag({}, :method => :get) do %>

<%= text_field_tag 'q', @question, :size => 60, :id => 'search-input' %> <%= javascript_tag "Field.focus('search-input')" %> <% @object_types.each do |t| %> <% end %>

<%= submit_tag l(:button_submit), :name => 'submit' %> <% end %>
<% if @results %>

<%= l(:label_result_plural) %>

<% end %>

<% if @pagination_previous_date %> <%= link_to_remote ('« ' + l(:label_previous)), {:update => :content, :url => params.merge(:previous => 1, :offset => @pagination_previous_date.strftime("%Y%m%d%H%M%S")) }, :href => url_for(params.merge(:previous => 1, :offset => @pagination_previous_date.strftime("%Y%m%d%H%M%S"))) %>  <% end %> <% if @pagination_next_date %> <%= link_to_remote (l(:label_next) + ' »'), {:update => :content, :url => params.merge(:previous => nil, :offset => @pagination_next_date.strftime("%Y%m%d%H%M%S")) }, :href => url_for(params.merge(:previous => nil, :offset => @pagination_next_date.strftime("%Y%m%d%H%M%S"))) %> <% end %>

<% html_title(l(:label_search)) -%>