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

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

  <?php if ($this->message): ?>
    <?= $this->message ?>
  <?php endif; ?>

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

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

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

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