From b8349acf71cb163b01904edc025e2383acefc8d0 Mon Sep 17 00:00:00 2001 From: aschwarz Date: Wed, 13 Sep 2023 10:34:56 +0200 Subject: [PATCH] =?UTF-8?q?=C3=9Cbeschrift=20Freitext=20in=20Auswertung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/result_latest.php | 12 +++++++++++- templates/modern/dashboard/result_latest.html | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/dashboard/result_latest.php b/dashboard/result_latest.php index 2fff81f..427df9a 100644 --- a/dashboard/result_latest.php +++ b/dashboard/result_latest.php @@ -134,7 +134,17 @@ if ($action == '') { # print_r($table_data); # echo""; - + $result_head = $db->query("SELECT freitext_headline + FROM jumi_umfragen + WHERE umid = $umid"); + $row_head = $result_head->fetch_array(); + + if($row_head['freitext_headline'] != ''){ + $smarty->assign('umfrage_value_freitext_headline', "$row_head[freitext_headline]"); + }else{ + $smarty->assign('umfrage_value_freitext_headline', "Bemerkungen"); + } + $query3 = "SELECT freitext FROM jumi_umfragen_erg_freitext WHERE umid = $umid diff --git a/templates/modern/dashboard/result_latest.html b/templates/modern/dashboard/result_latest.html index 4d781c7..3b286fc 100644 --- a/templates/modern/dashboard/result_latest.html +++ b/templates/modern/dashboard/result_latest.html @@ -96,7 +96,7 @@ p { {if $smarty.section.table_data3.rownum == 1} -

Bemerkungen

+

{$umfrage_value_freitext_headline}