summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorNick Palmer <nick@sluggardy.net>2008-02-16 23:22:24 +0000
committerNick Palmer <nick@sluggardy.net>2008-02-16 23:22:24 +0000
commit770c870d22459225b84ade9c7152b801c15c8c46 (patch)
tree7b24f64a7415f09844321ea242f6b7f3826e3027 /templates
parent2e6d61a466415664fb4bc100481e9a646af710cf (diff)
downloadsearch-770c870d22459225b84ade9c7152b801c15c8c46.tar.gz
search-770c870d22459225b84ade9c7152b801c15c8c46.tar.bz2
search-770c870d22459225b84ade9c7152b801c15c8c46.zip
Add an option to and search words together instead of or-ing them all.
Diffstat (limited to 'templates')
-rw-r--r--templates/search.tpl13
1 files changed, 11 insertions, 2 deletions
diff --git a/templates/search.tpl b/templates/search.tpl
index 0e4e1f3..4e3606d 100644
--- a/templates/search.tpl
+++ b/templates/search.tpl
@@ -17,7 +17,16 @@
<div class="row">
{formlabel label="Use Partial Word Search" for="usePart"}
{forminput}
- <input type="checkbox" name="usePart" id="usePart" {$partialOnOff} />
+ <input type="checkbox" name="usePart" id="usePart" {if $usePart}checked{/if} />
+ {formhelp note="This may slow search results"}
+ {/forminput}
+ </div>
+
+
+ <div class="row">
+ {formlabel label="And Terms Together" for="useAnd"}
+ {forminput}
+ <input type="checkbox" name="useAnd" id="useAnd" {if $useAnd}checked{/if} />
{formhelp note="This may slow search results"}
{/forminput}
</div>
@@ -68,7 +77,7 @@
{if $words}<div class="norecords">{tr}No pages matched the search criteria{/tr}</div>{/if}
{/section}
- {pagination usePart=$partialOnOff content_type_guid=$content_type_guid highlight=$words|escape }
+ {pagination useAnd=$useAnd usePart=$usePart content_type_guid=$content_type_guid highlight=$words|escape }
</div>
</div>
{/strip}