2025-09-03 10:20:56 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="pl">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
2025-09-08 13:23:40 +00:00
|
|
|
<title>Sklep z obuwiem</title>
|
2025-09-03 10:20:56 +00:00
|
|
|
<link rel="stylesheet" href="css/layout.css">
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
2025-09-04 11:00:25 +00:00
|
|
|
|
2025-09-03 12:35:25 +00:00
|
|
|
<header>
|
2025-09-08 13:23:40 +00:00
|
|
|
<img src="imgs/baner.png" alt="sklep z obuwiem">
|
|
|
|
|
<div class="header-text">Sklep z obuwiem</div>
|
2025-09-03 10:20:56 +00:00
|
|
|
</header>
|
2025-09-04 10:54:12 +00:00
|
|
|
|
2025-09-03 10:20:56 +00:00
|
|
|
<nav>
|
2025-09-08 13:23:40 +00:00
|
|
|
<a href="i1.php">Strona główna</a>
|
2025-09-03 10:20:56 +00:00
|
|
|
<a href="raty.html">Koszt rat</a>
|
|
|
|
|
<a href="https://moje-szkolenia.pl/">Nasz partner</a>
|
|
|
|
|
</nav>
|
2025-09-04 11:00:25 +00:00
|
|
|
|
2025-09-03 10:20:56 +00:00
|
|
|
<main>
|
2025-09-08 13:23:40 +00:00
|
|
|
<h3>Oferta obuwia</h3>
|
2025-09-03 10:20:56 +00:00
|
|
|
<table>
|
|
|
|
|
<tr>
|
2025-09-08 13:23:40 +00:00
|
|
|
<th>Model</th>
|
|
|
|
|
<th>Kategoria</th>
|
2025-09-03 10:20:56 +00:00
|
|
|
<th>Cena</th>
|
2025-09-08 13:23:40 +00:00
|
|
|
<th>Opis</th>
|
2025-09-03 10:20:56 +00:00
|
|
|
</tr>
|
2025-09-08 13:23:40 +00:00
|
|
|
<?php
|
|
|
|
|
require_once 'config/database.php';
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
$stmt = $pdo->query("
|
|
|
|
|
SELECT b.model, k.nazwa_kat, b.nazwa, b.cena, b.opis
|
|
|
|
|
FROM obuwie_buty b
|
|
|
|
|
JOIN obuwie_kategorie k ON b.id_kat = k.id_kat
|
|
|
|
|
");
|
|
|
|
|
|
|
|
|
|
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
|
|
|
|
|
echo "<tr>";
|
|
|
|
|
echo "<td>" . htmlspecialchars($row['nazwa']) . "</td>";
|
|
|
|
|
echo "<td>" . htmlspecialchars($row['nazwa_kat']) . "</td>";
|
|
|
|
|
echo "<td>" . number_format($row['cena'], 2) . " zł</td>";
|
|
|
|
|
echo "<td>" . htmlspecialchars($row['opis']) . "</td>";
|
|
|
|
|
echo "</tr>";
|
|
|
|
|
}
|
|
|
|
|
} catch (PDOException $e) {
|
|
|
|
|
echo "<tr><td colspan='4'>Błąd przy ładowaniu danych: " . $e->getMessage() . "</td></tr>";
|
|
|
|
|
}
|
|
|
|
|
?>
|
2025-09-03 10:20:56 +00:00
|
|
|
</table>
|
|
|
|
|
<h3>Adres do korespondencji</h3>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>Adres: Katowice, ul. Mariacka 5</li>
|
|
|
|
|
<li>Telefon: 32 888 88 88</li>
|
|
|
|
|
</ul>
|
2025-09-08 13:23:40 +00:00
|
|
|
<a href="mailto:sklep@obuwie.pl">skontaktuj się</a>
|
2025-09-03 10:20:56 +00:00
|
|
|
</main>
|
|
|
|
|
<footer>
|
|
|
|
|
<p>Autor strony: 99010101010</p>
|
|
|
|
|
</footer>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|