/[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 531 - (show annotations)
Tue Oct 19 18:15:53 2004 UTC (16 years, 9 months ago) by dpavlin
File MIME type: text/html
File size: 9150 byte(s)
fix few more warnings and cosmetic changes

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

  ViewVC Help
Powered by ViewVC 1.1.26