<{if $actionForm->hasError()}>
<div class="error">
  <ul>
    <{foreach item=message from=$actionForm->getErrorMessages()}>
      <li><{$message|escape}></li>
    <{/foreach}>
  </ul>
</div>
<{/if}>

<form action="<{$smarty.const.XOOPS_URL}>/search.php" method="get">
  <{xoops_input type=hidden name=action value=results}>
  <table class="outer" cellspacing="1" width="100%">
    <tr>
      <td class="head"><{$smarty.const._SR_KEYWORDS}></td>
      <td class="<{cycle values="odd,even"}>">
        <{xoops_input type=text name=query size=30 maxlength=255 value=$actionForm->get('query')}>
      </td>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._SR_TYPE}></td>
      <td class="<{cycle values="odd,even"}>">
        <select name="andor">
          <option value="AND" <{if $actionForm->get('andor') == 'AND'}>selected="selected"<{/if}>><{$smarty.const._SR_ALL}></option>
          <option value="OR" <{if $actionForm->get('andor') == 'OR'}>selected="selected"<{/if}>><{$smarty.const._SR_ANY}></option>
          <option value="exact" <{if $actionForm->get('andor') == 'exact'}>selected="selected"<{/if}>><{$smarty.const._SR_EXACT}></option>
        </select>
      </td>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._SR_SEARCHIN}></td>
      <td class="<{cycle values="odd,even"}>">
        <{foreach item=module from=$moduleArr}>
          <input type="checkbox" name="mids[]" value="<{$module.mid|escape}>" <{if in_array($module.mid, $selectedMidArr)}>checked<{/if}>><{$module.name|escape}></a>
        <{/foreach}>
      </td>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._SR_SEARCHRULE}></td>
      <td class="<{cycle values="odd,even"}>"><{$searchRuleMessage}></td>
    </tr>
    <tr>
      <td class="head"></td>
      <td class="<{cycle values="odd,even"}>">
        <input type="submit" value="<{$smarty.const._SR_SEARCH}>" />
      </td>
    </tr>
  </table>
</form>