The R Project SVN R

Rev

Rev 1252 | Rev 6155 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1252 Rev 3765
Line 7... Line 7...
7
 
7
 
8
// searching is disabled until the applet is initialized
8
// searching is disabled until the applet is initialized
9
enableSearch = false;
9
enableSearch = false;
10
 
10
 
11
// main search entry point
11
// main search entry point
-
 
12
//
-
 
13
// 98-05-14 | baier | forward kwonly to the search function
-
 
14
//------------------------------------------------------------------------------
12
function searchInIndex (srch_trm,kwonly)
15
function searchInIndex (srch_trm,kwonly)
13
{
16
{
14
  // if the applet is not initialized, ignore search results
17
  // if the applet is not initialized, ignore search results
15
  if (enableSearch == false) {
18
  if (enableSearch == false) {
16
    return "";
19
    return "";
17
  }
20
  }
18
  line =        '<html><head>\n';
21
  line =        '<html><head>\n';
19
 
-
 
20
  line = line + '<title>Search Results</title>\n';
22
  line = line + '<title>Search Results</title>\n';
21
  line = line + '\n';
23
  line = line + '\n';
22
 
24
 
23
  line = line + '<body TEXT=\"#000000\" BGCOLOR=\"#FFFFFF\" LINK=\"#0000F0\"'
-
 
24
  line = line + 'VLINK=\"#660066\" ALINK=\"#FF0000\" BACKGROUND=\"white\" >\n';
-
 
25
 
-
 
26
  line = line + '<h2 align=center><FONT FACE=\"Courier New,Courier\"';
25
  line = line + '<body bgcolor="white">\n';
27
  line = line + 'COLOR=\"#999999\">Search Results</FONT></h2>';
-
 
28
 
26
 
-
 
27
  line = line + '<h1>Search Results</h1>\n';
29
 
28
 
30
  // call the applet code!
29
  // call the applet code!
31
  line = line + document.SearchEngine.search (srch_trm);
30
  line = line + document.SearchEngine.search (srch_trm,!kwonly);
32
 
31
 
33
  line = line + '</body>\n';
32
  line = line + '</body>\n';
34
 
33
 
35
  document.write (line);
34
  document.write (line);
36
 
35
 
Line 60... Line 59...
60
</TABLE>
59
</TABLE>
61
 
60
 
62
<HR WIDTH="100%">
61
<HR WIDTH="100%">
63
 
62
 
64
<p>
63
<p>
65
This search engine is in alpha stage ... don't expect too
-
 
66
much. Currently you can only search for functions of the base package,
-
 
67
but searching all packages should be implemented soon.
-
 
68
 
-
 
69
<p>
-
 
70
<h1 align=center>
64
<h1 align=center>
71
<FONT FACE="Courier New,Courier" COLOR="#666666"><b>
65
<FONT FACE="Courier New,Courier" COLOR="#666666"><b>
72
Search</b></font></h1>
66
Search</b></font></h1>
73
 
67
 
74
<p>
68
<p>
Line 78... Line 72...
78
<b>Usage:</b> Enter a string in the text field below and hit
72
<b>Usage:</b> Enter a string in the text field below and hit
79
<code>RETURN</code>.
73
<code>RETURN</code>.
80
 
74
 
81
<form
75
<form
82
     name="f"
76
     name="f"
83
     onSubmit="searchInIndex (document.f.SEARCHTERM.value,document.f.KEYWORDSONLY); return false;"
77
     onSubmit="searchInIndex (document.f.SEARCHTERM.value,document.f.KEYWORDSONLY.checked); return false;"
84
     >
78
     >
85
 
79
 
86
<INPUT TYPE=TEXT NAME="SEARCHTERM" SIZE=20 MAXLENGTH=256 VALUE="">
80
<INPUT TYPE=TEXT NAME="SEARCHTERM" SIZE=20 MAXLENGTH=256 VALUE="">
87
<INPUT NAME="KEYWORDSONLY" TYPE=CHECKBOX VALUE="abc"><b>Keywords only</b><br>
81
<INPUT NAME="KEYWORDSONLY" TYPE=CHECKBOX VALUE="abc"><b>Keywords only</b><br>
88
<INPUT VALUE="Search" TYPE=SUBMIT>
82
<INPUT VALUE="Search" TYPE=SUBMIT>