funkman 2004/12/30 08:37:09
Modified:xdocs-faq tomcat-faq.xsl
Log:
Add google search to the footer to allow search of the FAQ.
build.bat still needs to be run and the html output
needs committed before the change is made effective.
Can anyone review to ensure we are allowed to do this?
Revision ChangesPath
1.2 +34 -1 jakarta-tomcat-site/xdocs-faq/tomcat-faq.xsl
Index: tomcat-faq.xsl
===
RCS file: /home/cvs/jakarta-tomcat-site/xdocs-faq/tomcat-faq.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- tomcat-faq.xsl12 Jun 2003 00:31:14 - 1.1
+++ tomcat-faq.xsl30 Dec 2004 16:37:09 - 1.2
@@ -158,6 +158,39 @@
/td
/tr
+ xsl:if test=$project-menu = 'menu'
+ tr
+ td colspan=2 align='center'
+ form method=GET name='searchForm'
onsubmit=return t_search() action=http://www.google.com/search;
+ input type=hidden name=ie value=UTF-8/
+ input type=hidden name=oe value=UTF-8/
+ table bgcolor=#FFtrtd
+ a href=http://www.google.com/;
+ img
src=http://www.google.com/logos/Logo_40wht.gif;
+ border=0 alt=Google align=absmiddle//a
+ input type=text name=q size=25
maxlength=255 value=/
+ input type=submit name=btnG value=Google
Search/
+ /td/tr/table
+ script
+ /* Append inurl:tomcat/faq
site:jakarta.apache.org */
+ function t_search() {
+
if(!document.searchForm.q.value.match(/inurl:tomcat\/faq/)) {
+ document.searchForm.q.value =
document.searchForm.q.value + inurl:tomcat/faq site:jakarta.apache.org;
+ }
+ return true;
+ }
+ /script
+ /form
+ /td
+ /tr
+ tr
+ td colspan=2
+ hr noshade= size=1/
+ /td
+ /tr
+ /xsl:if
+
+
xsl:commentPAGE FOOTER/xsl:comment
trtd colspan=2
div align=centerfont color={$body-link} size=-1em
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]