X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plekit%2Fphp%2Fdetails.php;h=e9cbc395a86d9d5c7bc4e95a82003440780c3a8c;hb=23d8b9c0df8872a70fc9dda57eaea640d9d2b133;hp=7649a3273cfe66a92910f030edfd0c1267f8877c;hpb=847006de47d4f1868cecf6126801a94e26f709ad;p=plewww.git diff --git a/plekit/php/details.php b/plekit/php/details.php index 7649a32..e9cbc39 100644 --- a/plekit/php/details.php +++ b/plekit/php/details.php @@ -1,7 +1,5 @@ start_html("$caption");} function start_html ($caption="") { - $html=""; - if ($caption) $html .= ""; - $html .= ""; + $html="
$caption
"; + if ($caption) $html .= ""; + $html .= ""; return $html; } @@ -60,9 +58,9 @@ class PlekitDetails { // starts an inner form if the details are editable // accpets same args as PlekitForm - function form_start ($url,$values,$method="POST") { print $this->form_start_html($url,$values,$method); return $this->form; } - function form_start_html ($url,$values,$method="POST") { - $this->form = new PlekitForm ($url,$values,$method); + function form_start ($url,$values,$options=NULL) { print $this->form_start_html($url,$values,$options); return $this->form; } + function form_start_html ($url,$values,$options=NULL) { + $this->form = new PlekitForm ($url,$values,$options); return $this->form->start_html(); } @@ -124,7 +122,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 +135,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 "