aboutsummaryrefslogtreecommitdiff
path: root/h-source/Library/Form/File.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-07-28 20:27:23 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-07-28 20:27:23 +0000
commite7b3717614621f14695ab6ca6dda6dd17ba3d65c (patch)
treec8e6061aef3ff7bad5a17e1aecaf441d35e282cb /h-source/Library/Form/File.php
parent0de74c6879d263645770de3d6b3ce7123f5241d6 (diff)
added new easygiant library
Diffstat (limited to 'h-source/Library/Form/File.php')
-rw-r--r--h-source/Library/Form/File.php7
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];