$this->_tag_stack[] = array('form', array('name' => 'search_outstanding_invoices'));
$_block_repeat = true;
smarty_form($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
    ob_start();
    ?>

    <table>
      <tr>
        <th> <?php 
    echo smarty_echo(array('phrase' => 'SEARCH'), $this);
    ?>
 </th>
        <td>
          <?php 
    echo smarty_form_description(array('field' => 'accountname'), $this);
    ?>
 <br/>
          <?php 
    echo smarty_form_element(array('field' => 'accountname', 'size' => '30'), $this);
    ?>

        </td>
        <td class="submit"> 
          <?php 
    echo smarty_form_element(array('field' => 'search'), $this);
    ?>

        </td>
      </tr>
    </table>
    ?>
 </td>
              </tr>
              <tr>
                <td> <?php 
    echo smarty_form_description(array('field' => 'password'), $this);
    ?>
 </td>
                <td> <?php 
    echo smarty_form_element(array('field' => 'password'), $this);
    ?>
 </td>
              </tr>
              <tr>
                <td> <?php 
    echo smarty_form_description(array('field' => 'repassword'), $this);
    ?>
 </td>
                <td> <?php 
    echo smarty_form_element(array('field' => 'repassword'), $this);
    ?>
 </td>
              </tr>
            </table>
          </div>
        </td>
      </tr>
    </table>
  </div>

  <div class="domainoption">
    ?>
 </td>
            </tr>
            <tr>
              <th> <?php 
    echo smarty_form_description(array('field' => 'tos_url'), $this);
    ?>
 </th>
              <td> <?php 
    echo smarty_form_element(array('field' => 'tos_url', 'value' => $this->_tpl_vars['order_tos_url'], 'size' => '50'), $this);
    ?>
 </td>
            </tr>
            <tr>
              <th> <?php 
    echo smarty_form_description(array('field' => 'tos_required'), $this);
    ?>
 </th>
              <td> <?php 
    echo smarty_form_element(array('field' => 'tos_required', 'option' => 'true', 'value' => $this->_tpl_vars['order_tos_required']), $this);
    ?>
 </td>
            </tr>
          </tbody>
        </table>
      <?php 
    $_block_content = ob_get_contents();
    ob_end_clean();
    $_block_repeat = false;
    echo smarty_form($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
}
                  <th> <?php 
        echo smarty_form_description(array('field' => 'transferdomainterm'), $this);
        ?>
 </th>
                  <td> <?php 
        echo smarty_form_element(array('field' => 'transferdomainterm'), $this);
        ?>
 </td>
                </tr>
              </table>
            </div>
            <div id="incartdomain" class="form">
              <table>
                <tr>
                  <th> <?php 
        echo smarty_form_description(array('field' => 'incartdomain'), $this);
        ?>
 </th>
                  <td> <?php 
        echo smarty_form_element(array('field' => 'incartdomain', 'empty' => "[THERE_ARE_NO_DOMAINS_IN_YOUR_CART]"), $this);
        ?>
 </td>
                </tr>
              </table>
            </div>
            <div id="existingdomain" class="form">
              <table>
                <tr>
                  <th> [YOUR_EXISTING_DOMAIN]: </th>
                  <td> <?php 
        echo smarty_form_element(array('field' => 'existingdomainname', 'size' => '40'), $this);
    ?>
 </td>
        </tr>
        <tr>
          <th> <?php 
    echo smarty_form_description(array('field' => 'description'), $this);
    ?>
 </th>
          <td> <?php 
    echo smarty_form_element(array('field' => 'description', 'cols' => '40', 'rows' => '3'), $this);
    ?>
 </td>
        </tr>
        <tr>
          <th> <?php 
    echo smarty_form_description(array('field' => 'public'), $this);
    ?>
 </th>
          <td> <?php 
    echo smarty_form_element(array('field' => 'public', 'option' => 'Yes'), $this);
    ?>
 </td>
        </tr>
      </tbody>
    </table>
  </div>
<?php 
    $_block_content = ob_get_contents();
    ob_end_clean();
    $_block_repeat = false;
    echo smarty_form($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
    ?>
 </td>
      </tr>
      <tr>
        <th> <?php 
    echo smarty_form_description(array('field' => 'idtoken'), $this);
    ?>
 </th>
        <td> <?php 
    echo smarty_form_element(array('field' => 'idtoken', 'value' => $this->_tpl_vars['idToken'], 'size' => '80'), $this);
    ?>
 </td>
      </tr>
      <tr>
        <th> <?php 
    echo smarty_form_description(array('field' => 'currency'), $this);
    ?>
 </th>
        <td> <?php 
    echo smarty_form_element(array('field' => 'currency', 'value' => $this->_tpl_vars['currency']), $this);
    ?>
 </td>
      </tr>
      <tr class="footer">
        <td colspan="2"> <?php 
    echo smarty_form_element(array('field' => 'save'), $this);
    ?>
 </td>
      </tr>
    </table>
  </div>
    ?>
 </td>
      </tr>
      <tr>
        <th> <?php 
    echo smarty_form_description(array('field' => 'debug'), $this);
    ?>
 </th>
        <td> <?php 
    echo smarty_form_element(array('field' => 'debug', 'option' => 'true', 'value' => $this->_tpl_vars['debug']), $this);
    ?>
 </td>
      </tr>
      <tr>
        <th> <?php 
    echo smarty_form_description(array('field' => 'defaultcustomerpassword'), $this);
    ?>
 </th>
        <td> <?php 
    echo smarty_form_element(array('field' => 'defaultcustomerpassword', 'value' => $this->_tpl_vars['defaultcustomerpassword']), $this);
    ?>
 </td>
      </tr>
      <tr class="footer">
        <td colspan="2">
          <?php 
    echo smarty_form_element(array('field' => 'save'), $this);
    ?>

        </td>
      </tr>
    ?>

        </td>
        <td>
          <?php 
    echo smarty_form_description(array('field' => 'contactname'), $this);
    ?>
 <br/>
          <?php 
    echo smarty_form_element(array('field' => 'contactname', 'size' => '20'), $this);
    ?>

        </td>
        <td>
          <?php 
    echo smarty_form_description(array('field' => 'email'), $this);
    ?>
 <br/>
          <?php 
    echo smarty_form_element(array('field' => 'email'), $this);
    ?>

        </td>
        <td class="submit"> 
          <?php 
    echo smarty_form_element(array('field' => 'search'), $this);
    ?>

        </td>
      </tr>
    </table>
          <tbody>
            <tr>
              <th style="width: 25%"> <?php 
    echo smarty_form_description(array('field' => 'type'), $this);
    ?>
 </th>
              <th style="width: 25%"> <?php 
    echo smarty_form_description(array('field' => 'termlength'), $this);
    ?>
 </th>
              <th style="width: 25%"> <?php 
    echo smarty_form_description(array('field' => 'price'), $this);
    ?>
 </th>
              <th style="width: 25%"> <?php 
    echo smarty_form_description(array('field' => 'taxable'), $this);
    ?>
 </th>
            </tr>
            <tr>
              <td style="width: 25%"> <?php 
    echo smarty_form_element(array('field' => 'type'), $this);
    ?>
 </td>
              <td style="width: 25%"> <?php 
    echo smarty_form_element(array('field' => 'termlength', 'size' => '4'), $this);
    ?>
 </td>
              <td style="width: 25%"> <?php 
    echo smarty_form_element(array('field' => 'price', 'size' => '6'), $this);
    ?>
    echo smarty_echo(array('phrase' => 'SEARCH'), $this);
    ?>
 </th>
        <td>
          <?php 
    echo smarty_form_description(array('field' => 'accountname'), $this);
    ?>
 <br/>
          <?php 
    echo smarty_form_element(array('field' => 'accountname', 'size' => '30'), $this);
    ?>

        </td>
        <td>
          <?php 
    echo smarty_form_description(array('field' => 'balance'), $this);
    ?>
 <br/>
          <?php 
    echo smarty_form_element(array('field' => 'balance', 'size' => '6'), $this);
    ?>

        </td>
        <td class="submit"> 
          <?php 
    echo smarty_form_element(array('field' => 'search'), $this);
    ?>

        </td>
      </tr>
    </table>
    ?>
 </td>
      </tr>
      <tr>
        <th> <?php 
    echo smarty_form_description(array('field' => 'transactionurl'), $this);
    ?>
 </th>
        <td> <?php 
    echo smarty_form_element(array('field' => 'transactionurl', 'value' => $this->_tpl_vars['transactionurl'], 'size' => '50'), $this);
    ?>
 </td>
      </tr>
      <tr>
        <th> <?php 
    echo smarty_form_description(array('field' => 'delimiter'), $this);
    ?>
 </th>
        <td> <?php 
    echo smarty_form_element(array('field' => 'delimiter', 'value' => $this->_tpl_vars['delimiter'], 'size' => '1'), $this);
    ?>
 </td>
      </tr>
      <tr class="footer">
        <td colspan="2">
          <?php 
    echo smarty_form_element(array('field' => 'save'), $this);
    ?>

        </td>
      </tr>