Location: PHPKode > projects > php Strategy Game Engine X > phpsgex/templates/sgex/tmpdc.php
<?php
class Template {
	static function buttonsubmit( $value, $img="" ){
		if( $img=="" ) return "<input type='submit' value='$value'>";
		else return "<input type='image' src='".IBTN."$img' value='$value' onclick='this.form.submit()'>";
	}
	
	static function buttondisabled( $img="" ){
		if( $img=="" ) return "";
		return "<img src='".IBTN."$img'>";
	}
	
	static function link( $type, $val ){
		if( $type=="img" ){
			return "<img src='".IBTN."$val'>";
		} else {
			return $val;	
		}
	}
}
?>
Return current item: php Strategy Game Engine X