Adjust month view to year view.

This commit is contained in:
2025-03-29 14:22:24 +01:00
parent 0319687d97
commit 5e2d693345
5 changed files with 47 additions and 19 deletions

View File

@@ -21,13 +21,12 @@ $values = get_year_values($local_db, $table_aggregation, $chosen_year);
<body>
<form id="year_form"
style="align-self: center; width: 500px; display: grid; grid-template-columns: 25% 25% 25% 25%; gap: 10px;"
style="align-self: center; width: 500px; display: grid; grid-template-columns: 20% 20% 20% 20% 20%; gap: 10px;"
action="/year.php"
method="post">
<a class="button" href="index.php">Monatsübersicht</a>
<?php
if ($years['first'] < $chosen_year) {
echo "<button type='button' onclick='submit_form(2024)'><</button>";
echo "<button type='button' onclick='submit_form(" . $chosen_year - 1 . ")'><</button>";
} else {
echo '<span></span>';
}
@@ -38,6 +37,8 @@ $values = get_year_values($local_db, $table_aggregation, $chosen_year);
echo '<span></span>';
}
?>
<a class="button" href="index.php">Monat</a>
<a class="button" href="production.php">Werte</a>
<input type="hidden" name="year" id="year" value=""/>
</form>
<div id="chart-container">