diff --git a/metallzuschlagindex.php b/metallzuschlagindex.php index 5415758..f1c499e 100755 --- a/metallzuschlagindex.php +++ b/metallzuschlagindex.php @@ -294,6 +294,7 @@ if (!empty($cablesWithKupfer) && !empty($chartData['labels'])) { // Parameter auslesen $cableIds = GETPOST('cable_ids', 'array'); $cableMode = GETPOST('cable_mode', 'alpha') ?: 'per_meter'; + $cableFilterSubmitted = GETPOST('cable_filter', 'int'); // URL-Basis fuer Links $baseUrl = $_SERVER["PHP_SELF"].'?chart_days='.$chartDays; @@ -311,9 +312,10 @@ if (!empty($cablesWithKupfer) && !empty($chartData['labels'])) { // Kabel-Auswahl (Checkboxen) print '
'; - print '
'; + print ''; print ''; print ''; + print ''; print ''; print ''; @@ -323,7 +325,8 @@ if (!empty($cablesWithKupfer) && !empty($chartData['labels'])) { $colCount = 0; foreach ($cablesWithKupfer as $cable) { - $checked = (empty($cableIds) || in_array($cable->rowid, $cableIds)) ? ' checked' : ''; + // Beim ersten Laden alle auswaehlen, danach nur die ausgewaehlten + $checked = (!$cableFilterSubmitted || in_array($cable->rowid, $cableIds)) ? ' checked' : ''; print '
'; print '