article_overview.php aktualisiert
This commit is contained in:
parent
259178e7d4
commit
97d3e86652
|
@ -38,6 +38,7 @@
|
|||
<li><a href="index.php">Home</a></li>
|
||||
<li><a href="add_material_form.php">Artikel hinzufügen</a></li>
|
||||
<li><a href="article_overview.php">Artikel Übersicht</a></li>
|
||||
<li><a href="backup_restore.php">Backup</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
@ -67,6 +68,9 @@
|
|||
<th>Aktionen</th>
|
||||
</tr>
|
||||
<?php
|
||||
// Protokollierungsereignis einbinden
|
||||
include_once 'log_event.php';
|
||||
|
||||
// Datenbankverbindung herstellen
|
||||
include_once 'config/config.php';
|
||||
|
||||
|
@ -144,6 +148,13 @@ if ($result->num_rows > 0) {
|
|||
<input type='submit' value='Speichern'>
|
||||
</form>
|
||||
</td></tr>";
|
||||
|
||||
// Loggen des Löschens eines Artikels
|
||||
echo "<script>function confirmDelete" . $row["id"] . "() {
|
||||
if(confirm('Möchten Sie diesen Artikel wirklich löschen?')) {
|
||||
window.location.href = 'remove_article.php?id=" . $row["id"] . "';
|
||||
}
|
||||
}</script>";
|
||||
}
|
||||
} else {
|
||||
echo "<tr><td colspan='9'>Keine Artikel gefunden</td></tr>";
|
||||
|
|
Loading…
Reference in New Issue