From 1c69511569cd11c04dcc5502501e69ed4f756526 Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 8 Jan 2021 12:03:10 +0100 Subject: [PATCH] Aggiunta colorazione rossa per notifiche interne scadute --- modules/dashboard/widgets/notifiche.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/dashboard/widgets/notifiche.php b/modules/dashboard/widgets/notifiche.php index 0c2bcbabf..233be1e2b 100755 --- a/modules/dashboard/widgets/notifiche.php +++ b/modules/dashboard/widgets/notifiche.php @@ -64,8 +64,11 @@ foreach ($moduli as $module_id => $note) { '; foreach ($note as $nota) { + + $class = (strtotime($nota->notification_date) < strtotime(date('Y-m-d')) && !empty($nota->notification_date)) ? 'danger' : ''; + echo ' - + '.$nota->id_record.'