<tr>
<?php if ($cond_num > 0): ?>
  <td style="padding:2px">
    <b><?php echo ($rule['combine'] == INGO_STORAGE_COMBINE_ALL) ? _("and") : _("or") ?></b>
  </td>
<?php elseif (($cond_num == 0) && !$lastfield): ?>
  <td style="padding:2px">&nbsp;</td>
<?php endif; ?>
  <td style="padding:2px">&nbsp;
    <select onchange="document.rule.submit(); return true;" name="field[<?php echo $cond_num ?>]">
      <?php echo $field_select ?>
    </select>
<?php if ($header_entry): ?>
    <input name="userheader[<?php echo $cond_num ?>]" value="<?php echo $userheader ?>" />
<?php endif; ?>
  </td>
<?php if ($lastfield): ?>
  <td colspan="2">&nbsp;</td>
<?php else: ?>
  <td style="padding:2px">
    <select onchange="document.rule.submit(); return true;" name="match[<?php echo $cond_num ?>]">
      <?php echo $match_select ?>
    </select>
  </td>
  <td style="padding:2px">
    <?php echo $match_value ?>
  </td>
<?php endif; ?>
<?php if (!$lastfield): ?>
  <td style="padding:2px">&nbsp;<?php echo Horde::link('javascript:delete_condition(' . $cond_num . ');', _("Delete Condition")) ?><?php echo Horde::img('delete.png', _("Delete Condition"), null, $registry->getImageDir('horde')) ?></a></td>
<?php elseif ($cond_num != 0): ?>
  <td style="padding:2px">&nbsp;</td>
<?php endif; ?>
</tr>
