PHP: SidebarSearch
| From: | Engler Reinhard | Date: | Mon, 26 Jul 2004 13:03:40 +0000 |
| Subject: | PHP: SidebarSearch | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-25510@lists.php.net to get a copy of this message | ||
Dear PHP-Team, Dear Webmaster
I'm using mozillas' browser and designd a sidebar page for searching at the
php docs. I think that this would be nice to every php-programmer, and so I
would give you the source for publishing. The sidebar source works on both
mozilla/netscape and IE.
You may find the source below.
<!--
© 2004 Reinhard ENGLER <office@engler.co.at>
file: php-search.html
last modified: July 26 2004 14:30:00.
// -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>PHP: SidebarSearch</title>
<link rel="stylesheet" href="http://www.php.net/style.css" />
<link rel="stylesheet" href="http://www.php.net/styles/mirror.css"
/>
<link rel="shortcut icon" href="http://www.php.net/favicon.ico" />
<script language="Javascript" type="text/javascript"
src="http://www.php.net/userprefs.js"></script>
<base href="http://www.php.net/index.php" />
</head>
<body>
<SCRIPT LANGUAGE="JavaScript1.2">
window.status = "PHP: SidebarSearch";
if (document.all && !window.opera){ //IE5+ {
document.write("<form method=\"post\"
action=\"/search.php\" class=\"thin\" name=\"topsearch\"
target=\"_main\">");
}
else {
document.write("<form method=\"post\"
action=\"/search.php\" class=\"thin\" name=\"topsearch\"
target=\"_content\">");
}
</script>
<table border="0" cellspacing="0" cellpadding="1"
width="100%">
<tr bgcolor="#9999cc"><td>
<SCRIPT LANGUAGE="JavaScript1.2">
if (document.all && !window.opera)
document.write("<a OnMouseOver=\"window.status='Open
PHP.net'; return true;\" OnMouseOut=\"window.status='';return
true;\"href=\"/\" target=\"_main\">");
else
document.write("<a OnMouseOver=\"window.status='Open
PHP.net'; return true;\" OnMouseOut=\"window.status='';return
true;\"href=\"/\" target=\"_content\">");
</SCRIPT>
<img src="/images/php.gif" alt="PHP" width="120"
height="67"
hspace="3" /></a>
</td></tr>
<tr bgcolor="#666699"><td>
<font color="White"><u>S</u>earch at PHP.net</font>
</td></tr>
<tr bgcolor="#666699"><td>
<input OnMouseOver="window.status='Press <ENTER> to execute your
search.'; return true;" OnMouseOut="window.status='';return true;"
class="small" type="text" name="pattern" value=""
size="30" accesskey="s" />
</td></tr>
<tr bgcolor="#666699"><td>
<select name="show" class="small"
OnMouseOver="window.status='Select
from the Drop-Down-List to search in different sections.'; return true;"
OnMouseOut="window.status='';return true;" >
<option value="quickref" selected="selected">function
list</option>
<option value="wholesite">whole site</option>
<option value="manual">online documentation [en]</option>
<option value="bugdb">bug database</option>
<option value="maillist">general mailing list</option>
<option value="devlist">developer mailing list</option>
<option value="phpdoc">documentation mailing list </option>
</select>
</td></tr>
</table>
</form>
<br>
<table border="0" cellspacing="0" cellpadding="1"
width="100%">
<tr>
<td>
<SCRIPT LANGUAGE="JavaScript1.2">
var p_description = "Add <i>PHP: SidebarSearch</i>";
var p_title = "PHP: SidebarSearch";
var p_url = "http://www.php.net/sidebar/php-search.html";
if (document.all && !window.opera){ //IE5+
document.write("<a OnMouseOver=\"window.status='Add
PHP: SidebarSearch'; return true;\" OnMouseOut=\"window.status='';return
true;\" class=\"small\"
href=\"javascript:window.external.AddFavorite('javascript:void(_search=open(
\\'" + p_url + "\\',\\'_search\\'))', '" + p_title +
"')\">" + p_description
+ "</a>");
}
else if (window.opera){ //Opera
document.write("<a OnMouseOver=\"window.status='Add
PHP: SidebarSearch'; return true;\" OnMouseOut=\"window.status='';return
true;\" class=\"small\" href=\"" + p_url + "\"
title=\"" + p_title + "\"
rel=\"sidebar\">" + p_description + "</a>");
}
else if ((typeof window.sidebar == 'object') && (typeof
window.sidebar.addPanel == 'function')){ //Gecko
document.write("<a OnMouseOver=\"window.status='Add
PHP: SidebarSearch'; return true;\" OnMouseOut=\"window.status='';return
true;\" class=\"small\" href=\"javascript:window.sidebar.addPanel ('"
+
p_title + "', '" + p_url + "','');\"
title=\"" + p_title + "\">" +
p_description + "</a>");
}
</script>
</td>
</tr>
<tr>
<td>
<script>
document.writeln("<a OnMouseOver=\"window.status='Reload
PHP: SidebarSearch'; return true;\" OnMouseOut=\"window.status='';return
true;\"class=\"small\" href=\"javascript:location.reload();\"
title=\"" +
p_title + "\">Reload <i>PHP: SidebarSearch</i></a>");
</script>
</td>
</tr>
<tr>
<td>
<a OnMouseOver="window.status='Send an eMail to Reinhard ENGLER';
return true;" OnMouseOut="window.status='';return true;"
class="small"
href="mailto:office@engler.co.at">eMail
to Reinhard ENGLER</a>
</td>
</tr>
</table>
</body>
</html>
Installation-Notice:
There are two ways:
First: Open the page and click an "Add PHP: SidebarSearch"
Secound: Copy the <script>-Block where "Add PHP: SidebarSearch" will
be generated,
and paste it on a place where you want.
In both ways you have to correct server and subdir in p_url at the mark <!--
Add to SideBar -->.
It would be nice, if I would found this code once a time at www.php.net.
mit freundlichen Grüßen,
Yours Sincerely
Ing. Reinhard Engler
aim FINANCIAL SYSTEMS AG
net: http://www.AIM-AG.com
email: mailto:Engler@AIM-AG.com
PGP: http://www.aim-ag.com/PGP/ENGLER.asc
fon: (+43-1) 533 29 96 - 1340
fax: (+43-1) 533 29 96 - 1500
smail: aim FINANCIAL SYSTEMS AG
Donau-City-Straße 1
A-1220 Wien, Austria
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail sind nicht gestattet. This e-mail may contain
confidential and/or privileged information. If you are not the intended
recipient (or have received this e-mail in error) please notify the sender
immediately and destroy this e-mail. Any unauthorised copying, disclosure or
distribution of the material in this e-mail is strictly forbidden.