diff --git a/modules/articoli/edit.php b/modules/articoli/edit.php index fdafefd10..07894418e 100644 --- a/modules/articoli/edit.php +++ b/modules/articoli/edit.php @@ -94,7 +94,7 @@ $_SESSION['superselect']['id_categoria'] = $record['id_categoria'];
Su | M | Tu | W | Th | F | Sa |
---|---|---|---|---|---|---|
Lun | Mar | Mer | Gio | Ven | Sab | Dom |
'.tr($weekday.' '.(sprintf('%02d', $day)).'/'.(sprintf('%02d', $current_month)), [], ['upper' => true])." | \n"; - $row[$rows] .= "\n"; - } - - //giorni del mese - for ($day = 1; $day <= $daysInMonth; ++$day) { - if (($day + $offset - 1) % 7 == 0 && $day != 1) { - // $table .= "\t | |||||
Lun ".$day." | Mar ".($day+1)." | Mer ".($day+2)." | Gio ".($day+3)." | Ven ".($day+4)." | Sab ".($day+5)." | Dom ".($day+6)." |
'.tr($weekday.' '.(sprintf('%02d', $day)).'/'.$month, [], ['upper' => true])." | \n"; - if (empty($rs[$day]['cliente'])) { - $rs[$day]['cliente'] = ' '; - } - - $row[$rows] .= "".''.$rs[$day]['cliente']." | \n"; - } - - //$i = 1; - //giorni dopo - //while( ($day + $offset) <= $rows * 7){ - - for ($i = 1; ($day + $offset) <= ($rows * 7); ++$i) { - $current_month = $month; - if ($current_month == 12) { - $current_month = 1; - $current_year = $year + 1; - } else { - $current_month = $month + 1; - $current_year = $year; - } - - //$lastdateofmonth = date('t',$current_month); - - //$lastdate = $lastdateofmonth."/".$current_month."/".$current_year; - - $weekday = date('l', strtotime($current_year.'-'.$current_month.'-'.(sprintf('%02d', $i)))); - $weekdays = ['Monday' => 'Lunedi\'', 'Tuesday' => 'Martedi\'', 'Wednesday' => 'Mercoledi\'', 'Thursday' => 'Giovedi\'', 'Friday' => 'Venerdi\'', 'Saturday' => 'Sabato', 'Sunday' => 'Domenica']; - $weekday = $weekdays[$weekday]; - - $header[$rows] .= ''.tr($weekday.' '.(sprintf('%02d', $i)).'/'.(sprintf('%02d', $current_month)), [], ['upper' => true])." | \n"; - //$row[$rows] .= " ".($offset+$day)." ".($rows * 7)." | \n";
- $row[$rows] .= "\n"; - - ++$day; - } - - //$header[$rows] .= " |
'.$element['date']->formatLocalized('%A %d/%m').' | '; + } + + echo ' +
---|
'.$clienti.' | '; + } + + echo ' +