diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2011-05-08 15:26:22 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-05-08 15:26:22 +0000 |
commit | afc02bc1c3db9ffe8c9bf660c8aa08666752edfb (patch) | |
tree | 9a02b06b390dd0c1e796474b888e92c245473424 /h-source/Library/Html/Form.php | |
parent | 7fdac301801bc44f6fdb343187413bdfd2d5366c (diff) |
h-source:added new EasyGiant SVN version
Diffstat (limited to 'h-source/Library/Html/Form.php')
-rw-r--r-- | h-source/Library/Html/Form.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/h-source/Library/Html/Form.php b/h-source/Library/Html/Form.php index e3148cd..501e2a2 100644 --- a/h-source/Library/Html/Form.php +++ b/h-source/Library/Html/Form.php @@ -89,6 +89,19 @@ class Html_Form { return $returnString; } + //return the HTML of an <input type='file' ...> + //$name: the name of the input + //$className: the class name of the input + //$idName: name of the id + static public function fileUpload($name, $value, $className = null, $idName = null) + { + $strClass = isset($className) ? "class='".$className."'" : null; + $idStr = isset($idName) ? "id='".$idName."'" : null; + + $returnString ="<input ".$idStr." $strClass type='file' name='" .$name. "'>\n"; + return $returnString; + } + //return the HTML of a checkBox //$name: name of the checkBox (string) //$value: the value of the checkBox (string or number) |