Commit f27d7b2d5d16051258a476d7681b3fa6cd4e891b
1 parent
ae70876e
KTS-673
"The search algorithm needs some work" Updated. Search portlet Committed By: Conrad Vermeulen Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7263 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
23 additions
and
0 deletions
templates/ktcore/search2/search_portlet.smarty
0 → 100644
| 1 | +<div style="position: absolute; left: 10px"> | |
| 2 | +<input id=searchPortletCriteria value="{$search2_quickQuery|sanitize}" style="width:150px; font-size:12px; position:relative; top: -2px; z-index: 11" | |
| 3 | + onfocus="searchGotFocus('searchPortletCriteria')" onblur="searchLostFocus('searchPortletCriteria')" onkeypress="return processSearchEnter(event,'searchPortletCriteria')" > | |
| 4 | +<img onclick="search('searchPortletCriteria')" src="resources/tango-icons/system-search.png" border="0" style="position: relative; left: -25px; top: 4px; z-index: 11" /> | |
| 5 | +<select id=searchPortletOptions style="width:170px; font-size:12px; position:absolute; left: -0px; z-index: 10" onchange="searchOptionSelect('searchPortletOptions')"> | |
| 6 | + <option value="s">--- {i18n}quick search{/i18n} --- | |
| 7 | + <option value="s" {if $search2_general==1}selected{/if}>{i18n}content and metadata{/i18n} {if $search2_general==1}*{/if} | |
| 8 | + <option value="m" {if $search2_general==0}selected{/if}>{i18n}metadata{/i18n} {if $search2_general==0}*{/if} | |
| 9 | + </select> | |
| 10 | +</div> | |
| 11 | +<ul class="actionlist"> | |
| 12 | +<li><a href="{$rootUrl}/search2.php?action=guiBuilder">{i18n}Advanced Search{/i18n}</a></li> | |
| 13 | +<li><a href="{$rootUrl}/search2.php?action=manage">{i18n}Manage Saved Search{/i18n}</a></li> | |
| 14 | +</ul> | |
| 15 | + | |
| 16 | +{if (count($savedSearches) > 0)} | |
| 17 | + <hr /> | |
| 18 | + <ul class="actionlist" style="top: -30px"> | |
| 19 | + {foreach item=searchitem from=$savedSearches} | |
| 20 | + <li><a href="{$rootUrl}/search2.php?action=processSaved&fSavedSearchId={$searchitem.id}"> {$searchitem.name|sanitize}</a> | |
| 21 | + {/foreach} | |
| 22 | + </ul> | |
| 23 | +{/if} | ... | ... |