diff --git a/lam/lib/html.inc b/lam/lib/html.inc index 5b447af8..c05fe3a8 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -143,6 +143,18 @@ class htmlTable extends htmlElement { private $rowOpen = false; /** additional CSS classes */ private $CSSClasses = ''; + /** table width */ + private $width = null; + + /** + * Constructor + * + * @param String $width table width (e.g. 100%) + * @see htmlElement + */ + function __construct($width = null) { + $this->width = $width; + } /** * Adds an element to the table. The element may be a htmlElement object or a simple String. @@ -213,7 +225,11 @@ class htmlTable extends htmlElement { */ public function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) { $return = array(); - echo "