diff --git a/app/public/css/styles.css b/app/public/css/styles.css index dc0fe81..bb585f6 100644 --- a/app/public/css/styles.css +++ b/app/public/css/styles.css @@ -217,6 +217,14 @@ div.headline h2{ visibility: visible; } +#icon-download { + position:absolute; + top: 6px; + left: 5px; + pointer-events: none; + visibility: visible; +} + .input-table{ padding-left: 2px; padding-right: 2px; diff --git a/app/public/download_table.php b/app/public/download_table.php new file mode 100644 index 0000000..45dcb23 --- /dev/null +++ b/app/public/download_table.php @@ -0,0 +1,35 @@ +fetch()) { + if ($header) { + fputcsv($output, array_keys($row)); + $header = false; + } + fputcsv($output, $row); + } + fclose($output); +} + + if($table == "total-score") { + $total_score = get_total_score($con); + download_table($total_score); + } else { + $station = get_station($con, $table); + download_table($station); + } +?> \ No newline at end of file diff --git a/app/public/statistik.php b/app/public/statistik.php index eecad95..2631688 100644 --- a/app/public/statistik.php +++ b/app/public/statistik.php @@ -74,6 +74,16 @@ \n"; } + + if($user_data['user_group'] == 'admin') { + echo "
+
+ + + +
+
"; + } ?>