X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plekit%2Fphp%2Fdetails.php;h=91dc7b7fdf006bc8dd73a56414888b467b637a31;hb=f99cfc8401815836073effa34c5cda024e77a3a9;hp=7649a3273cfe66a92910f030edfd0c1267f8877c;hpb=9d738b9c70ffa2c737b4d8256801763cd4fe37a5;p=plewww.git diff --git a/plekit/php/details.php b/plekit/php/details.php index 7649a32..91dc7b7 100644 --- a/plekit/php/details.php +++ b/plekit/php/details.php @@ -47,9 +47,9 @@ class PlekitDetails { // start the details area, with an optional caption function start ($caption="") { print $this->start_html("$caption");} function start_html ($caption="") { - $html=""; - if ($caption) $html .= ""; - $html .= ""; + $html="
$caption
"; + if ($caption) $html .= ""; + $html .= ""; return $html; } @@ -124,7 +124,7 @@ class PlekitDetails { else $height=$this->height; $html=""; - $html .= ""; + $html .= ""; $html .= "\n"; } + function space_html () { return "\n"; } }
$caption
"; // xxx hack: if input_type is select : user provides the input field verbatim if ( $input_type == "select" ) { @@ -137,7 +137,7 @@ class PlekitDetails { } else { // set id too $html .= "tr_html($title,$align);} function tr_html($title,$align=NULL) { - $result="
space_html(); } - function space_html () { return "