/[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 539 - (show annotations)
Sun Oct 24 11:20:12 2004 UTC (16 years, 1 month ago) by dpavlin
File MIME type: text/html
File size: 9312 byte(s)
fallback from 'all' to 'hr', warning about non-existent language

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

  ViewVC Help
Powered by ViewVC 1.1.26