X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plekit%2Fphp%2Ftable.php;h=481cbc6dd000a6f3565c28343b2fae175a5cc820;hb=14c11d0ac25942719986a871b250f3a97dd35d94;hp=a475bee32acd34557e9400a3d61f4476ae8b1d36;hpb=1a2eb1bf447e1e3cccf35959ad10ffaaa9790032;p=plewww.git diff --git a/plekit/php/table.php b/plekit/php/table.php index a475bee..481cbc6 100644 --- a/plekit/php/table.php +++ b/plekit/php/table.php @@ -32,6 +32,7 @@ class PlekitTable { var $headers; var $column_sort; // options + var $caption; var $search_area; // boolean (default true) var $pagesize_area; // boolean (default true) var $notes_area; // boolean (default true) @@ -64,6 +65,7 @@ class PlekitTable { function set_options ($options) { if ( ! $options) return; + if (array_key_exists('caption',$options)) $this->caption=$options['caption']; if (array_key_exists('search_area',$options)) $this->search_area=$options['search_area']; if (array_key_exists('pagesize_area',$options)) $this->pagesize_area=$options['pagesize_area']; if (array_key_exists('notes_area',$options)) $this->notes_area=$options['notes_area']; @@ -101,6 +103,8 @@ EOF; if ($this->search_area) print $this->search_area_html (); + if ($this->caption) + print " $this->caption "; print ""; foreach ($this->headers as $label => $type) { switch ($type) {