/[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

Annotation of /trunk2/eurovoc/abecedno.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 524 - (hide annotations)
Tue Oct 19 15:46:39 2004 UTC (16 years, 3 months ago) by dpavlin
File MIME type: text/html
File size: 8982 byte(s)
localisation, picture for crovoc

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

  ViewVC Help
Powered by ViewVC 1.1.26