Fix colore box promemoria scaduti
This commit is contained in:
parent
7718ed3aaf
commit
3c76fc038c
|
@ -151,7 +151,7 @@ switch (get('op')) {
|
|||
foreach ($rsp as $r) {
|
||||
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';
|
||||
}else{
|
||||
$class = 'fc-event-primary';
|
||||
|
@ -165,7 +165,7 @@ switch (get('op')) {
|
|||
|
||||
}
|
||||
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;
|
||||
|
|
|
@ -309,7 +309,7 @@ if (!empty($rsp)) {
|
|||
$rsp_old = $dbo->fetchNum($qp_old);
|
||||
|
||||
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'];
|
||||
|
|
Loading…
Reference in New Issue