/[webpac]/trunk2/out/search.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk2/out/search.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 536 - (hide annotations)
Sun Oct 24 09:15:44 2004 UTC (15 years, 9 months ago) by dpavlin
File MIME type: text/html
File size: 3140 byte(s)
renamed thesaurus to alphabetical

1 dpavlin 391 <!DOCTYPE html PUBLIC
2     "-//W3C//DTD XHTML 1.0 Strict//EN"
3     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 dpavlin 446 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="hr" lang="hr">
5 dpavlin 391 <head>
6     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"/>
7     <title>HIDRA Eurovoc CD</title>
8 dpavlin 464 <script src="bfilter/hide.js" type="text/javascript"></script>
9 dpavlin 396 <script src="js/l2_unescape.js" type="text/javascript"></script>
10 dpavlin 391 <script src="js/getargs.js" type="text/javascript"></script>
11     <script src="js/search.js" type="text/javascript"></script>
12 dpavlin 470 <script src="js/popup.js" type="text/javascript"></script>
13 dpavlin 391 <script src="js/usage.js" type="text/javascript"></script>
14 dpavlin 507 <script src="js/cookies.js" type="text/javascript"></script>
15     <script type="text/javascript">
16     // <!--
17     var lang2index = {
18     'hr' : 'index/DescriptorHR',
19     'en' : 'index/DescriptorEN',
20     'fr' : 'index/DescriptorFR',
21     'ge' : 'index/DescriptorGE',
22     'all' : 'index/AllThes'
23     };
24    
25     // first then try cookie
26     var lang = get_cookie('w2_lang').toLowerCase();
27     var args = getArgs();
28     // get language from URL
29     if (args && args.lang) lang = args.lang;
30     // default, Hrvatski
31     if (! lang) lang = 'hr';
32    
33     var index_name = lang2index[lang];
34    
35     function change_lang(lang) {
36     set_cookie('w2_lang', lang);
37     return true;
38     }
39    
40     function select_option(value,text,selected) {
41     document.write('<option value="'+value+'"');
42     if (value == selected) document.write(' selected');
43     document.write('>'+text+'</option>');
44     }
45     // -->
46     </script>
47     <link rel="stylesheet" href="style.css" type="text/css" />
48 dpavlin 391 </head>
49    
50     <body>
51    
52 dpavlin 507 <div>
53    
54 dpavlin 464 <div style="float: right; width: 10em; text-align: center; margin: 0.5m">
55 dpavlin 508 <a href="#" onclick="toggle_display('debug');">debug</a>
56 dpavlin 464 <div style="text-align: left; border: 1px dashed #c0c0c0; display: none;" id="debug">
57     </div>
58     </div>
59    
60 dpavlin 432 <span style="background: #e0e0e0;">
61     <a href="search.html"><b>search</b></a> |
62 dpavlin 536 <a href="browse.html">browse</a> |
63     <a href="alphabetical.html">alphabetical</a>
64 dpavlin 432 </span>
65    
66 dpavlin 446 <div>
67    
68 dpavlin 507 <form id="search" onsubmit="return go(this);" action="?">
69     <div>
70 dpavlin 391 <script type="text/javascript">
71 dpavlin 507 // <!--
72     document.write('<select name="lang" onChange="change_lang(this.options[this.selectedIndex].value);">');
73     select_option("hr","Hrvatski",lang);
74     select_option("en","Engleski",lang);
75     select_option("fr","Francuski",lang);
76     select_option("ge","Njemaèki",lang);
77     select_option("all","Sve rijeèi",lang);
78 dpavlin 391 document.write('</select>');
79 dpavlin 507
80 dpavlin 516 document.write('<input name="query" value="');
81 dpavlin 391
82 dpavlin 516 if (args && args.query) {
83 dpavlin 391 var search_string = args.query.replace(/\+/gi," ");
84     document.write(search_string);
85     }
86    
87 dpavlin 516 document.write('" type="text" size="30"/>');
88 dpavlin 507 // -->
89 dpavlin 391 </script>
90    
91 dpavlin 507 <input type="submit" value="Pretra¾i"/><br/>
92     </div>
93 dpavlin 391 </form>
94    
95     <script type="text/javascript">
96 dpavlin 507 // <!--
97 dpavlin 391 if (args.query) {
98     document.write("<div id=\"results\"><h2>Please wait...</h2></div>\n");
99 dpavlin 507 doSearch(index_name, args.query, printResults);
100 dpavlin 391 }
101 dpavlin 507 // -->
102 dpavlin 391 </script>
103    
104 dpavlin 446 </div>
105    
106 dpavlin 507 </div>
107    
108 dpavlin 391 </body>
109     </html>

  ViewVC Help
Powered by ViewVC 1.1.26