From c2c0642f08e1c021c860efa589539c04f5f85cc1 Mon Sep 17 00:00:00 2001 From: ralfhartmann Date: Sun, 29 Sep 2013 23:03:30 +0200 Subject: [PATCH 1/2] add a descriptive header for listview (':header') (to be continued) --- system/modules/core/drivers/DC_Table.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/system/modules/core/drivers/DC_Table.php b/system/modules/core/drivers/DC_Table.php index 2ff7fb45f1..13a4293b28 100644 --- a/system/modules/core/drivers/DC_Table.php +++ b/system/modules/core/drivers/DC_Table.php @@ -3634,6 +3634,14 @@ protected function parentView() '; + if (array_key_exists(':header', $add)){ + $return .= ' + + + '; + unset($add[':header']); + } + foreach ($add as $k=>$v) { if (is_array($v)) From 1f52da760e8c18249eebf29b02d081df5c703c8b Mon Sep 17 00:00:00 2001 From: ralfhartmann Date: Thu, 10 Oct 2013 13:14:03 +0200 Subject: [PATCH 2/2] changes to the handling of :header-field --- system/modules/core/drivers/DC_Table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/modules/core/drivers/DC_Table.php b/system/modules/core/drivers/DC_Table.php index 13a4293b28..8c800463b9 100644 --- a/system/modules/core/drivers/DC_Table.php +++ b/system/modules/core/drivers/DC_Table.php @@ -3637,7 +3637,7 @@ protected function parentView() if (array_key_exists(':header', $add)){ $return .= ' - + '; unset($add[':header']); } @@ -3651,7 +3651,7 @@ protected function parentView() $return .= ' - + '; }
'.$add[':header'].'
'.$add[':header'].' '.$add[':header'].'
'.$k.': '.$k.': '.$v.'