<?php /* Smarty version 2.6.26, created on 2013-06-14 08:53:57
         compiled from Search/searchbox.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'translate', 'Search/searchbox.tpl', 3, false),array('modifier', 'escape', 'Search/searchbox.tpl', 6, false),array('modifier', 'translate', 'Search/searchbox.tpl', 32, false),)), $this); ?>
<div class="searchform">
  <?php if ($this->_tpl_vars['searchType'] == 'advanced'): ?>
    <a href="<?php echo $this->_tpl_vars['path']; ?>
/Search/Advanced?edit=<?php echo $this->_tpl_vars['searchId']; ?>
" class="small"><?php echo translate(array('text' => 'Edit this Advanced Search'), $this);?>
</a> |
    <a href="<?php echo $this->_tpl_vars['path']; ?>
/Search/Advanced" class="small"><?php echo translate(array('text' => 'Start a new Advanced Search'), $this);?>
</a> |
    <a href="<?php echo $this->_tpl_vars['path']; ?>
/" class="small"><?php echo translate(array('text' => 'Start a new Basic Search'), $this);?>
</a>
    <br/><?php echo translate(array('text' => 'Your search terms'), $this);?>
 : "<strong><?php echo ((is_array($_tmp=$this->_tpl_vars['lookfor'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
</strong>"
  <?php else: ?>
    <form method="get" action="<?php echo $this->_tpl_vars['path']; ?>
/Search/Results" name="searchForm" id="searchForm" class="search">
      <label for="searchForm_lookfor" class="offscreen"><?php echo translate(array('text' => 'Search Terms'), $this);?>
</label>
      <input id="searchForm_lookfor" type="text" name="lookfor" size="60" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['lookfor'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" <?php if ($this->_tpl_vars['autocomplete']): ?>class="autocomplete typeSelector:searchForm_type"<?php endif; ?>/>
      <label for="searchForm_type" class="offscreen"><?php echo translate(array('text' => 'Search Type'), $this);?>
</label>
      <select id="searchForm_type" name="type">
      <?php $_from = $this->_tpl_vars['basicSearchTypes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['searchVal'] => $this->_tpl_vars['searchDesc']):
?>
        <option value="<?php echo $this->_tpl_vars['searchVal']; ?>
"<?php if ($this->_tpl_vars['searchIndex'] == $this->_tpl_vars['searchVal']): ?> selected="selected"<?php endif; ?>><?php echo translate(array('text' => $this->_tpl_vars['searchDesc']), $this);?>
</option>
      <?php endforeach; endif; unset($_from); ?>
      </select>
      <input type="submit" name="submit" value="<?php echo translate(array('text' => 'Find'), $this);?>
"/>
      <a href="<?php echo $this->_tpl_vars['path']; ?>
/Search/Advanced" class="small"><?php echo translate(array('text' => 'Advanced search'), $this);?>
</a>

            <?php $this->assign('hasCheckboxFilters', '0'); ?>
      <?php if (isset ( $this->_tpl_vars['checkboxFilters'] ) && count ( $this->_tpl_vars['checkboxFilters'] ) > 0): ?>
        <?php $_from = $this->_tpl_vars['checkboxFilters']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['current']):
?>
          <?php if ($this->_tpl_vars['current']['selected']): ?>
            <?php $this->assign('hasCheckboxFilters', '1'); ?>
          <?php endif; ?>
        <?php endforeach; endif; unset($_from); ?>
      <?php endif; ?>
      <?php if ($this->_tpl_vars['shards']): ?>
        <br />
        <?php $_from = $this->_tpl_vars['shards']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['shard'] => $this->_tpl_vars['isSelected']):
?>
          <input type="checkbox" <?php if ($this->_tpl_vars['isSelected']): ?>checked="checked" <?php endif; ?>name="shard[]" value='<?php echo ((is_array($_tmp=$this->_tpl_vars['shard'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
' /> <?php echo ((is_array($_tmp=$this->_tpl_vars['shard'])) ? $this->_run_mod_handler('translate', true, $_tmp) : translate($_tmp)); ?>

        <?php endforeach; endif; unset($_from); ?>
      <?php endif; ?>
      <?php if (( $this->_tpl_vars['filterList'] || $this->_tpl_vars['hasCheckboxFilters'] ) && ! $this->_tpl_vars['disableKeepFilterControl']): ?>
        <div class="keepFilters">
          <input type="checkbox" <?php if ($this->_tpl_vars['retainFiltersByDefault']): ?>checked="checked" <?php endif; ?> id="searchFormKeepFilters"/> <label for="searchFormKeepFilters"><?php echo translate(array('text' => 'basic_search_keep_filters'), $this);?>
</label>
          <div class="offscreen">
            <?php $_from = $this->_tpl_vars['filterList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['filterLoop'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['filterLoop']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['field'] => $this->_tpl_vars['data']):
        $this->_foreach['filterLoop']['iteration']++;
?>
              <?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['value']):
?>
                <input id="applied_filter_<?php echo $this->_foreach['filterLoop']['iteration']; ?>
" type="checkbox" <?php if ($this->_tpl_vars['retainFiltersByDefault']): ?>checked="checked" <?php endif; ?> name="filter[]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['value']['field'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
:&quot;<?php echo ((is_array($_tmp=$this->_tpl_vars['value']['value'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
&quot;" />
                <label for="applied_filter_<?php echo $this->_foreach['filterLoop']['iteration']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['value']['field'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
:&quot;<?php echo ((is_array($_tmp=$this->_tpl_vars['value']['value'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
&quot;</label>
              <?php endforeach; endif; unset($_from); ?>
            <?php endforeach; endif; unset($_from); ?>
            <?php $_from = $this->_tpl_vars['checkboxFilters']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['filterLoop'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['filterLoop']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['current']):
        $this->_foreach['filterLoop']['iteration']++;
?>
              <?php if ($this->_tpl_vars['current']['selected']): ?>
                <input id="applied_checkbox_filter_<?php echo $this->_foreach['filterLoop']['iteration']; ?>
" type="checkbox" <?php if ($this->_tpl_vars['retainFiltersByDefault']): ?>checked="checked" <?php endif; ?> name="filter[]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['current']['filter'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
                <label for="applied_checkbox_filter_<?php echo $this->_foreach['filterLoop']['iteration']; ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['current']['filter'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</label>
              <?php endif; ?>
            <?php endforeach; endif; unset($_from); ?>
          </div>
        </div>
      <?php endif; ?>
            <?php if ($this->_tpl_vars['lastLimit']): ?><input type="hidden" name="limit" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['lastLimit'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><?php endif; ?>
      <?php if ($this->_tpl_vars['lastSort']): ?><input type="hidden" name="sort" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['lastSort'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><?php endif; ?>
    </form>
    <script type="text/javascript">$("#searchForm_lookfor").focus()</script>
  <?php endif; ?>
</div>