{* $Id$ *} {extends 'layout_view.tpl'} {block name=title} {title help="Search" admpage="search"}{tr}Search{/tr}{/title} {/block} {block name=content}
{foreach from=$facets item=facet} {/foreach}
{if $prefs.tracker_tabular_enabled eq 'y' && ! empty($smarty.get.tabularId)}
{jq} $(document).on('click', '.tabular-export', function (e) { var href = $.service('tabular', 'export_search_csv', { tabularId: "{{$smarty.get.tabularId}}" }); e.preventDefault(); document.location.href = href + '&' + $(this).closest('form').serialize(); }); {/jq}
{elseif $prefs.tracker_tabular_enabled eq 'y' && ! empty($filter.tracker_id)}
{jq} $(document).on('click', '.tabular-export', function (e) { var href = $.service('tabular', 'export_search_csv', { trackerId: "{{$filter.tracker_id}}" }); e.preventDefault(); $.openModal({ remote: href + '&' + $(this).closest('form').serialize() }); }); {/jq}
{/if} {if $prefs.storedsearch_enabled eq 'y' and $user}
{tr}Save Search{/tr} {tr}View Saved Searches{/tr} {jq} $('#store-query').clickModal({ success: function (data) { var form = $(this).closest('form')[0]; $(form.storeAs).val(data.queryId); $(form).attr('method', 'post'); $(form).submit(); } }); {/jq}
{/if}
{* do not change the comment above, since smarty 'highlight' outputfilter is hardcoded to find exactly this... instead you may experience white pages as results *} {if isset($results)} {$results} {/if}
{/block}