diff --git a/infolog/inc/class.html.inc.php b/infolog/inc/class.html.inc.php index d6f03309b5..f53eaad4d8 100644 --- a/infolog/inc/class.html.inc.php +++ b/infolog/inc/class.html.inc.php @@ -59,12 +59,71 @@ class html return "\n"; } - function form_1button($name,$lang,$hidden_vars,$url,$url_vars='',$method='POST') + function form($content,$hidden_vars,$url,$url_vars='',$method='POST') { $html = "
\n"; + + if ($content) { + $html .= $content; + $html .= "\n"; + } return $html; } + + function form_1button($name,$lang,$hidden_vars,$url,$url_vars='',$method='POST') + { + return $this->form($this->submit_button($name,$lang), + $hidden_vars,$url,$url_vars,$method); + } + + /* + * Example: $rows = array ( '1' => array( 1 => 'cell1', '.1' => 'colspan=3', + * 2 => 'cell2', + * 3 => '3,, '.3' => 'width="10%"' ), + * '.1' => 'bgcolor="#0000FF"' ); + * table($rows,'width="100%"'); + */ + function table($rows,$params = '') + { + $html = "$cell | \n"; + } + $html .= "\t