<?php /* Smarty version 2.6.25, created on 2013-03-07 21:53:39
         compiled from search.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'search.tpl', 15, false),array('modifier', 'wordwrap', 'search.tpl', 15, false),array('modifier', 'trim', 'search.tpl', 80, false),array('function', 'html_options', 'search.tpl', 92, false),array('function', 'html_checkboxes', 'search.tpl', 100, false),)), $this); ?>
<?php ob_start(); ?> - Search<?php $this->_smarty_vars['capture']['title'] = ob_get_contents(); ob_end_clean(); ?>
<?php ob_start(); ?>Search<?php $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('in_page_title', ob_get_contents());ob_end_clean(); ?>
<?php ob_start(); ?>Search Directory<?php $this->_smarty_vars['capture']['default'] = ob_get_contents();  $this->assign('description', ob_get_contents());ob_end_clean(); ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "top_bar.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "validation.tpl", 'smarty_include_vars' => array('form_id' => 'submit_form','validators' => $this->_tpl_vars['validators'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php echo ''; ?><?php if ($this->_tpl_vars['printSearchPage'] == 'results'): ?><?php echo ''; ?><?php if (isset ( $this->_tpl_vars['have_search_results'] ) && $this->_tpl_vars['have_search_results'] == 0): ?><?php echo ''; ?><?php echo '<div><p>Sorry, no records found that match your keyword(s)'; ?><?php if ($this->_tpl_vars['search']): ?><?php echo ': "'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['search'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('wordwrap', true, $_tmp, 200, "\n", true) : smarty_modifier_wordwrap($_tmp, 200, "\n", true)); ?><?php echo '"'; ?><?php endif; ?><?php echo '</p><p>Suggestions:</p><p><ul><li>Make sure all words are spelled correctly.</li><li>Try different keywords.</li><li>Try more general keywords.</li></ul></p></div>'; ?><?php else: ?><?php echo ''; ?><?php echo ''; ?><?php if (! empty ( $this->_tpl_vars['searchquery'] )): ?><?php echo '<p>Search results for: <strong>'; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['searchquery'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?><?php echo '</strong></p>'; ?><?php endif; ?><?php echo ''; ?><?php echo ''; ?><?php if ($this->_tpl_vars['search_category']): ?><?php echo ''; ?><?php echo $this->_tpl_vars['search_category']; ?><?php echo ''; ?><?php endif; ?><?php echo ''; ?><?php echo ''; ?><?php if ($this->_tpl_vars['search_article']): ?><?php echo ''; ?><?php echo $this->_tpl_vars['search_article']; ?><?php echo ''; ?><?php endif; ?><?php echo ''; ?><?php echo ''; ?><?php if (! empty ( $this->_tpl_vars['links'] )): ?><?php echo '<h3>Links</h3><div id="links">'; ?><?php $_from = $this->_tpl_vars['links']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['links'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['links']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['link']):
        $this->_foreach['links']['iteration']++;
?><?php echo ''; ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "link.tpl", 'smarty_include_vars' => array('link' => $this->_tpl_vars['link'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?><?php echo ''; ?><?php endforeach; endif; unset($_from); ?><?php echo '</div>'; ?><?php endif; ?><?php echo ''; ?><?php endif; ?><?php echo ''; ?><?php echo ''; ?><?php if ($this->_tpl_vars['StopLinkHits'] == 0): ?><?php echo '<script type="text/javascript">/* <![CDATA[ */var root = \''; ?><?php echo @DOC_ROOT; ?><?php echo '\';'; ?><?php echo '
      var a = document.getElementsByTagName("a");
      for(i = 0; i< a.length; i++)
         if(a[i].id != \'\')
            a[i].onclick = count_link;
      function count_link() {
         i = new Image();
         i.src= root+\'/cl.php?id=\'+this.id;
         return true;
      }
      '; ?><?php echo '/* ]]> */</script>'; ?><?php endif; ?><?php echo ''; ?><?php elseif ($this->_tpl_vars['printSearchPage'] == 'form'): ?><?php echo '<form method="post" action="'; ?><?php echo @DOC_ROOT; ?><?php echo '/search.php?type=advanced" id="submit_form"><br /><table border="0" class="formPage" align="center">'; ?><?php if ($this->_tpl_vars['error']): ?><?php echo '<tr><td colspan="2" class="err">An error occured while saving search preferences.'; ?><?php if (! empty ( $this->_tpl_vars['errorMsg'] )): ?><?php echo '<div>'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['errorMsg'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '</div>'; ?><?php endif; ?><?php echo '</td></tr>'; ?><?php endif; ?><?php echo '<tr><td class="label"><label for="search">Key Word(s):</label></td><td class="field"><div><input type="text" id="search" name="search" value="'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['search'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '" size="40" class="text" /></div><div>'; ?><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['titleonlyOptions'],'selected' => $this->_tpl_vars['titleonly'],'name' => 'titleonly'), $this);?><?php echo '</div></td></tr><tr><td class="label"><label for="location">Search in:</label></td><td class="field">'; ?><?php echo smarty_function_html_checkboxes(array('name' => 'location','options' => $this->_tpl_vars['locationOptions'],'selected' => $this->_tpl_vars['location'],'separator' => "<br />"), $this);?><?php echo '</td></tr><tr><td class="label"><label for="hitless">Find results with:</label></td><td class="field">'; ?><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['hitlessOptions'],'selected' => $this->_tpl_vars['hitless'],'name' => 'hitless','id' => 'hitless'), $this);?><?php echo '<input type="text" id="hitlimit" name="hitlimit" value="'; ?><?php echo $this->_tpl_vars['hitlimit']; ?><?php echo '" size="5" class="text" /> hits</td></tr><tr><td class="label"><label for="sortby">Sort Results by:</label></td><td class="field">'; ?><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['sortbyOptions'],'selected' => $this->_tpl_vars['sortby'],'name' => 'sortby','id' => 'sortby'), $this);?><?php echo ''; ?><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['sortorderOptions'],'selected' => $this->_tpl_vars['sortorder'],'name' => 'sortorder','id' => 'sortorder'), $this);?><?php echo '</td></tr><tr><td class="label"><label for="categchoice">Search in categories:</label></td><td class="field">'; ?><?php if (@CAT_SELECTION_METHOD == 2): ?><?php echo '<div id="catTitle">'; ?><?php if (! empty ( $this->_tpl_vars['CategoryTitle'] )): ?><?php echo ''; ?><?php echo $this->_tpl_vars['CategoryTitle']; ?><?php echo ''; ?><?php else: ?><?php echo 'Please select a category!'; ?><?php endif; ?><?php echo '</div><span id="toggleCategTree">Change category</span><input type="hidden" id="CATEGORY_ID" name="categchoice[]" value="'; ?><?php echo $this->_tpl_vars['CATEGORY_ID']; ?><?php echo '" /><div id="categtreebox"></div>'; ?><?php else: ?><?php echo '<div>'; ?><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['categchoiceOptions'],'selected' => $this->_tpl_vars['categchoice'],'name' => "categchoice[]",'id' => 'categchoice','multiple' => 'multiple'), $this);?><?php echo '</div>'; ?><?php endif; ?><?php echo '<div><label for="childcategs" title="Will automatically search withing subcategories of selected categories"><input type="checkbox" id="childcategs" name="childcategs" value="1"'; ?><?php if ($this->_tpl_vars['childcategs']): ?><?php echo ' checked="checked"'; ?><?php endif; ?><?php echo ' title="Select to search within subcategories" /> Also search in subcategories</label></div></td></tr><tr><td class="buttons"><input type="reset" id="reset" name="reset" value="Reset Fields" title="Reset all fields to default values" accesskey="r" class="btn" /></td><td class="buttons"><input type="submit" id="search" name="search" value="Search Now" title="Start searching now" accesskey="s" class="btn" /></td></tr></table><input type="hidden" name="formSubmitted" value="1" /></form>'; ?><?php endif; ?><?php echo ''; ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?><?php echo ''; ?>