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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 565 - (show annotations)
Sun Oct 31 03:50:01 2004 UTC (16 years, 5 months ago) by dpavlin
File MIME type: text/html
File size: 10661 byte(s)
design

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 http-equiv="Content-Type" content="text/html; charset=iso-8859-2"/>
6 <link rel="stylesheet" href="eurovoc.css" type="text/css">
7
8 <script type="text/javascript" src="js/bfilter.js"></script>
9 <script type="text/javascript" src="js/popup.js"></script>
10 <script type="text/javascript" src="js/load_js.js"></script>
11 <script type="text/javascript" src="js/cookies.js"></script>
12 <script type="text/javascript" src="js/l2_unescape.js"></script>
13 <script type="text/javascript" src="js/unac.js"></script>
14 <script type="text/javascript" src="js/clear_last_search.js"></script>
15 <script type="text/javascript">
16 // <!--
17
18 var lang2thes = {
19 'hr' : 'DescriptorHR.js',
20 'en' : 'DescriptorEN.js',
21 'fr' : 'DescriptorFR.js',
22 'ge' : 'DescriptorGE.js'
23 };
24
25 var lang = get_cookie('w2_lang');
26
27 var headlines = null;
28 self.document.myfilter = null;
29
30 function myfilter() {
31 // self.document.getElementById('textfilter').focus();
32 // self.document.getElementById('textfilter').caretPos=1;
33 // self.document.getElementById('textfilter').select();
34 self.document.myfilter = new BFilter(headlines);
35
36 // define some regexps
37 self.document.myfilter.star_regex = new RegExp(/ *#C# */i);
38 self.document.myfilter.htmlent_regex = new RegExp(/(&[a-z][a-z]*;)/i);
39
40 self.document.myfilter.text_ent = function (str) {
41 if (str.match(this.htmlent_regex)) {
42 var e = self.document.createElement("span");
43 e.innerHTML = str;
44 return e;
45 } else {
46 return self.document.createTextNode(str);
47 }
48 }
49
50 self.document.myfilter.result = function (arr) {
51 var r_div = element_id('results');
52 if (r_div) {
53 var li = self.document.createElement("li");
54 var e = self.document.createElement("a");
55 var pic = null;
56
57 e.setAttribute("href","hijerarhija.html?o="+arr[1]+"#mfn"+arr[1]);
58 if (arr[0].match(this.star_regex)) {
59 e.appendChild(this.text_ent(arr[2].replace(this.star_regex,' ')));
60 pic = self.document.createElement("img");
61 pic.src = 'img/crovoc.png';
62 pic.border = 0;
63 e.appendChild(pic);
64 } else {
65 e.appendChild(this.text_ent(arr[2]));
66 }
67 li.appendChild(e);
68
69 li.appendChild(self.document.createTextNode(" "));
70
71 e = self.document.createElement("a");
72 e.setAttribute("href","thes/"+arr[1]+".html");
73 e.setAttribute("target","popup");
74 e.onclick = function() { return popup(e) };
75 pic = self.document.createElement("img");
76 pic.src = 'img/listic.png';
77 pic.border = 0;
78 e.appendChild(pic);
79 li.appendChild(e);
80
81 li.appendChild(self.document.createElement("br"));
82
83 // append li
84 r_div.appendChild(li);
85
86 } else {
87 alert("can't find results div!");
88 }
89 /*
90 return '<li><a href="thes/'+arr[1]+'.html">'+arr[0]+'</a>'+
91 '&nbsp;<a href="browse.html?o='+arr[1]+'">&curren;</a>' +
92 '</li>';
93 */
94 return null;
95 }
96
97 // this function is called when updating innerHTML with results
98 self.document.myfilter.display = function (html) {
99 return null;
100 // return '<ul>'+html+'</ul>';
101 }
102
103 self.document.myfilter.show_status = function (status) {
104 var html;
105 if (this.hits > 0) {
106 html = "Pronaðeno "+this.hits+" zapisa";
107 } else {
108 html = "Nije pronaðen niti jedan zapis";
109 }
110 if (! status) {
111 html = "Unesite "+this.min_len+" znaka za pretra¾ivanje.";
112 status = "";
113 } else {
114 status = " za <em>"+status+"</em>.";
115 }
116
117 var el = this.element_id("status");
118 el.innerHTML = html+status+"\n";
119 }
120
121 // time timeout to 500ms
122 self.document.myfilter.timeout = 500;
123 }
124
125 function load_lang(lang) {
126 // reset results
127 if (self.document.myfilter) element_id('results').innerHTML = "";
128
129 // default language or fallback from all to hr
130 if (! lang || lang == 'all') lang = 'hr';
131
132 if (! lang2thes[lang]) {
133 alert("Jezik "+lang+" nije podr¾an");
134 }
135
136 set_cookie('w2_lang', lang);
137 element_id('lang').disabled = true;
138 element_id('textfilter').disabled = true;
139 element_id('status').innerHTML = "Uèitavanje podataka za jezik. Molimo, prièekate...";
140
141 self.document.myfilter = null;
142
143 load_js(lang2thes[lang], 'headlines', 'load_lang_finished();' );
144 }
145
146 function do_filter(filter) {
147 set_cookie('w2_lastsearch', filter);
148 var f = l2_unescape(filter);
149 f = f.substr(0,2) + unac(f.substr(2,f.length-2));
150 if (self.document.myfilter) {
151 element_id('status').innerHTML = "Pretra¾ivanje u tijeku...";
152 self.document.myfilter.filter(f);
153 }
154 }
155
156 function load_lang_finished() {
157 //alert("loaded "+lang);
158 myfilter();
159 self.document.myfilter.arr=headlines;
160 element_id('lang').disabled = false;
161 element_id('textfilter').disabled = false;
162 var q = element_id('textfilter').value;
163 if (q && q.length >= self.document.myfilter.min_len) {
164 do_filter(q);
165 } else {
166 self.document.myfilter.show_status();
167 }
168 return false;
169 }
170
171 function select_option(value,text,selected) {
172 document.write('<option value="'+value+'"');
173 if (value == selected) document.write(' selected');
174 document.write('>'+text+'</option>');
175 }
176 // -->
177 </script>
178 <script type="text/javascript" src="js/hide.js"></script>
179 </head>
180
181 <body onload="load_lang(lang);">
182 <table width="100%" border="0" cellspacing="0" cellpadding="0">
183 <tr>
184 <td colspan="3" class="hdr" height="10">
185 </td>
186 </tr>
187 <tr>
188 <td class="logoHidra">
189 <img src="img/euzajed.png" border="0" alt="Europske zajednice">
190 </td>
191 <td class="logoHidra">
192 <img src="img/hidra.png" border="0" alt="HIDRA logo">
193 </td>
194 <td class="logoEUV">
195 <a href="index.html"><img src="img/eurovoc2.png" border="0" alt="Eurovoc"></a>
196 </td>
197 </tr>
198 <tr>
199 <td class="hdr2" height="10" colspan="3">
200 </td>
201
202 </tr>
203 </table>
204
205
206 <table border="0" cellspacing="0" cellpadding="0" width="100%">
207 <tr>
208 <td class="hMenuL hMenu">
209 <table width="160" cellspacing="0" cellpadding="0">
210 <tr><td>
211 <table border="0" cellspacing="0" cellpadding="0">
212 <tr>
213 <td class="topLpl"></td>
214 <td rowspan="2" class="hMenuTxt"><a class="lhM" href="eurovoc.html">Pojmovnik Eurovoc</a></td>
215 <td nowrap class="topRpl"></td>
216 </tr>
217 <tr>
218 <td class="hMenuSide"></td>
219 <td class="hMenuSide"></td>
220 </tr>
221 <tr>
222 <td colspan="3" height="10"></td>
223 </tr>
224 </table>
225 </td></tr>
226 </table>
227 </td>
228
229 <td colspan="2" class="hMenu">
230 <table border="0" cellspacing="0" cellpadding="0" align="left" width="520">
231 <tr>
232 <td width="10">&nbsp;</td>
233 <td>
234 <table border="0" cellspacing="0" cellpadding="0">
235 <tr>
236 <td class="topLpl"></td>
237 <td rowspan="2" class="hMenuTxt"><a class="lhM" href="pretrazivanje.html">Pretra¾ivanje</a></td>
238 <td class="topRpl"></td>
239 </tr>
240 <tr>
241 <td class="hMenuSide"></td>
242 <td class="hMenuSide"></td>
243 </tr>
244 <tr>
245 <td colspan="3" height="10"></td>
246 </tr>
247 </table>
248 </td>
249 <td width="10">&nbsp;</td>
250 <td>
251 <table border="0" cellspacing="0" cellpadding="0">
252 <tr>
253 <td class="topLpl"></td>
254 <td rowspan="2" class="hMenuTxt"><a class="lhM" href="hijerarhija.html">Hijerarhijski prikaz</a></td>
255 <td class="topRpl"></td>
256 </tr>
257 <tr>
258 <td class="hMenuSide"></td>
259 <td class="hMenuSide"></td>
260 </tr>
261 <tr>
262 <td colspan="3" height="10"></td>
263 </tr>
264 </table>
265 </td>
266 <td width="10">&nbsp;</td>
267 <td>
268 <table border="0" cellspacing="0" cellpadding="0">
269 <tr>
270 <td class="topLpl"></td>
271 <td rowspan="2" class="ActMenu">Abecedna kazala</td>
272 <td class="topRpl"></td>
273 </tr>
274 <tr>
275 <td class="hMenuSide"></td>
276 <td class="hMenuSide"></td>
277 </tr>
278 <tr>
279 <td class="bottomLpl"></td>
280 <td class="bkgPl"></td>
281 <td class="bottomRpl"></td>
282 </tr>
283 </table>
284 </td>
285 <td width="10">&nbsp;</td>
286 </tr>
287 </table>
288
289 </td>
290 </tr>
291
292 <tr>
293 <td width="200" class="menu">
294 <table border="0" cellspacing="0" cellpadding="0" width="160">
295 <tr>
296 <td colspan="3">&nbsp;</td>
297 </tr>
298 <tr>
299 <td class="topLsv"></td>
300 <td class="middle bkgSv"></td>
301 <td class="topRsv"></td>
302 </tr>
303 <tr>
304 <td colspan="3" class="menuItem2">Upute za prikaz <br>abecednih kazala</td>
305 </tr>
306 <tr>
307 <td colspan="3" class="menuItem">
308 Upi¹ite najmanje <em>dva poèetna slova</em> tra¾enog
309 pojma.
310 </td>
311 </tr>
312 <tr>
313 <td colspan="3" class="menuItem">
314 Klik na pojam u abecednom kazalu pozicionira pojam u
315 hijerarhijkoij strukturi pojmovnika.
316 </td>
317 </tr>
318 <tr>
319 <td colspan="3" class="menuItem">
320 Klik na znak <img src="img/listic.png" border="0"> otvara novi prozor u kojem
321 se pojavljuje detaljan prikaz tra¾enog pojma.
322 </td>
323 </tr>
324 <tr>
325 <td colspan="3" class="menuItem">
326 Oznaka <img src="img/crovoc.png" border="0"> oznaèava<br> pojmove
327 iz Hrvatskog<br> dodatka.
328 </td>
329 </tr>
330 <tr>
331 <td class="bottomLsv"></td>
332 <td class="middle bkgSv"></td>
333 <td class="bottomRsv"></td>
334 </tr>
335 </table>
336
337 </td>
338
339
340 <td class="bd">
341
342 <h3>Abecedna kazala</h3>
343
344
345 <div style="float: right; width: 10em; text-align: center; margin: 0.5m">
346 <a href="#" onclick="toggle_display('debug');">debug</a>
347 <div style="text-align: left; border: 1px dashed #c0c0c0; display: none;" id="debug">
348 </div>
349 </div>
350
351 <form id="filterform" method="get" onsubmit="return false;" action="?" >
352 <div class="filters">
353 <script type="text/javascript">
354 // <!--
355 document.write('<select id="lang" name="lang" onchange="load_lang(this.options[this.selectedIndex].value);">');
356 select_option("hr","Hrvatski",lang);
357 select_option("en","Engleski",lang);
358 select_option("fr","Francuski",lang);
359 select_option("ge","Njemaèki",lang);
360 document.write('</select>');
361
362 document.write('<input autocomplete="off" class="filters" id="textfilter" title="enter a regular expression to filter by" onkeyup="do_filter(this.value);" value="'+get_cookie('w2_lastsearch')+'"/>');
363 // -->
364 </script>
365 <!-- this button is strictly for looks -->
366 <!--
367 <input class="filters" value="filter" type="button" disabled="true"/>
368 -->
369 <input class="submit" type="button" value="Obri¹i !" onClick="javascript:element_id('results').innerHTML = ''; self.document.myfilter.show_status(); return clear_last_search('filterform','textfilter');"/><br/>
370 </div>
371 </form>
372
373 <div id="status">
374 <!--
375 Enter few letters to filter by them
376 -->
377 </div>
378
379 <ul id="results">
380 </ul>
381
382 </td>
383 </tr>
384 </table>
385
386 </body>
387 </html>

  ViewVC Help
Powered by ViewVC 1.1.26