From 9c3479f6df9d123f16dce6bef9aef03a0aecc199 Mon Sep 17 00:00:00 2001 From: 4n63lu5 <4n63lu5@users.noreply.github.com> Date: Thu, 2 Jul 2020 15:19:20 +0200 Subject: [PATCH 1/2] Update object.class.php --- inc/object.class.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/inc/object.class.php b/inc/object.class.php index e1f088d9..258d0649 100644 --- a/inc/object.class.php +++ b/inc/object.class.php @@ -582,6 +582,11 @@ function displayField($canedit, $name, $value, $template, $description = []) { $description['Type'] = 'emptyspace'; } + if (isset($searchoption['input_type']) && 'horizontalseparator' === $searchoption['input_type']) { + $this->DisplayHorizontalSeparator($searchoption['name']); + return; + } + $this->startColumn(); echo $searchoption['name']; if (isset($searchoption['autoname']) && $searchoption['autoname'] && $template) { @@ -741,6 +746,15 @@ function closeColumn() { } } + /** + * Display an horizontal separator on all columns + **/ + + function DisplayHorizontalSeparator($name) { + $this->closeColumn(); + echo ''. $name.""; + $this->cpt = 0; + } function prepareInputForAdd($input) { From cddfebf6daa6b33053a207565d1cc992b33a67b1 Mon Sep 17 00:00:00 2001 From: 4n63lu5 <4n63lu5@users.noreply.github.com> Date: Thu, 2 Jul 2020 15:22:53 +0200 Subject: [PATCH 2/2] Update field.class.php --- inc/field.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/field.class.php b/inc/field.class.php index 77c0157a..6cb00e52 100644 --- a/inc/field.class.php +++ b/inc/field.class.php @@ -360,6 +360,7 @@ public static function addNewField($table, $field, $after = false) { case 'bool' : $query .= "TINYINT (1) NOT NULL DEFAULT '0'"; break; + case 'horizontalseparator' : case 'emptyspace' : case 'text' : $query .= "VARCHAR ( 255 ) collate utf8_unicode_ci NOT NULL DEFAULT ''";