First init as an backup of all the data. for the future use.

This commit is contained in:
2017-07-18 11:33:10 +02:00
commit f0f07b7ae7
9 changed files with 538 additions and 0 deletions

34
templates/list.php Normal file
View 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>