/[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 109 by dpavlin, Tue Nov 22 20:26:52 2005 UTC revision 410 by dpavlin, Mon Feb 20 17:12:36 2006 UTC
# Line 1  Line 1 
1  [% INCLUDE header.tt %]  [% INCLUDE header.tt %]
2    
 [% c.prototype.auto_complete_stylesheet %]  
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 _ 'results',          url => base _ 'search/results',
8          update => 'results',          update => 'results',
9          loading => 'show_searching();',          loading => 'show_searching();',
10          loaded => 'hide_searching();',          loaded => 'hide_searching();',
11            html_options => {
12                    id => 'results_form',
13                    name => 'results_form',
14            }
15  ) %]  ) %]
16    -->
17    <form action="[% base _ 'search/results' %]" method="get" id="results_form" name="results_form">
18    
19    <table id="search_table" border="0">
20    
 <table>  
21  <tr>  <tr>
22  <td>  <td>
23   Naslov:   All:
24    </td><td>
25     <input autocomplete="off" id="sve_input" name="all" type="text" value="" size="60"/>
26     <span id="sve_input_loading" style="display: none;">
27      <img src="/img/indicator.gif" />
28     </span>
29    
30     <div class="auto_complete" id="sve_input_auto_complete"></div>
31    [% c.prototype.auto_complete_field( 'sve_input', {
32            url => url _ '?search=all&show=TitleProper',
33            indicator => 'sve_input_loading',
34            frequency => 0.8,
35    } ) %]
36     <!-- operator for individual words -->
37     <input type="hidden" name="_all" value="AND" />
38    </td>
39    
40    </tr><tr>
41    
42    <td>
43     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;">
47    <img src="/img/indicator.gif" />    <img src="/img/indicator.gif" />
48   </span>   </span>
  </div>  
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,
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="PersonalName" 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;">
68    <img src="/img/indicator.gif" />    <img src="/img/indicator.gif" />
69   </span>   </span>
 </div>  
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 _ 'PersonalName',          url => url _ '?search=Names&show=Names',
73          indicator => 'autor_input_loading'          indicator => 'autor_input_loading',
74            frequency => 0.8,
75  } ) %]  } ) %]
76    
77     <input type="hidden" name="_Names" value="AND" />
78    
79  </td>  </td>
80    
81  </tr>  </tr>
82  </table>  </table>
83    
84  <input type="submit" name="_submit" value="Search" />  <!-- additional fields which might get updated by javascript -->
85    <input name="_template" type="hidden" id="template_name" />
86    <input name="_page" type="hidden" id="page_nr" />
87    <input name="_reset" type="hidden" id="_reset" value="sve_input,naslov_input,autor_input"/>
88    
89    <div class="databases">
90    <a id="toggle_database_list" href="#" onclick="return toggleLinkAndElement( this, 'database_list', 'Sakrij knjižnice!');">Pokaži knjižnice!</a>
91     <ul id="database_list" style="display: none;">
92     [% INCLUDE databases.tt %]
93     </ul>
94    </div>
95    
96    <div class="buttons">
97    
98    <input type="submit" name="_submit" value="Search"
99            onclick="reset_page_nr( 1 ); return true;"
100    />
101    
102  <span id="searching" style="display: none;">  <span id="searching" style="display: none;">
103     Search in progress...   Search in progress...
104     <img src="/img/indicator.gif" />   <img src="/img/indicator.gif" />
105  </span>  </span>
106    
107    <input type="button" name="_reset_button" value="Clear" onclick="return reset_form();" />
108    
109    </div>
110    
111    
112  </form>  </form>
113    
114  <div id="results">  <div id="results">
115  <span style="color: #808080;">no results yet</span>  [% IF results ; results %]
116    <script type="text/javascript">
117    results_ready( 1 );
118    </script>
119    [% ELSE %]
120    <span class="notice">No results yet.</span>
121    [% END %]
122  </div>  </div>
123    
124  [% INCLUDE footer.tt %]  [% INCLUDE footer.tt %]

Legend:
Removed from v.109  
changed lines
  Added in v.410

  ViewVC Help
Powered by ViewVC 1.1.26