/[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 526 - (hide annotations)
Tue Oct 19 15:50:13 2004 UTC (16 years, 3 months ago) by dpavlin
File MIME type: text/html
File size: 9049 byte(s)
added picture for link

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 dpavlin 526 var pic = self.document.createElement("img");
45     pic.src = 'img/listic.png';
46     pic.border = 0;
47     e.appendChild(pic);
48 dpavlin 523 li.appendChild(e);
49 dpavlin 484
50 dpavlin 523 li.appendChild(self.document.createElement("br"));
51 dpavlin 484
52 dpavlin 523 // append li
53     r_div.appendChild(li);
54    
55 dpavlin 484 } 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 dpavlin 524
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+" znakova 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 dpavlin 484 }
90    
91 dpavlin 509 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 dpavlin 518 var headlines = null;
102     self.document.myfilter = null;
103 dpavlin 509
104 dpavlin 518 function load_lang(lang) {
105 dpavlin 509 // reset results
106 dpavlin 519 if (self.document.myfilter) element_id('results').innerHTML = "";
107 dpavlin 509
108     set_cookie('w2_lang', lang);
109 dpavlin 518 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 load_lang_finished() {
119     //alert("loaded "+lang);
120     myfilter();
121 dpavlin 509 self.document.myfilter.arr=headlines;
122 dpavlin 518 element_id('lang').disabled = false;
123     element_id('textfilter').disabled = false;
124     if (self.document.myfilter) self.document.myfilter.filter(element_id('textfilter').value);
125     return false;
126 dpavlin 509 }
127    
128     function select_option(value,text,selected) {
129     document.write('<option value="'+value+'"');
130     if (value == selected) document.write(' selected');
131     document.write('>'+text+'</option>');
132     }
133     // -->
134 dpavlin 484 </script>
135     <script type="text/javascript" src="js/hide.js"></script>
136     </head>
137    
138 dpavlin 518 <body onload="load_lang(lang);">
139 dpavlin 484 <table width="100%" border="0" cellspacing="0" cellpadding="0">
140     <tr>
141     <td colspan="3" class="hdr" height="10">
142     </td>
143     </tr>
144     <tr>
145     <td class="logoHidra">
146     <img src="img/euzajed.png" border="0" alt="Europske zajednice">
147     </td>
148     <td class="logoHidra">
149     <img src="img/hidra.png" border="0" alt="HIDRA logo">
150     </td>
151     <td class="logoEUV">
152     <a href="index.html"><img src="img/eurovoc2.png" border="0" alt="Eurovoc"></a>
153     </td>
154     </tr>
155     <tr>
156     <td class="hdr2" height="10" colspan="3">
157     </td>
158    
159     </tr>
160     </table>
161    
162    
163     <table border="0" cellspacing="0" cellpadding="0" width="100%">
164     <tr>
165     <td class="hMenuL hMenu">
166     <table width="160" cellspacing="0" cellpadding="0">
167     <tr><td>
168     <table border="0" cellspacing="0" cellpadding="0">
169     <tr>
170     <td class="topLpl"></td>
171     <td rowspan="2" class="hMenuTxt"><a class="lhM" href="eurovoc.html">Pojmovnik Eurovoc</a></td>
172     <td nowrap class="topRpl"></td>
173     </tr>
174     <tr>
175     <td class="hMenuSide"></td>
176     <td class="hMenuSide"></td>
177     </tr>
178     <tr>
179     <td colspan="3" height="10"></td>
180     </tr>
181     </table>
182     </td></tr>
183     </table>
184     </td>
185    
186     <td colspan="2" class="hMenu">
187     <table border="0" cellspacing="0" cellpadding="0" align="right" width="520">
188     <tr>
189     <td width="10">&nbsp;</td>
190     <td>
191     <table border="0" cellspacing="0" cellpadding="0">
192     <tr>
193     <td class="topLpl"></td>
194     <td rowspan="2" class="hMenuTxt"><a class="lhM" href="pretrazivanje.html">Pretra¾ivanje</a></td>
195     <td class="topRpl"></td>
196     </tr>
197     <tr>
198     <td class="hMenuSide"></td>
199     <td class="hMenuSide"></td>
200     </tr>
201     <tr>
202     <td colspan="3" height="10"></td>
203     </tr>
204     </table>
205     </td>
206     <td width="10">&nbsp;</td>
207     <td>
208     <table border="0" cellspacing="0" cellpadding="0">
209     <tr>
210     <td class="topLpl"></td>
211     <td rowspan="2" class="hMenuTxt"><a class="lhM" href="hijerarhija.html">Hijerarhijski prikaz</a></td>
212     <td class="topRpl"></td>
213     </tr>
214     <tr>
215     <td class="hMenuSide"></td>
216     <td class="hMenuSide"></td>
217     </tr>
218     <tr>
219     <td colspan="3" height="10"></td>
220     </tr>
221     </table>
222     </td>
223     <td width="10">&nbsp;</td>
224     <td>
225     <table border="0" cellspacing="0" cellpadding="0">
226     <tr>
227     <td class="topLpl"></td>
228     <td rowspan="2" class="ActMenu">Abecedna kazala</td>
229     <td class="topRpl"></td>
230     </tr>
231     <tr>
232     <td class="hMenuSide"></td>
233     <td class="hMenuSide"></td>
234     </tr>
235     <tr>
236     <td class="bottomLpl"></td>
237     <td class="bkgPl"></td>
238     <td class="bottomRpl"></td>
239     </tr>
240     </table>
241     </td>
242     <td width="10">&nbsp;</td>
243     </tr>
244     </table>
245    
246     </td>
247     </tr>
248    
249     <tr>
250     <td width="200" class="menu">
251     <table border="0" cellspacing="0" cellpadding="0" width="160">
252     <tr>
253     <td colspan="3">&nbsp;</td>
254     </tr>
255     <tr>
256     <td class="topLsv"></td>
257     <td class="middle bkgSv"></td>
258     <td class="topRsv"></td>
259     </tr>
260     <tr>
261     <td colspan="3" class="menuItem2">Upute za prikaz abecednih kazala</td>
262     </tr>
263     <tr>
264     <td colspan="3" class="menuItem">
265     Upi¹ite najmanje <em>dva poèetna slova</em> tra¾enog
266     pojma.
267     </td>
268     </tr>
269     <tr>
270     <td colspan="3" class="menuItem">
271     Klik na pojam u abecednom kazalu pozicionira pojam u
272     hijerarhijkoij strukturi pojmovnika.
273     </td>
274     </tr>
275     <tr>
276     <td colspan="3" class="menuItem">
277     Klik na znak &raquo; otvara novi prozor u kojem
278     se pojavljuje detaljan prikaz tra¾enog pojma.
279     </td>
280     </tr>
281     <tr>
282     <td class="bottomLsv"></td>
283     <td class="middle bkgSv"></td>
284     <td class="bottomRsv"></td>
285     </tr>
286     </table>
287    
288     </td>
289    
290    
291     <td class="bd">
292    
293     <h3>Abecedna kazala</h3>
294    
295    
296     <div style="float: right; width: 10em; text-align: center; margin: 0.5m">
297 dpavlin 509 <a href="#" onclick="toggle_display('debug');">debug</a>
298     <div style="text-align: left; border: 1px dashed #c0c0c0; display: none;" id="debug">
299     </div>
300 dpavlin 484 </div>
301    
302 dpavlin 509 <form method="get" onsubmit="return false;" action="?">
303     <div class="filters">
304     <script type="text/javascript">
305     // <!--
306 dpavlin 518 document.write('<select id="lang" name="lang" onchange="load_lang(this.options[this.selectedIndex].value);">');
307 dpavlin 509 select_option("hr","Hrvatski",lang);
308     select_option("en","Engleski",lang);
309     select_option("fr","Francuski",lang);
310     select_option("ge","Njemaèki",lang);
311     document.write('</select>');
312     // -->
313     </script>
314 dpavlin 484
315 dpavlin 509 <input autocomplete="off" class="filters" id="textfilter" title="enter a regular expression to filter by" onkeyup="self.document.myfilter.filter(this.value);" />
316 dpavlin 484 <!-- this button is strictly for looks -->
317 dpavlin 518 <input class="filters" value="filter" type="button" disabled="true"/>
318 dpavlin 484 </div>
319     </form>
320    
321     <div id="status" style="font-size: 80%; color: gray;">
322     <!--
323     Enter few letters to filter by them
324     -->
325     </div>
326    
327 dpavlin 523 <ul id="results">
328     </ul>
329 dpavlin 484
330     </td>
331     </tr>
332     </table>
333    
334     </body>
335     </html>

  ViewVC Help
Powered by ViewVC 1.1.26