/[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 523 - (show annotations)
Tue Oct 19 15:17:25 2004 UTC (16 years, 7 months ago) by dpavlin
File MIME type: text/html
File size: 8241 byte(s)
make results as <ul>

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

  ViewVC Help
Powered by ViewVC 1.1.26