/[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 153 by dpavlin, Sat Nov 26 01:54:31 2005 UTC revision 271 by dpavlin, Sat Dec 17 03:19:58 2005 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  [% c.prototype.form_remote_tag(  [% c.prototype.form_remote_tag(
# Line 24  Line 23 
23   <span id="sve_input_loading" style="display: none;">   <span id="sve_input_loading" style="display: none;">
24    <img src="/img/indicator.gif" />    <img src="/img/indicator.gif" />
25   </span>   </span>
  </div>  
26    
27   <div class="auto_complete" id="sve_input_auto_complete"></div>   <div class="auto_complete" id="sve_input_auto_complete"></div>
28  [% c.prototype.auto_complete_field( 'sve_input', {  [% c.prototype.auto_complete_field( 'sve_input', {
29          url => url _ 'TitleProper',          url => url _ 'TitleProper',
30          indicator => 'sve_input_loading'          indicator => 'sve_input_loading',
31            frequency => 0.8,
32  } ) %]  } ) %]
33   <!-- operator for individual words -->   <!-- operator for individual words -->
34   <input type="hidden" name="_all" value="AND" />   <input type="hidden" name="_all" value="AND" />
# Line 44  Line 43 
43   <span id="naslov_input_loading" style="display: none;">   <span id="naslov_input_loading" style="display: none;">
44    <img src="/img/indicator.gif" />    <img src="/img/indicator.gif" />
45   </span>   </span>
  </div>  
46    
47   <div class="auto_complete" id="naslov_input_auto_complete"></div>   <div class="auto_complete" id="naslov_input_auto_complete"></div>
48  [% c.prototype.auto_complete_field( 'naslov_input', {  [% c.prototype.auto_complete_field( 'naslov_input', {
49          url => url _ 'TitleProper',          url => url _ 'TitleProper',
50          indicator => 'naslov_input_loading'          indicator => 'naslov_input_loading',
51            frequency => 0.8,
52  } ) %]  } ) %]
53  </td>  </td>
54    
# Line 58  Line 57 
57  <td>  <td>
58   Autor:   Autor:
59  </td><td>  </td><td>
60   <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"/>
61   <span id="autor_input_loading" style="display: none;">   <span id="autor_input_loading" style="display: none;">
62    <img src="/img/indicator.gif" />    <img src="/img/indicator.gif" />
63   </span>   </span>
 </div>  
64  <div class="auto_complete" id="autor_input_auto_complete"></div>  <div class="auto_complete" id="autor_input_auto_complete"></div>
65  [% c.prototype.auto_complete_field( 'autor_input', {  [% c.prototype.auto_complete_field( 'autor_input', {
66          url => url _ 'PersonalName',          url => url _ 'Names',
67          indicator => 'autor_input_loading'          indicator => 'autor_input_loading',
68            frequency => 0.8,
69  } ) %]  } ) %]
70  </td>  </td>
71    
# Line 75  Line 74 
74    
75  <!-- additional fields which might get updated by javascript -->  <!-- additional fields which might get updated by javascript -->
76  <input name="_template" type="hidden" id="template_name" />  <input name="_template" type="hidden" id="template_name" />
77  <input name="_offset" type="hidden" id="offset_value" />  <input name="_page" type="hidden" id="page_nr" />
78    <input name="_ajax" type="hidden" value="0" id="_ajax" />
79    
80  <input type="submit" name="_submit" value="Search" />  <input type="submit" name="_submit" value="Search"
81            onclick="reset_page_nr( 1 ); return true;"
82    />
83    
84  <span id="searching" style="display: none;">  <span id="searching" style="display: none;">
85     Search in progress...   Search in progress...
86     <img src="/img/indicator.gif" />   <img src="/img/indicator.gif" />
87  </span>  </span>
88    
89  <input type="reset" name="_reset" value="Clear" />  <input type="reset" name="_reset" value="Clear" />
90    
91  </form>  </form>
92    
93    <div class="databases">
94    <a href="#" onclick="return toggleLinkAndElement( this, 'database_list', 'Hide databases');">Databases</a>:
95     <div id="database_list">
96      <ul>
97      [% FOREACH db = c.comp('Model::Databases').list %]
98       <li>[% db.name %]</li>
99      [% END %]
100      </ul>
101     </div>
102    </div>
103    
104  <div id="results">  <div id="results">
105    [% IF results ; results ; ELSE %]
106  <span class="notice">No results yet.</span>  <span class="notice">No results yet.</span>
107    [% END %]
108  </div>  </div>
109    
110  [% INCLUDE footer.tt %]  [% INCLUDE footer.tt %]

Legend:
Removed from v.153  
changed lines
  Added in v.271

  ViewVC Help
Powered by ViewVC 1.1.26