Übeschrift Freitext in Auswertung

This commit is contained in:
aschwarz 2023-09-13 10:34:56 +02:00
parent c2356c0dad
commit b8349acf71
2 changed files with 12 additions and 2 deletions

View File

@ -134,7 +134,17 @@ if ($action == '') {
# print_r($table_data);
# echo"</pre>";
$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

View File

@ -96,7 +96,7 @@ p {
{if $smarty.section.table_data3.rownum == 1}
<thead>
<tr>
<th scope="col"><p class="text-primary">Bemerkungen</p></th>
<th scope="col"><p class="text-primary">{$umfrage_value_freitext_headline}</p></th>
</tr>
</thead>
<tbody>