First init as an backup of all the data. for the future use.
This commit is contained in:
34
templates/list.php
Normal file
34
templates/list.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Geo lokalizator</title>
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<?php include_once "style.php"; ?>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Lista wpisów</h1>
|
||||
|
||||
<dl>
|
||||
|
||||
<?php foreach ($rows as $row): ?>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
||||
<dt><?= $row['id'] . '. ' . $row['title']; ?></dt>
|
||||
<dd><?= $row['description']; ?></dd>
|
||||
<dd>Utworzone: <?= $row['cre_dt']; ?> | Zaktualizowane: <?= $row['up_dt']; ?> </dd>
|
||||
<dd><a href="/edit/<?= $row['id']; ?>">Edycja</a> | <a href="/delete/<?= $row['id']; ?>" class="red">Usuń</a></dd>
|
||||
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
||||
|
||||
</dl>
|
||||
<a href="/">Główna</a>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user