Adjust month view to year view.
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user