/[webpac]/trunk2/out/search.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/out/search.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 396 - (show annotations)
Thu Jul 22 19:00:27 2004 UTC (15 years, 1 month ago) by dpavlin
File MIME type: text/html
File size: 2037 byte(s)
JavaScript sucks: re-implemented unescape to produce ISO-8859-2 charset
(and not ISO-8859-2), unac function to remove accented characters from
ISO-8859-2, use l2_unescape, new results output

1 <!DOCTYPE html PUBLIC
2 "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5 <head>
6 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"/>
7 <title>HIDRA Eurovoc CD</title>
8 <script src="js/l2_unescape.js" type="text/javascript"></script>
9 <script src="js/getargs.js" type="text/javascript"></script>
10 <script src="js/search.js" type="text/javascript"></script>
11 <script src="js/usage.js" type="text/javascript"></script>
12 </head>
13
14 <body>
15
16 <script type="text/javascript">
17 var args=getArgs();
18 function select_option(value,text,selected) {
19 document.write('<option value="'+value+'"');
20 if (value == selected) document.write(' selected');
21 document.write('>'+text+'</option>');
22 }
23 </script>
24
25 <form name="search" onsubmit="return go(this);">
26 <script type="text/javascript">
27 document.write('<select name="index_name">');
28 select_option("index/DescriptorHR","Hrvatski",args.index_name);
29 select_option("index/DescriptorEN","Engleski",args.index_name);
30 select_option("index/DescriptorFR","Francuski",args.index_name);
31 select_option("index/DescriptorGE","Njemaèki",args.index_name);
32 select_option("index/AllThes","Sve rijeèi",args.index_name);
33 document.write('</select>');
34 </script>
35 <script type="text/javascript">
36 document.write("<input name=\"query\" value=\"");
37
38 if (args.query) {
39 var search_string = args.query.replace(/\+/gi," ");
40 document.write(search_string);
41 }
42
43 document.write("\" type=\"text\" size=\"30\"/>\n");
44 </script>
45
46 <input type="SUBMIT" value="Pretra¾i"/><br/>
47 </form>
48
49 <script type="text/javascript">
50
51 if (args.query) {
52 document.write("<div id=\"results\"><h2>Please wait...</h2></div>\n");
53 doSearch(args.index_name, args.query, printResults);
54 }
55
56 </script>
57
58 </body>
59 </html>

  ViewVC Help
Powered by ViewVC 1.1.26