From a9c55304e2df31fbc754578dbff12bef5c71d135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Thu, 4 Jan 2007 00:38:06 +0000 Subject: [PATCH] Include the $extra argument in the output HTML. --- include/html.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/html.php b/include/html.php index 4ce17e9..e17e49d 100644 --- a/include/html.php +++ b/include/html.php @@ -23,9 +23,16 @@ function do_html_tr($t, $arr, $class, $extra) if(strlen($class)) $class = " class=\"$class\""; - $str = do_indent("", 1); + /* $extra contains parameters to , such as valign="top" */ + if(strlen($extra)) + $extra = " $extra"; + + $str = do_indent("", 1); for($i = 0; $i < sizeof($arr); $i++) { + /* If it is not an array, it contains the entire table cell. If it + is an array, [0] holds the main content and [1] the options like + valign="top" */ if(is_array($arr[$i])) { $val = $arr[$i][0];