diff options
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]; |