Home > Archive > PHP Mirrors > July 2004 > PHP: SidebarSearch
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
PHP: SidebarSearch
|
|
| Engler Reinhard 2004-07-26, 3:57 pm |
| 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.
<!--
=A9 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=3D"stylesheet" href=3D"http://www.php.net/style.css" />
<link rel=3D"stylesheet" href=3D"http://www.php.net/styles/mirror.css"
/>
<link rel=3D"shortcut icon" href=3D"http://www.php.net/favicon.ico" />
<script language=3D"Javascript" type=3D"text/javascript"
src=3D"http://www.php.net/userprefs.js"></script>
<base href=3D"http://www.php.net/index.php" />
</head>
<body>
<SCRIPT LANGUAGE=3D"JavaScript1.2">
window.status =3D "PHP: SidebarSearch";
=09
if (document.all && !window.opera){ //IE5+ {
document.write("<form method=3D\"post\"
action=3D\"/search.php\" class=3D\"thin\" name=3D\"topsearch\"
target=3D\"_main\">");
}
else {
document.write("<form method=3D\"post\"
action=3D\"/search.php\" class=3D\"thin\" name=3D\"topsearch\"
target=3D\"_content\">");
}
</script>
<table border=3D"0" cellspacing=3D"0" cellpadding=3D"1" =
width=3D"100%">
<tr bgcolor=3D"#9999cc"><td>
<SCRIPT LANGUAGE=3D"JavaScript1.2">
if (document.all && !window.opera)
document.write("<a OnMouseOver=3D\"window.status=3D'Open
PHP.net'; return true;\" OnMouseOut=3D\"window.status=3D'';return
true;\"href=3D\"/\" target=3D\"_main\">");
else
document.write("<a OnMouseOver=3D\"window.status=3D'Open
PHP.net'; return true;\" OnMouseOut=3D\"window.status=3D'';return
true;\"href=3D\"/\" target=3D\"_content\">");
</SCRIPT>
<img src=3D"/images/php.gif" alt=3D"PHP" width=3D"120" height=3D"67"
hspace=3D"3" /></a>
</td></tr>
<tr bgcolor=3D"#666699"><td>
<font color=3D"White"><u>S</u>earch at PHP.net</font>
</td></tr>
<tr bgcolor=3D"#666699"><td>
<input OnMouseOver=3D"window.status=3D'Press <ENTER> to execute your
search.'; return true;" OnMouseOut=3D"window.status=3D'';return true;"
class=3D"small" type=3D"text" name=3D"pattern" value=3D"" size=3D"30" =
accesskey=3D"s" />
</td></tr>
<tr bgcolor=3D"#666699"><td>
<select name=3D"show" class=3D"small" =
OnMouseOver=3D"window.status=3D'Select
from the Drop-Down-List to search in different sections.'; return =
true;"
OnMouseOut=3D"window.status=3D'';return true;" >
<option value=3D"quickref" selected=3D"selected">function
list</option>
<option value=3D"wholesite">whole site</option>
<option value=3D"manual">online documentation [en]</option>
<option value=3D"bugdb">bug database</option>
<option value=3D"maillist">general mailing list</option>
<option value=3D"devlist">developer mailing list</option>
<option value=3D"phpdoc">documentation mailing list </option>
</select>
</td></tr>
</table>
</form>
<br>
<table border=3D"0" cellspacing=3D"0" cellpadding=3D"1" width=3D"100%">
<tr>
<td>
<SCRIPT LANGUAGE=3D"JavaScript1.2">=20
var p_description =3D "Add <i>PHP: SidebarSearch</i>";
var p_title =3D "PHP: SidebarSearch";
var p_url =3D "http://www.php.net/sidebar/php-search.html";
=09
if (document.all && !window.opera){ //IE5+
document.write("<a OnMouseOver=3D\"window.status=3D'Add
PHP: SidebarSearch'; return true;\" =
OnMouseOut=3D\"window.status=3D'';return
true;\" class=3D\"small\"
href=3D\"java script:window.external.AddFavorite('java script:void(_search=
=3Dopen(
\'" + p_url + "\',\'_search\'))', '" + p_title + "')\">" + =
p_description
+ "</a>");
}
else if (window.opera){ //Opera
document.write("<a OnMouseOver=3D\"window.status=3D'Add
PHP: SidebarSearch'; return true;\" =
OnMouseOut=3D\"window.status=3D'';return
true;\" class=3D\"small\" href=3D\"" + p_url + "\" title=3D\"" + =
p_title + "\"
rel=3D\"sidebar\">" + p_description + "</a>");
}
else if ((typeof window.sidebar =3D=3D 'object') && (typeof
window.sidebar.addPanel =3D=3D 'function')){ //Gecko
document.write("<a OnMouseOver=3D\"window.status=3D'Add
PHP: SidebarSearch'; return true;\" =
OnMouseOut=3D\"window.status=3D'';return
true;\" class=3D\"small\" href=3D\"java script:window.sidebar.addPanel =
('" +
p_title + "', '" + p_url + "','');\" title=3D\"" + p_title + "\">" +
p_description + "</a>");
}
=09
</script>
</td>
</tr>
<tr>
<td>
<script>
document.writeln("<a OnMouseOver=3D\"window.status=3D'Reload
PHP: SidebarSearch'; return true;\" =
OnMouseOut=3D\"window.status=3D'';return
true;\"class=3D\"small\" href=3D\"java script:location.reload();\" =
title=3D\"" +
p_title + "\">Reload <i>PHP: SidebarSearch</i></a>");
</script>
</td>
</tr>
<tr>
<td>
<a OnMouseOver=3D"window.status=3D'Send an eMail to Reinhard ENGLER';
return true;" OnMouseOut=3D"window.status=3D'';return true;" =
class=3D"small"
href=3D"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,=20
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=FC=DFen,
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=DFe 1
A-1220 Wien, Austria
Diese E-Mail enth=E4lt vertrauliche und/oder rechtlich gesch=FCtzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese =
E-Mail
irrt=FCmlich 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.
| |
| Gabor Hojtsy 2004-07-26, 3:57 pm |
| Hi Engler,
Seems like you are not familiar with http://php.net/sidebars?
Goba
Engler Reinhard írta:
> 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=\"java script:window.external. AddFavorite('java script:void(_search=ope
n(
> \'" + 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=\"java script: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=\"java script: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.
>
|
|
|
|
|