
<!-- indexer::stop -->
<div class="<?php echo $this->class; ?> <?php echo $this->tableless ? 'tableless' : 'tableform'; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>

  <?php if ($this->headline): ?>
    <<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
  <?php endif; ?>

  <form action="<?php echo $this->action; ?>" id="<?php echo $this->formId; ?>" method="post" enctype="<?php echo $this->enctype; ?>">
    <div class="formbody">
      <input type="hidden" name="FORM_SUBMIT" value="<?php echo $this->formId; ?>" />
      <input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}" />

      <?php foreach ($this->categories as $legend=>$category): ?>
        <?php if (!empty($category)): ?>
          <fieldset>
            <legend><?php echo $legend; ?></legend>
            <?php if (!$this->tableless): ?>
              <table>
            <?php endif; ?>
            <?php echo implode('', $category); ?>
            <?php if (!$this->tableless): ?>
              </table>
            <?php endif; ?>
          </fieldset>
        <?php endif; ?>
      <?php endforeach; ?>

      <div class="submit_container">
        <input type="submit" class="submit" value="<?php echo $this->slabel; ?>" />
      </div>
    </div>
  </form>

</div>
<!-- indexer::continue -->
