added alert flag and variation flag

This commit is contained in:
2026-07-19 15:06:18 +02:00
parent 4e61426be7
commit 58af735082
10 changed files with 180 additions and 27 deletions
+12
View File
@@ -941,6 +941,12 @@ function getContrastTextColor($hexColor)
<?php if ((int)$row['attachment_count'] > 0): ?>
<span><i class="fa-solid fa-paperclip"></i> <?= (int)$row['attachment_count'] ?></span>
<?php endif; ?>
<?php if (!empty($row['attiva_alert'])): ?>
<span><i class="fa-solid fa-bell text-warning"></i> Alert</span>
<?php endif; ?>
<?php if (!empty($row['variazioni'])): ?>
<span><i class="fa-solid fa-arrows-rotate text-info"></i> Variazioni</span>
<?php endif; ?>
</div>
<?php if (!$row['_isCompleted']): ?>
@@ -1010,6 +1016,12 @@ function getContrastTextColor($hexColor)
<td>
<a href="scadenzario/detail.php?id=<?= (int)$row['id'] ?>" class="fw-semibold text-decoration-none" style="color:var(--scad-heading)"><?= htmlspecialchars($row['topic'], ENT_QUOTES, 'UTF-8') ?></a>
<?php if (!empty($row['attiva_alert'])): ?>
<i class="fa-solid fa-bell text-warning ms-1" title="Alert attivo"></i>
<?php endif; ?>
<?php if (!empty($row['variazioni'])): ?>
<i class="fa-solid fa-arrows-rotate text-info ms-1" title="In caso di variazioni"></i>
<?php endif; ?>
<?php if ((int)$row['attachment_count'] > 0): ?>
<span class="text-muted ms-1" title="<?= (int)$row['attachment_count'] ?> allegati"><i class="fa-solid fa-paperclip"></i> <?= (int)$row['attachment_count'] ?></span>
<?php endif; ?>