diff options
| author | Antonio Gallo <tonicucoz@gmail.com> | 2011-07-28 20:27:23 +0000 | 
|---|---|---|
| committer | Antonio Gallo <tonicucoz@gmail.com> | 2011-07-28 20:27:23 +0000 | 
| commit | e7b3717614621f14695ab6ca6dda6dd17ba3d65c (patch) | |
| tree | c8e6061aef3ff7bad5a17e1aecaf441d35e282cb /h-source/Library/Form/File.php | |
| parent | 0de74c6879d263645770de3d6b3ce7123f5241d6 (diff) | |
added new easygiant library
Diffstat (limited to 'h-source/Library/Form/File.php')
| -rw-r--r-- | h-source/Library/Form/File.php | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/h-source/Library/Form/File.php b/h-source/Library/Form/File.php index 48030f7..951b3d4 100644 --- a/h-source/Library/Form/File.php +++ b/h-source/Library/Form/File.php @@ -38,6 +38,13 @@ class Form_File extends Form_Entry  		$returnString .= $this->getLabelTag();  		$returnString .= $wrap[2];  		$returnString .= Html_Form::fileUpload($this->entryName, $value, $this->className, $this->idName); +		if (is_array($this->deleteButton)) +		{ +			$sname = isset($this->deleteButton[0]) ? $this->deleteButton[0] : 'delete_'.$this->entryName; +			$svalue = isset($this->deleteButton[1]) ? $this->deleteButton[1] : 'delete'; +			$sclass = isset($this->deleteButton[2]) ? "class='".$this->deleteButton[2]."'" : null; +			$returnString .= "<input $sclass type='submit' name='$sname' value='$svalue'>\n"; +		}  		$returnString .= $wrap[3];  		$returnString .="</div>\n";  		$returnString .= $wrap[4]; | 
