From a93461b231fb94f3a6a9df09a30557732201ddcc Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Mon, 14 Oct 2013 16:06:56 +0000 Subject: added new EasyGiant Library --- h-source/Library/Html/Form.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'h-source/Library/Html/Form.php') diff --git a/h-source/Library/Html/Form.php b/h-source/Library/Html/Form.php index ec81cfb..64c501f 100644 --- a/h-source/Library/Html/Form.php +++ b/h-source/Library/Html/Form.php @@ -208,4 +208,29 @@ class Html_Form { return $returnString; } + //return the HTML of an + //$name: the name of the input + //$value: the value of the input + //$className: the class name of the input + //$idName: name of the id + //$image: url of the image (if it is an image button) + //$attributes: list of attributes + static public function submit($name, $value, $className = null, $idName = null, $image = null, $attributes = null) + { + $strClass = isset($className) ? "class='".$className."'" : null; + $idStr = isset($idName) ? "id='".$idName."'" : null; + + if (isset($image)) + { + $returnString = "\n"; + $returnString .= "\n"; + } + else + { + $returnString ="\n"; + } + + return $returnString; + } + } \ No newline at end of file -- cgit v1.2.3