      </table>
    </td>
  </tr>
<?php
    $actions = $ingo_script->availableActions();
    $createrule = !empty($actions);
    $canapply = $ingo_script->canApply();
?>
<?php if ($createrule || $canapply): ?>
  <tr>
    <td colspan="2" class="control" style="padding:2px">
<?php if ($createrule): ?>
      <input class="button" type="button" onclick="window.location='<?php echo $rule_url ?>'" value="&nbsp;<?php echo _("New Rule") ?>&nbsp;" />
<?php endif; ?>
<?php if ($canapply): ?>
      <input class="button" type="button" onclick="document.filters.actionID.value='apply_filters';document.filters.submit(); return true;" value="&nbsp;<?php echo _("Apply Filters") ?>&nbsp;">
<?php endif; ?>
    </td>
  </tr>
<?php endif; ?>
</table>
</form>
