From 7eb1aa554935a2603f51aa14d0d4d0e65d131251 Mon Sep 17 00:00:00 2001 From: Calvo Date: Thu, 6 Oct 2022 19:58:28 +0200 Subject: [PATCH 1/2] Added id to form on html print form grid --- pandora_console/include/class/HTML.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/class/HTML.class.php b/pandora_console/include/class/HTML.class.php index 6b4d153a7a..da6e63285a 100644 --- a/pandora_console/include/class/HTML.class.php +++ b/pandora_console/include/class/HTML.class.php @@ -933,7 +933,7 @@ class HTML $cb_args = $data['cb_args']; $output_head = '
'; + $output_head .= '" id="'.$form['id'].'" '.$form['extra'].'>'; if ($return === false) { echo $output_head; From 2d71c75405ab2e7af87371d7b9072c789c0aeb70 Mon Sep 17 00:00:00 2001 From: Calvo Date: Thu, 20 Oct 2022 13:42:08 +0200 Subject: [PATCH 2/2] Added title to printFormAsGrid --- pandora_console/include/class/HTML.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandora_console/include/class/HTML.class.php b/pandora_console/include/class/HTML.class.php index da6e63285a..e47aa40b7c 100644 --- a/pandora_console/include/class/HTML.class.php +++ b/pandora_console/include/class/HTML.class.php @@ -935,6 +935,12 @@ class HTML $output_head = ''; + if (isset($form['title']) === true && empty($form['title']) === false) { + $output_head .= '
'; + $output_head .= ''.$form['title'].''; + $output_head .= '
'; + } + if ($return === false) { echo $output_head; }