query("SELECT reference_id, content FROM pf_notes WHERE note_type = 'month_config'"); while ($row = $stmtNotes->fetch(PDO::FETCH_ASSOC)) { $parts = explode('-', $row['reference_id']); if (count($parts) == 2) { $mKey = $parts[1] . '-' . $parts[0] . '-01'; $cycleConfigs[$mKey] = json_decode($row['content'], true); } } // Récupération sécurisée du nom des mois (utilise les clés globales existantes) function getMonthName($dateString) { $m = date('m', strtotime($dateString)); $y = date('Y', strtotime($dateString)); return tr('month_' . $m) . ' ' . $y; } ?>
= sprintf(tr('bud_sav_no_data'), htmlspecialchars($currentOwner)) ?>
| = tr('bud_sav_post_month') ?> |
= getMonthName($month) ?>
" . sprintf(tr('bud_sav_from_date'), $cStart) . "";
}
?>
|
|---|---|
| = tr('bud_sav_total_bank') ?> |
€
|
| = htmlspecialchars($cat) ?> |
|
| = tr('bud_sav_extra') ?> | = number_format($extra, 0, ',', ' ') ?> € |