added html fieldset

This commit is contained in:
Ralf Becker 2005-02-06 15:42:31 +00:00
parent 80bcfc782a
commit 48ada76f3f

View File

@ -534,6 +534,10 @@ htmlareaConfig_'.$id.'.editorURL = '."'$this->phpgwapi_js_url/htmlarea/';";
} }
$html .= "\t</tr>\n"; $html .= "\t</tr>\n";
} }
if (!is_array($rows))
{
echo "<p>".function_backtrace()."</p>\n";
}
$html .= "</table>\n"; $html .= "</table>\n";
if ($no_table_tr) if ($no_table_tr)
@ -691,4 +695,16 @@ htmlareaConfig_'.$id.'.editorURL = '."'$this->phpgwapi_js_url/htmlarea/';";
} }
return "<label$id$accesskey $options>$content</label>"; return "<label$id$accesskey $options>$content</label>";
} }
function fieldset($content,$legend='',$options='')
{
$html = "<fieldset $options>".($legend ? '<legend>'.$this->htmlspecialchars($legend).'</legend>' : '')."\n";
if ($content)
{
$html .= $content;
$html .= "\n</fieldset>\n";
}
return $html;
}
} }