Location: PHPKode > projects > Joomla SEF / SEO - extending OpenSEF > admin/form_fields.tpl.php
<?php if (!isset( $restart ) || $restart == true): ?>
  <fieldset class="adminform">
    <legend><?php echo $title; ?></legend>
    <table class="admintable" cellspacing="1">
      <tbody>
<?php endif; ?>

<?php

  /*
    This system needs to be restructured for plugin use
    Fields are defined in the admin.sef.php file
    xclHTML class objects are used to create the fields
  */

  $row = 0;
  $hiddenFields = Array();
  foreach ($fields as $field):

    // This should be an xclHTML Object
    if( is_object($field) ):
      switch( $field->type ){
        case 'hidden':
          $hiddenFields[] = $field->html;
          break;
        default:
          $title = (empty( $this->bold ) ? $field->title :
            '<b>' . $field->title . '</b>');
          ?>
          <tr>
            <td class="key" valign="top" nowrap="1"><?php echo $title ?>&nbsp;</td>
            <td width="25%" valign="top" nowrap="1"><?php echo $field->html ?></td>
            <td valign="top" align="left">&nbsp;</td>
            <td class="key2" valign="top" align="left"><?php echo $field->help ?></td>
          </tr>
          <?php
          break;
      }

    // This should be a string value, reserved for generic output
    elseif( !is_null($field) ):
      ?>
      <tr>
        <td colspan="4" align="left"><?= $field ?></td>
      </tr>
      <?php

    // This is a spacer
    else:
      ?>
      <tr>
        <td colspan="4" align="left">&nbsp;</td>
      </tr>
      <?php
    endif;

    $row++;
  endforeach;

?>

<?php if (!isset( $restart )): ?>
      </tbody>
    </table>
  </fieldset>
<?php endif; ?>

<?php

// Dump Hidden Fields
if( count($hiddenFields) )
  foreach( $hiddenFields AS $dumpField )
    echo "$dumpField \n";
Return current item: Joomla SEF / SEO - extending OpenSEF