<%= text_field_tag 'q', @question, :size => 60, :id => 'search-input' %> <%= project_select_tag %> <%= hidden_field_tag 'all_words', '', :id => nil %> <%= hidden_field_tag 'titles_only', '', :id => nil %>
<% @object_types.each do |t| %> <% end %>
<%= submit_tag l(:button_submit) %>
<% end %><% if @pagination_previous_date %> <%= link_to_content_update("\xc2\xab " + l(:label_previous), params.merge(:previous => 1, :offset => @pagination_previous_date.strftime("%Y%m%d%H%M%S"))) %> <% end %> <% if @pagination_next_date %> <%= link_to_content_update(l(:label_next) + " \xc2\xbb", params.merge(:previous => nil, :offset => @pagination_next_date.strftime("%Y%m%d%H%M%S"))) %> <% end %>
<% html_title(l(:label_search)) -%> <%= javascript_tag do %> $("#search-types a").click(function(e){ e.preventDefault(); $("#search-types input[type=checkbox]").attr('checked', false); $(this).siblings("input[type=checkbox]").attr('checked', true); if ($("#search-input").val() != "") { $("#search-form").submit(); } }); <% end %>