library/core/class.form.php
public function Button($ButtonCode, $Attributes = FALSE) {
      $Type = ArrayValueI('type', $Attributes);
      if ($Type === FALSE) $Type = 'submit';

      $CssClass = ArrayValueI('class', $Attributes);
      if ($CssClass === FALSE) $Attributes['class'] = 'Button';

      $Return = '<input type="' . $Type . '"';
      $Return .= $this->_IDAttribute($ButtonCode, $Attributes);
      $Return .= $this->_NameAttribute($ButtonCode, $Attributes);
      $Return .= ' value="' . T($ButtonCode, ArrayValue('value', $Attributes)) . '"';
      $Return .= $this->_AttributesToString($Attributes);
      $Return .= " />\n";
      return $Return;
   }
public function Button($ButtonCode, $Attributes = FALSE) {
      $Type = ArrayValueI('type', $Attributes);
      if ($Type === FALSE) $Type = 'submit';

      $CssClass = ArrayValueI('class', $Attributes);
      if ($CssClass === FALSE) $Attributes['class'] = 'Button';

      $Return = '<input type="' . $Type . '"';
      $Return .= $this->_IDAttribute($ButtonCode, $Attributes);
      $Return .= $this->_NameAttribute($ButtonCode, $Attributes);
      $Return .= ' value="' . T($ButtonCode, ArrayValue('value', $Attributes)) . '"';
      $Return .= $this->_AttributesToString($Attributes);
      $Return .= " />\n";
      return $Return;
   }
public function Button ( $ ButtonCode , $ Attributes = FALSE ) { $ Type = ArrayValueI ( 'type' , $ Attributes ) ; if ( $ Type === FALSE ) $ Type = 'submit' ; $ CssClass = ArrayValueI ( 'class' , $ Attributes ) ; if ( $ CssClass === FALSE ) $ Attributes [ 'class' ] = 'Button' ; $ Return = '<input type="' . $ Type . '"' ; $ Return .= $ this -> _IDAttribute ( $ ButtonCode , $ Attributes ) ; $ Return .= $ this -> _NameAttribute ( $ ButtonCode , $ Attributes ) ; $ Return .= ' value="' . T ( $ ButtonCode , ArrayValue ( 'value' , $ Attributes ) ) . '"' ; $ Return .= $ this -> _AttributesToString ( $ Attributes ) ; $ Return .= " />\n" ; return $ Return ; }
Returns XHTML for a button.

@param string $ButtonCode The translation code for the text on the button.
@param array $Attributes An associative array of attributes for the button. Here is a list of
"special" attributes and their default values:
Attribute  Options                        Default
------------------------------------------------------------------------
Type       The type of submit button      'submit'
Value      Ignored for $ButtonCode        $ButtonCode translated

@return string
Returns XHTML for a button .