delete entries in statistic

This commit is contained in:
2022-06-18 10:27:58 +02:00
parent 3bea28c125
commit fe877ea176
3 changed files with 45 additions and 0 deletions

View File

@@ -48,6 +48,7 @@
</div>
<?php
if ($session != "total-score") {
//add edit button
echo "<div>
<form action=\"edit_statistics.php\" method=\"get\">
<input type=\"button\" id=\"edit_statistic\" value=\"Eintrag bearbeiten\" class=\"edit\" disabled=true/>
@@ -55,6 +56,14 @@
<input type=\"hidden\" id=\"station_id\" name=\"s_id\" value=\"". $session . "\"/>
</form>
</div>";
//add delete button
echo "<div>
<form action=\"delete_statistics.php\" method=\"post\">
<input type=\"button\" id=\"delete_statistic\" value=\"Löschen\" class=\"edit\" disabled=\"true\"/>
<input type=\"hidden\" id=\"m_id_delete\" name=\"m_id\"/>
<input type=\"hidden\" id=\"s_id_delete\" name=\"s_id\" value=\"" . $session . "\"/>
</form>
</div>";
} ?>
<div class="table-div">
<table id="table">