From 8cd21ed067d9ec3be285b3473f1edf9e91f7baac Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 18 Sep 2010 11:36:57 +0000 Subject: [PATCH] added hidden field --- lam/lib/html.inc | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/lam/lib/html.inc b/lam/lib/html.inc index a115e4ba..a1f7ce21 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -1499,4 +1499,44 @@ class htmlSubTitle extends htmlElement { } +/** + * Generates a hidden input field. + * + * @package metaHTML + */ +class htmlHiddenInput extends htmlElement { + + /** field name */ + private $name = null; + /** field value */ + private $value = null; + + /** + * Constructor. + * + * @param String $label label + */ + function __construct($name, $value) { + $this->name = $name; + $this->value = $value; + } + + /** + * Prints the HTML code for this element. + * + * @param string $module Name of account module + * @param array $input List of meta-HTML elements + * @param array $values List of values which override the defaults in $input (name => value) + * @param boolean $restricted If true then no buttons will be displayed + * @param integer $tabindex Start value of tabulator index for input fields + * @param string $scope Account type + * @return array List of input field names and their type (name => type) + */ + function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) { + echo ''; + return array(); + } + +} + ?>