/[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 117 by dpavlin, Wed Nov 23 21:52:25 2005 UTC revision 439 by dpavlin, Sun Apr 30 23:20:03 2006 UTC
# Line 1  Line 1 
1  [% INCLUDE header.tt %]  [% INCLUDE header.tt %]
2    
3  [% c.prototype.auto_complete_stylesheet %]  [% url_suggest = base _ site_url _ 'search/suggest/' %]
 [% url = base _ 'search/suggest/' %]  
4    
5    <!-- site: [% site %] base: [% base %] site_url: [% site_url %] -->
6    
7    <!--
8  [% c.prototype.form_remote_tag(  [% c.prototype.form_remote_tag(
9          url => base _ 'results',          url => base _ site_url _ 'search/results',
10          update => 'results',          update => 'results',
11          loading => 'show_searching();',          loading => 'show_searching();',
12          loaded => 'hide_searching();',          loaded => 'hide_searching();',
13            html_options => {
14                    id => 'results_form',
15                    name => 'results_form',
16            }
17  ) %]  ) %]
18    -->
19    <form action="[% base _ site_url _ 'search/results' %]" method="get" id="results_form" name="results_form">
20    
21  <table>  <table id="search_table" border="0">
22    
23  <tr>  <tr>
24  <td>  <td>
25   Sve:   All:
26  </td><td>  </td><td>
27   <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"/>
28   <span id="sve_input_loading" style="display: none;">   <!-- operator for individual words -->
29    <img src="/img/indicator.gif" />   <input type="hidden" name="_all" value="AND" />
  </span>  
  </div>  
   
  <div class="auto_complete" id="sve_input_auto_complete"></div>  
 [% c.prototype.auto_complete_field( 'sve_input', {  
         url => url _ 'TitleProper',  
         indicator => 'sve_input_loading'  
 } ) %]  
30  </td>  </td>
31    
32  </tr><tr>  </tr><tr>
33    
34  <td>  <td>
35   Naslov:   Title:
36  </td><td>  </td><td>
37   <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"/>
38   <span id="naslov_input_loading" style="display: none;">   <input type="hidden" name="_TitleProper" value="AND" />
39    <img src="/img/indicator.gif" />  
  </span>  
  </div>  
   
  <div class="auto_complete" id="naslov_input_auto_complete"></div>  
 [% c.prototype.auto_complete_field( 'naslov_input', {  
         url => url _ 'TitleProper',  
         indicator => 'naslov_input_loading'  
 } ) %]  
40  </td>  </td>
41    
42  </tr><tr>  </tr><tr>
43    
44  <td>  <td>
45   Autor:   Author:
46  </td><td>  </td><td>
47   <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"/>
48   <span id="autor_input_loading" style="display: none;">   <input type="hidden" name="_Names" value="AND" />
49    <img src="/img/indicator.gif" />  
  </span>  
 </div>  
 <div class="auto_complete" id="autor_input_auto_complete"></div>  
 [% c.prototype.auto_complete_field( 'autor_input', {  
         url => url _ 'PersonalName',  
         indicator => 'autor_input_loading'  
 } ) %]  
50  </td>  </td>
51    
52  </tr>  </tr>
53  </table>  </table>
54    
55  <input type="submit" name="_submit" value="Search" />  <!-- additional fields which might get updated by javascript -->
56    <input name="_template" type="hidden" id="template_name" />
57    <input name="_page" type="hidden" id="page_nr" />
58    <input name="_reset" type="hidden" id="_reset" value="sve_input,naslov_input,autor_input"/>
59    
60    <div class="databases">
61    <a id="toggle_database_list" href="#" onclick="return toggleLinkAndElement( this, 'database_list', 'Hide libraries!');">Show libraries!</a>
62     <ul id="database_list" style="display: none;">
63     [% INCLUDE databases.tt %]
64     </ul>
65    </div>
66    
67    <div class="buttons">
68    
69    <input type="submit" name="_submit" value="Search"
70            onclick="reset_page_nr( 1 ); return true;"
71    />
72    
73  <span id="searching" style="display: none;">  <span id="searching" style="display: none;">
74     Search in progress...   Search in progress...
75     <img src="/img/indicator.gif" />   <img src="/img/indicator.gif" />
76  </span>  </span>
77    
78  <input type="reset" name="_reset" value="Clear" />  <input type="button" name="_reset_button" value="Clear" onclick="return reset_form();" />
79    
80    </div>
81    
82    
83  </form>  </form>
84    
85  <div id="results">  <div id="results">
86  <span style="color: #808080;">no results yet</span>  [% IF results ; results %]
87    <script type="text/javascript">
88    results_ready( 1 );
89    </script>
90    [% ELSE %]
91    <span class="notice">No results yet.</span>
92    [% END %]
93  </div>  </div>
94    
95  [% INCLUDE footer.tt %]  [% INCLUDE footer.tt %]

Legend:
Removed from v.117  
changed lines
  Added in v.439

  ViewVC Help
Powered by ViewVC 1.1.26