Swiffit2 home icon

Search field

SSI and HTML code

Head:

<!--#if expr="${QUERY_STRING} = /mac=search/" -->
   <!--#if expr="${QUERY_STRING} = /qry=([^*]+)/" -->
   <!--#set var="SEARCH_WORD" value="$1" -->
      <!--#set var="IS_SEARCH" value="1" -->
   <!--#else -->
      <!--#set var="IS_SEARCH" value="0" -->
   <!--#endif -->
<!--#else -->
   <!--#set var="IS_SEARCH" value="0" -->
<!--#endif -->
 

Search form:

<form id="fsearch" enctype="application/x-www-form-urlencoded" method="get" action="/home/">
<input name="mac" value="search" type="hidden" />
<input name="dname" value="<!--#echo var="DOMAIN"-->" type="hidden" />


<input name="qry" class="search-input" type="text" value="" />
<input title="Search" value="S&oslash;k" class="search-button" type="submit" />

<input type="hidden" name="jsid" value="<!--#echo var=SESSION_ID -->" />

</form>

"The hidden input dname defines what domain you are searching in. To search the entire site just leave this out."

"The hidden input jsid is fore search in restricted areas. "

Result in home index:

<!--#if expr="${IS_SEARCH} = /1/" -->
   <!--#include virtual="/pub/${DOMAIN}/${FOLDER}/dynamics/search.shtml?${INIT_QUERY_STRING}&ltype=${LIST_TYPE}&site=${SITE}"-->
<!--#else -->
NORMAL CONTENT
<!--#endif -->

 

 

Publisert: 30.06.09 18:36 Bookmark and Share