This commit is contained in:
Walter Hupfeld
2024-03-11 23:06:15 +01:00
parent 4c2d55d699
commit d571968568
10 changed files with 66 additions and 46 deletions

View File

@@ -4,8 +4,8 @@
* Ideenmelder
* Autor: Walter Hupfeld, Hamm
* E-Mail: info@hupfeld-software.de
* Version: 1.0
* Datum: 18.05.2021
* Version: 3.0
* Datum: 11.03.2024
******************************** */
@@ -14,12 +14,14 @@ function generate_tooltip_description($row) {
global $boolComment;
global $boolUpload;
global $boolDefect;
global $boolApprove;
global $uploaddir;
global $arrTopic;
global $arrDefect;
global $db;
$description = $row['description'];
$description = ($boolApprove && $row['approval']) ? $row['description'] : "Freigabe in Kürze";
$numUps = $row['thumb_ups'];
$numDowns = $row['thumb_downs'];
$id = $row['id'];
@@ -29,7 +31,7 @@ function generate_tooltip_description($row) {
$strDescription = "<strong>Anmerkung zu ".$arrTopic[$topic]."</strong><br>";
if ($boolUpload && isset($row['filename'])) {
if ($boolUpload && isset($row['filename']) && ($boolApprove && $row['approval'])) {
$strDescription .= "<a href=\'images/".$row['filename']."\' data-lightbox=\'radweg".$id."\'>";
$strDescription .= "<img src=\'images/".$row['filename']."\' style=\'width:200px;\' /></a><br>";
}