/[webpac2]/Webpacus/root/search.tt
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /Webpacus/root/search.tt

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 273 by dpavlin, Sat Dec 17 03:20:09 2005 UTC revision 386 by dpavlin, Sun Jan 22 12:05:56 2006 UTC
# Line 2  Line 2 
2    
3  [% url = base _ 'search/suggest/' %]  [% url = base _ 'search/suggest/' %]
4    
5    <!--
6  [% c.prototype.form_remote_tag(  [% c.prototype.form_remote_tag(
7          url => base _ 'search/results',          url => base _ 'search/results',
8          update => 'results',          update => 'results',
# Line 12  Line 13 
13                  name => 'results_form',                  name => 'results_form',
14          }          }
15  ) %]  ) %]
16    -->
17    <form action="[% base _ 'search/results' %]" method="get" id="results_form" name="results_form">
18    
19  <table>  <table id="search_table" border="0">
20    
21  <tr>  <tr>
22  <td>  <td>
23   Sve:   All:
24  </td><td>  </td><td>
25   <input autocomplete="off" id="sve_input" name="all" type="text" value="" size="60"/>   <input autocomplete="off" id="sve_input" name="all" type="text" value="" size="60"/>
26   <span id="sve_input_loading" style="display: none;">   <span id="sve_input_loading" style="display: none;">
# Line 26  Line 29 
29    
30   <div class="auto_complete" id="sve_input_auto_complete"></div>   <div class="auto_complete" id="sve_input_auto_complete"></div>
31  [% c.prototype.auto_complete_field( 'sve_input', {  [% c.prototype.auto_complete_field( 'sve_input', {
32          url => url _ 'TitleProper',          url => url _ '?search=all&show=TitleProper',
33          indicator => 'sve_input_loading',          indicator => 'sve_input_loading',
34          frequency => 0.8,          frequency => 0.8,
35  } ) %]  } ) %]
# Line 37  Line 40 
40  </tr><tr>  </tr><tr>
41    
42  <td>  <td>
43   Naslov:   Title:
44  </td><td>  </td><td>
45   <input autocomplete="off" id="naslov_input" name="TitleProper" type="text" value="" size="60"/>   <input autocomplete="off" id="naslov_input" name="TitleProper" type="text" value="" size="60"/>
46   <span id="naslov_input_loading" style="display: none;">   <span id="naslov_input_loading" style="display: none;">
# Line 46  Line 49 
49    
50   <div class="auto_complete" id="naslov_input_auto_complete"></div>   <div class="auto_complete" id="naslov_input_auto_complete"></div>
51  [% c.prototype.auto_complete_field( 'naslov_input', {  [% c.prototype.auto_complete_field( 'naslov_input', {
52          url => url _ 'TitleProper',          url => url _ '?search=TitleProper&show=TitleProper',
53          indicator => 'naslov_input_loading',          indicator => 'naslov_input_loading',
54          frequency => 0.8,          frequency => 0.8,
55  } ) %]  } ) %]
56    
57     <input type="hidden" name="_TitleProper" value="AND" />
58    
59  </td>  </td>
60    
61  </tr><tr>  </tr><tr>
62    
63  <td>  <td>
64   Autor:   Author:
65  </td><td>  </td><td>
66   <input autocomplete="off" id="autor_input" name="Names" type="text" value="" size="60"/>   <input autocomplete="off" id="autor_input" name="Names" type="text" value="" size="60"/>
67   <span id="autor_input_loading" style="display: none;">   <span id="autor_input_loading" style="display: none;">
# Line 63  Line 69 
69   </span>   </span>
70  <div class="auto_complete" id="autor_input_auto_complete"></div>  <div class="auto_complete" id="autor_input_auto_complete"></div>
71  [% c.prototype.auto_complete_field( 'autor_input', {  [% c.prototype.auto_complete_field( 'autor_input', {
72          url => url _ 'Names',          url => url _ '?search=Names&show=Names',
73          indicator => 'autor_input_loading',          indicator => 'autor_input_loading',
74          frequency => 0.8,          frequency => 0.8,
75  } ) %]  } ) %]
76    
77     <input type="hidden" name="_Names" value="AND" />
78    
79  </td>  </td>
80    
81  </tr>  </tr>
# Line 75  Line 84 
84  <!-- additional fields which might get updated by javascript -->  <!-- additional fields which might get updated by javascript -->
85  <input name="_template" type="hidden" id="template_name" />  <input name="_template" type="hidden" id="template_name" />
86  <input name="_page" type="hidden" id="page_nr" />  <input name="_page" type="hidden" id="page_nr" />
87  <input name="_ajax" type="hidden" value="0" id="_ajax" />  <input name="_reset" type="hidden" id="_reset" value="sve_input,naslov_input,autor_input"/>
88    
89    <div class="databases">
90    <a href="#" onclick="return toggleLinkAndElement( this, 'database_list', 'Sakrij knjižnice!');">Pokaži knjižnice!</a>
91     <ul id="database_list" style="display: none;">
92      [% FOREACH db = c.comp('Model::Databases').list({ require_input => 1 }).sort('name') %]
93       <li><input type="checkbox" name="_database" value="[% db.prefix %]" onclick="return checkbox_click();"><a href="#" onclick="return checkbox_single('_database','[% db.prefix %]');">[% db.name %]</a></li>
94      [% END %]
95     </ul>
96    </div>
97    
98    <div class="buttons">
99    
100  <input type="submit" name="_submit" value="Search"  <input type="submit" name="_submit" value="Search"
101          onclick="reset_page_nr( 1 ); return true;"          onclick="reset_page_nr( 1 ); return true;"
# Line 86  Line 106 
106   <img src="/img/indicator.gif" />   <img src="/img/indicator.gif" />
107  </span>  </span>
108    
109  <input type="reset" name="_reset" value="Clear" />  <input type="button" name="_reset_button" value="Clear" onclick="return reset_form();" />
110    
 </form>  
   
 <div class="databases">  
 <a href="#" onclick="return toggleLinkAndElement( this, 'database_list', 'Select databases');">Databases</a>  
  <div id="database_list">  
   <ul>  
   [% FOREACH db = c.comp('Model::Databases').list %]  
    <li>[% db.name %]</li>  
   [% END %]  
   </ul>  
  </div>  
111  </div>  </div>
112    
113    
114    </form>
115    
116  <div id="results">  <div id="results">
117  [% IF results ; results ; ELSE %]  [% IF results ; results ; ELSE %]
118  <span class="notice">No results yet.</span>  <span class="notice">No results yet.</span>

Legend:
Removed from v.273  
changed lines
  Added in v.386

  ViewVC Help
Powered by ViewVC 1.1.26