src/UI/HTML/Elements.php
public static function Field( $field_id, $field_element, $class = "field", $suffix = "", $colspan = 1 )
	{
		$ins_id		= $field_id ? " id=\"fld_".$field_id."\"" : "";
		$ins_class	= $class ? " class=\"".$class."\"" : "";
		$ins_colspan	= ( $colspan > 1 ) ? " colspan=\"".$colspan."\"" : "";
		if( $suffix )
		{
			$code = "<td".$ins_colspan.">
			  <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">
			    <tr><td".$ins_id.$ins_class.">".$field_element."</td><td class=\"suffix\">".$suffix."</td></tr></table></td>";
		}
		else $code = "<td".$ins_class.$ins_colspan.$ins_id.">".$field_element."</td>";
		return $code;
	}
public static function Field( $field_id, $field_element, $class = "field", $suffix = "", $colspan = 1 )
	{
		$ins_id		= $field_id ? " id=\"fld_".$field_id."\"" : "";
		$ins_class	= $class ? " class=\"".$class."\"" : "";
		$ins_colspan	= ( $colspan > 1 ) ? " colspan=\"".$colspan."\"" : "";
		if( $suffix )
		{
			$code = "<td".$ins_colspan.">
			  <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">
			    <tr><td".$ins_id.$ins_class.">".$field_element."</td><td class=\"suffix\">".$suffix."</td></tr></table></td>";
		}
		else $code = "<td".$ins_class.$ins_colspan.$ins_id.">".$field_element."</td>";
		return $code;
	}
public static function Field ( $ field_id , $ field_element , $ class = "field" , $ suffix = "" , $ colspan = 1 ) { $ ins_id = $ field_id ? " id=\"fld_" . $ field_id . "\"" : "" ; $ ins_class = $ class ? " class=\"" . $ class . "\"" : "" ; $ ins_colspan = ( $ colspan > 1 ) ? " colspan=\"" . $ colspan . "\"" : "" ; if ( $ suffix ) { $ code = "<td" . $ ins_colspan . ">
			  <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">
			    <tr><td" . $ ins_id . $ ins_class . ">" . $ field_element . "</td><td class=\"suffix\">" . $ suffix . "</td></tr></table></td>" ; } else $ code = "<td" . $ ins_class . $ ins_colspan . $ ins_id . ">" . $ field_element . "</td>" ; return $ code ; }
Erzeugt HTML-Code eines Eingabefeldes.
@access		public
@static
@param		string		$field_id			interner Name des Eingabefeldes
@param		string		$field_element		HTML-Code des Eingabeelements
@param		string		$class			CSS-Klasse
@param		string		$suffix			Textausgabe hinter dem Eingabefeld
@param		string		$colspan			Anzahl der überstreckten Spalten
@return		string
Erzeugt HTML - Code eines Eingabefeldes .