forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject svn commit: rev 21086 - forrest/trunk/src/core/context/skins/krysalis-site/xslt/html
Date Fri, 11 Jun 2004 11:04:14 GMT
Author: nicolaken
Date: Fri Jun 11 04:04:13 2004
New Revision: 21086

Modified:
   forrest/trunk/src/core/context/skins/krysalis-site/xslt/html/site2xhtml.xsl
Log:
Revert skin to have another search box. Need to make it configurable.

Modified: forrest/trunk/src/core/context/skins/krysalis-site/xslt/html/site2xhtml.xsl
==============================================================================
--- forrest/trunk/src/core/context/skins/krysalis-site/xslt/html/site2xhtml.xsl	(original)
+++ forrest/trunk/src/core/context/skins/krysalis-site/xslt/html/site2xhtml.xsl	Fri Jun 11
04:04:13 2004
@@ -292,6 +292,92 @@
         <td height="10" colspan="2"></td>
       </tr>
       
+      <xsl:if test="$config/search">
+      <tr>
+        <td></td>
+        <td class="search">
+          <xsl:choose>
+          <xsl:when test="$config/search/@provider = 'lucene'">
+            <form method="get" action="{$root}{$lucene-search}">
+             <table class="dialog" cellspacing="0" cellpadding="0" border="0" width="100%">
+                <tr>
+                  <td class="border top-left"></td>
+                  <td class="border"></td>
+                  <td class="border top-right"></td>
+                </tr>    
+                <tr>
+                  <td class="border" ></td>
+                  <td colspan="2" class="border" height="10"><b>Search</b></td>
+                </tr>
+                <tr>
+                  <td colspan="3" height="8"></td>
+                </tr>
+                <tr>
+                  <td></td>
+                  <td>
+                    <input type="hidden" name="sitesearch" value="{$config/search/@domain}"/>
+                    the <xsl:value-of select="$config/search/@name"/> site
+                    <br />
+                    <input type="text" id="query" name="queryString" size="13"/><input
type="submit" value="Go" name="Search"/>
+                  </td>
+                  <td></td>
+                </tr>
+
+                <tr>
+                  <td colspan="3" height="7"></td>
+                </tr>
+
+                <tr>
+                  <td class="border bottom-left"></td>
+                  <td class="border bottomborder"></td>
+                  <td class="border bottom-right"></td>
+                </tr>
+              </table>
+            </form>
+	  </xsl:when>
+          <xsl:otherwise>
+            <form method="get" action="http://www.google.com/search" target="_blank">
+             <table class="dialog" cellspacing="0" cellpadding="0" border="0" width="100%">
+                <tr>
+                  <td class="border top-left"></td>
+                  <td class="border"></td>
+                  <td class="border top-right"></td>
+                </tr>    
+                <tr>
+                  <td class="border" ></td>
+                  <td colspan="2" class="border" height="10"><b>Search</b></td>
+                </tr>
+                <tr>
+                  <td colspan="3" height="8"></td>
+                </tr>
+                <tr>
+                  <td></td>
+                  <td>
+                    <input type="hidden" name="as_sitesearch" value="{$config/search/@domain}"/>
+                    the <xsl:value-of select="$config/search/@name"/> site
+                    <br />
+                    <input type="text" id="query" name="as_q" size="13"/><input
type="submit" value="Go" name="Search"/>
+                  </td>
+                  <td></td>
+                </tr>
+
+                <tr>
+                  <td colspan="3" height="7"></td>
+                </tr>
+
+                <tr>
+                  <td class="border bottom-left"></td>
+                  <td class="border bottomborder"></td>
+                  <td class="border bottom-right"></td>
+                </tr>
+              </table>
+            </form>
+	  </xsl:otherwise>
+	  </xsl:choose>
+        </td>
+        </tr>
+      </xsl:if>
+ 	  
           <xsl:if test="$filename = 'index.html' and //skinconfig/credits">
  	     <tr>
                <td></td>

Mime
View raw message