/[webpac]/trunk2/eurovoc/pretrazivanje.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

Contents of /trunk2/eurovoc/pretrazivanje.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 552 - (show annotations)
Tue Oct 26 22:51:32 2004 UTC (16 years, 6 months ago) by dpavlin
File MIME type: text/html
File size: 7408 byte(s)
fix mult-word query, decode cookie before usage

1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <title>HIDRA - Pojmovnik Eurovoc</title>
5 <meta content="text/html; charset=ISO-8859-2" http-equiv="Content-Type">
6 <link rel="stylesheet" href="eurovoc.css" type="text/css">
7
8 <script type="text/javascript" src="js/hide.js"><script>
9 <script type="text/javascript" src="js/l2_unescape.js"</script>
10 <script type="text/javascript" src="js/getargs.js"></script>
11 <script type="text/javascript" src="js/search.js"></script>
12 <script type="text/javascript" src="js/popup.js"></script>
13 <script type="text/javascript" src="js/usage.js"></script>
14 <script type="text/javascript" src="js/cookies.js"></script>
15 <script type="text/javascript" src="js/unac.js"></script>
16 <script type="text/javascript" src="js/l2_unescape.js"></script>
17 <script type="text/javascript" src="js/clear_last_search.js"></script>
18 <script type="text/javascript">
19 // <!--
20 var lang2index = {
21 'hr' : 'index/DescriptorHR',
22 'en' : 'index/DescriptorEN',
23 'fr' : 'index/DescriptorFR',
24 'ge' : 'index/DescriptorGE',
25 'all' : 'index/AllThes'
26 };
27
28 // first then try cookie
29 var lang = get_cookie('w2_lang');
30 var args = getArgs();
31 // get language from URL
32 if (args && args.lang) lang = args.lang;
33 // default, Hrvatski
34 if (! lang) lang = 'hr';
35
36 var index_name = lang2index[lang.toLowerCase()];
37
38 function change_lang(lang) {
39 set_cookie('w2_lang', lang);
40 return true;
41 }
42
43 function select_option(value,text,selected) {
44 document.write('<option value="'+value+'"');
45 if (value == selected) document.write(' selected');
46 document.write('>'+text+'</option>');
47 }
48
49 // -->
50 </script>
51 <link rel="stylesheet" href="style.css" type="text/css" />
52 </head>
53
54 <body>
55 <table width="100%" border="0" cellspacing="0" cellpadding="0">
56 <tr>
57 <td colspan="3" class="hdr" height="10">
58 </td>
59 </tr>
60 <tr>
61 <td class="logoHidra">
62 <img src="img/euzajed.png" border="0" alt="Europske zajednice">
63 </td>
64 <td class="logoHidra">
65 <img src="img/hidra.png" border="0" alt="HIDRA logo">
66 </td>
67 <td class="logoEUV">
68 <a href="index.html"><img src="img/eurovoc2.png" border="0" alt="Eurovoc"></a>
69 </td>
70 </tr>
71 <tr>
72 <td class="hdr2" height="10" colspan="3">
73 </td>
74
75 </tr>
76 </table>
77
78
79 <table border="0" cellspacing="0" cellpadding="0" width="100%">
80 <tr>
81 <td class="hMenuL hMenu">
82 <table width="160" cellspacing="0" cellpadding="0">
83 <tr><td>
84 <table border="0" cellspacing="0" cellpadding="0">
85 <tr>
86 <td class="topLpl"></td>
87 <td rowspan="2" class="hMenuTxt"><a class="lhM" href="eurovoc.html">Pojmovnik Eurovoc</a></td>
88 <td nowrap class="topRpl"></td>
89 </tr>
90 <tr>
91 <td class="hMenuSide"></td>
92 <td class="hMenuSide"></td>
93 </tr>
94 <tr>
95 <td colspan="3" height="10"></td>
96 </tr>
97 </table>
98 </td></tr>
99 </table>
100 </td>
101
102 <td colspan="2" class="hMenu">
103 <table border="0" cellspacing="0" cellpadding="0" align="right" width="520">
104 <tr>
105 <td width="10">&nbsp;</td>
106 <td>
107 <table border="0" cellspacing="0" cellpadding="0">
108 <tr>
109 <td class="topLpl"></td>
110 <td rowspan="2" class="ActMenu">Pretra¾ivanje</td>
111 <td class="topRpl"></td>
112 </tr>
113 <tr>
114 <td class="hMenuSide"></td>
115 <td class="hMenuSide"></td>
116 </tr>
117 <tr>
118 <td class="bottomLpl"></td>
119 <td class="bkgPl"></td>
120 <td class="bottomRpl"></td>
121 </tr>
122 </table>
123 </td>
124 <td width="10">&nbsp;</td>
125 <td>
126 <table border="0" cellspacing="0" cellpadding="0">
127 <tr>
128 <td class="topLpl"></td>
129 <td rowspan="2" class="hMenuTxt"><a class="lhM" href="hijerarhija.html">Hijerarhijski prikaz</a></td>
130 <td class="topRpl"></td>
131 </tr>
132 <tr>
133 <td class="hMenuSide"></td>
134 <td class="hMenuSide"></td>
135 </tr>
136 <tr>
137 <td colspan="3" height="10"></td>
138 </tr>
139 </table>
140 </td>
141 <td width="10">&nbsp;</td>
142 <td>
143 <table border="0" cellspacing="0" cellpadding="0">
144 <tr>
145 <td class="topLpl"></td>
146 <td rowspan="2" class="hMenuTxt"><a class="lhM" href="abecedno.html">Abecedna kazala</a></td>
147 <td class="topRpl"></td>
148 </tr>
149 <tr>
150 <td class="hMenuSide"></td>
151 <td class="hMenuSide"></td>
152 </tr>
153 <tr>
154 <td colspan="3" height="10"></td>
155 </tr>
156 </table>
157 </td>
158 <td width="10">&nbsp;</td>
159 </tr>
160 </table>
161
162 </td>
163 </tr>
164
165 <tr>
166 <td width="200" class="menu">
167 <table border="0" cellspacing="0" cellpadding="0" width="160">
168 <tr>
169 <td colspan="3">&nbsp;</td>
170 </tr>
171 <tr>
172 <td class="topLsv"></td>
173 <td class="middle bkgSv"></td>
174 <td class="topRsv"></td>
175 </tr>
176 <tr>
177 <td colspan="3" class="menuItem2">Upute za pretra¾ivanje</td>
178 </tr>
179 <tr>
180 <td colspan="3" class="menuItem">
181 Upi¹ite tra¾eni pojam i kliknite na Pretra¾i!
182 </td>
183 </tr>
184 <tr>
185 <td colspan="3" class="menuItem">
186 Klik na pojam u listi rezultata pozicionira pojam u
187 hijerarhijskoj strukturi pojmovnika.
188 </td>
189 </tr>
190 <tr>
191 <td colspan="3" class="menuItem">
192 Klik na znak <img src="img/listic.png" border="0"> otvara novi prozor u kojem
193 se pojavljuje detaljan prikaz tra¾enog pojma.
194 </td>
195 </tr>
196 <tr>
197 <td class="bottomLsv"></td>
198 <td class="middle bkgSv"></td>
199 <td class="bottomRsv"></td>
200 </tr>
201 </table>
202
203 </td>
204
205
206 <td class="bd">
207
208 <h3>Pretra¾ivanje pojmovnika Eurovoc</h3>
209
210
211 <!-- debug -->
212 <div style="float: right; width: 10em; text-align: center; margin: 0.5m">
213 <a href="#" onClick="toggle_display('debug');">debug</a>
214 <div style="text-align: left; border: 1px dashed #c0c0c0; display: none;" id="debug">
215 </div>
216 </div>
217 <!-- debug -->
218
219 <div>
220
221 <form id="search" onsubmit="return go(this);" action="?" >
222 <div>
223 <script type="text/javascript">
224 // <!--
225 document.write('<select name="lang" onchange="change_lang(this.options[this.selectedIndex].value);">');
226 select_option("hr","Hrvatski",lang);
227 select_option("en","Engleski",lang);
228 select_option("fr","Francuski",lang);
229 select_option("ge","Njemaèki",lang);
230 select_option("all","Sve rijeèi",lang);
231 document.write('</select>');
232
233 var search_string = ''
234 var last_search = l2_unescape(get_cookie('w2_lastsearch'));
235 if (last_search) search_string = last_search;
236 if (args.query) search_string = args.query.replace(/\+/gi," ");
237
238 document.write('<input name="query" value="'+search_string+'" type="text" size="30" />');
239 // -->
240 </script>
241
242 <input class="submit" type="submit" value="Pretra¾i !"/>
243 <input class="submit" type="button" value="Obri¹i !" onClick="javascript:return clear_last_search('search','query');"/><br/>
244 <br/>
245
246 </div>
247 </form>
248
249 <script type="text/javascript">
250 // <!--
251 if (args.query) {
252 set_cookie('w2_lastsearch', args.query.replace(/\+/gi," "));
253 document.write("<div id=\"status\">Pretra¾ivanje u tijeku...</div>\n");
254 document.write("<ul id=\"results\"></ul>\n");
255 //doSearch(index_name, unac(l2_unescape(args.query)), printResults);
256 doSearch(index_name, unac(args.query), printResults);
257 }
258 // -->
259 </script>
260
261 </div>
262
263
264 </td>
265 </tr>
266 </table>
267
268 </body>
269 </html>

  ViewVC Help
Powered by ViewVC 1.1.26