1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Fix colore box promemoria scaduti

This commit is contained in:
Luca
2018-06-06 00:15:07 +02:00
parent 7718ed3aaf
commit 3c76fc038c
2 changed files with 3 additions and 3 deletions

View File

@@ -151,7 +151,7 @@ switch (get('op')) {
foreach ($rsp as $r) { foreach ($rsp as $r) {
if($r['mese']==$mese){ if($r['mese']==$mese){
if(date('dmY', strtotime($r['data_richiesta']))<date('dmY')){ if(date('Ymd', strtotime($r['data_richiesta']))<date('Ymd')){
$class = 'fc-event-danger'; $class = 'fc-event-danger';
}else{ }else{
$class = 'fc-event-primary'; $class = 'fc-event-primary';
@@ -165,7 +165,7 @@ switch (get('op')) {
} }
else if($da_pianificare==0){ else if($da_pianificare==0){
echo '<br><small class="help-block">Non ci sono interventi da pianificare per questo mese</small>'; echo '<br><small class="help-block">'.tr('Non ci sono interventi da pianificare per questo mese').'</small>';
} }
break; break;

View File

@@ -309,7 +309,7 @@ if (!empty($rsp)) {
$rsp_old = $dbo->fetchNum($qp_old); $rsp_old = $dbo->fetchNum($qp_old);
if ($rsp_old > 0) { if ($rsp_old > 0) {
echo '<div class="alert alert-warning alert-dismissible" role="alert"><i class="fa fa-exclamation-triangle"></i><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> '.tr('Ci sono '.$rsp_old.' interventi da pianificare scaduti.').'</div>'; echo '<div class="alert alert-warning alert-dismissible" role="alert"><i class="fa fa-exclamation-triangle"></i><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> '.tr('Ci sono '.$rsp_old.' interventi scaduti da pianificare.').'</div>';
} }
$mesi = [1 => 'Gennaio', 2 => 'Febbraio', 3 => 'Marzo', 4 => 'Aprile', 5 => 'Maggio', 6 => 'Giugno', 7 => 'Luglio', 8 => 'Agosto', 9 => 'Settembre', 10 => 'Ottobre', 11 => 'Novembre', 12 => 'Dicembre']; $mesi = [1 => 'Gennaio', 2 => 'Febbraio', 3 => 'Marzo', 4 => 'Aprile', 5 => 'Maggio', 6 => 'Giugno', 7 => 'Luglio', 8 => 'Agosto', 9 => 'Settembre', 10 => 'Ottobre', 11 => 'Novembre', 12 => 'Dicembre'];