<% #
 # This file is part of the Anotatornia suite.
 # 
 # Copyright © 2007, 2008, 2009, 2010 by Instytut Podstaw Informatyki
 # Polskiej Akademii Nauk (IPI PAN; Institute of Computer Science, Polish
 # Academy of Sciences; cf. www.ipipan.waw.pl).  All rights reserved.
 # 
 # This file may be distributed and/or modified under the terms of the
 # GNU General Public License version 3 as published by the Free Software
 # Foundation and appearing in the file COPYING included in the packaging
 # of this file.  (See http://www.gnu.org/licenses/translations.html for
 # unofficial translations.)
 # 
 # A commercial license is available from IPI PAN (contact
 # Michal.Ciesiolka.waw.pl or ipi.waw.pl for more
 # information).  Licensees holding a valid commercial license from IPI
 # PAN may use this file in accordance with that license.
 # 
 # This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
 # THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 # PURPOSE.
%>

<div id="fixed_hdr">
<h1>Wyszukiwanie akapitów wg lematu, sensu i klasy gramatycznej</h1>
</div>

<div id="main1">

<%= render :partial => '/layouts/notice' -%>

<fieldset>
  <legend>Zapytanie</legend>
    <% form_for :szukaj, :url => {:action => :wyszukaj_akapity } do |form| %>
    <p>
    <label for="szukaj_lemat" >Lemat(y):</label>
  <%= form.text_field :szukaj_lemat, :value =>
  session[:szukaj_lemat], :size => 40 -%>
    </p>
    <p>
    <label for="szukaj_sens" >Sens(y):</label>
    <%= form.text_field :szukaj_sens, :value => session[:szukaj_sens], :size =>40 -%>
    </p>
    <p>
    <label for="szukaj_klasa" >Klasa(y) gramatyczna(e):</label>
    <%= form.text_field :szukaj_klasa, :value => session[:szukaj_klasa], :size =>40 -%>
    </p>
    <%= submit_tag "zapytaj" , :class => "submit" %>
    <%= submit_tag "zawęź poprzednie" , :class => "submit" %>

	       <% end # of #{form}. 
-%>
</fieldset>



<% if @akapity -%>
<br/>
<%= @akapity.size %> akapit/y/ów transzy.
<br/><br/>
<%= render :partial => 'lista_akapitow', :object => @akapity -%>
<% end # of #{if zdania}. 
-%>
<br />
</div>


<%
### Local Variables: 
### mode: mmm
### End:
-%>
