src/UI/HTML/FormElements.php
public static function Button( $name, $label, $class = NULL, $confirm = NULL, $disabled = NULL, $title = NULL )
	{
		$attributes	= array(
			'type'		=> "submit",
			'name'		=> $name,
			'value'		=> 1,
			'class'		=> $class,
			'onclick'	=> $confirm		? "return confirm('".$confirm."');" : NULL,
			'title'		=> $title,
		);
		if( $disabled )
			self::addDisabledAttributes( $attributes, $disabled );
		return UI_HTML_Tag::create( "button", UI_HTML_Tag::create( "span", (string) $label ), $attributes );
	}
public static function Button( $name, $label, $class = NULL, $confirm = NULL, $disabled = NULL, $title = NULL )
	{
		$attributes	= array(
			'type'		=> "submit",
			'name'		=> $name,
			'value'		=> 1,
			'class'		=> $class,
			'onclick'	=> $confirm		? "return confirm('".$confirm."');" : NULL,
			'title'		=> $title,
		);
		if( $disabled )
			self::addDisabledAttributes( $attributes, $disabled );
		return UI_HTML_Tag::create( "button", UI_HTML_Tag::create( "span", (string) $label ), $attributes );
	}
public static function Button ( $ name , $ label , $ class = NULL , $ confirm = NULL , $ disabled = NULL , $ title = NULL ) { $ attributes = array ( 'type' => "submit" , 'name' => $ name , 'value' => 1 , 'class' => $ class , 'onclick' => $ confirm ? "return confirm('" . $ confirm . "');" : NULL , 'title' => $ title , ) ; if ( $ disabled ) self :: addDisabledAttributes ( $ attributes , $ disabled ) ; return UI_HTML_Tag :: create ( "button" , UI_HTML_Tag :: create ( "span" , ( string ) $ label ) , $ attributes ) ; }
Builds HTML Code for a Button to submit a Form.
@access		public
@static
@param		string		$name 			Button Name
@param		string		$label 			Button Label
@param		string		$class			CSS Class
@param		string		$confirm 		Confirmation Message
@param		mixed		$disabled		Button is not pressable, JavaScript Alert if String is given
@param		string		$title			Titel text on mouse hover
@return		string
Builds HTML Code for a Button to submit a Form .