Projecte M07, botiga en php.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1000 B

<!DOCTYPE html>
<title>Botiga php</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style/w3.css">
<!-- Navbar (sit on top) -->
<div class="w3-top">
<div class="w3-bar w3-white w3-wide w3-padding w3-card">
<a href="home.php" class="w3-bar-item w3-button"><b>Botiga</b> php</a>
<!-- Float links to the right. Hide them on small screens -->
<div class="w3-right w3-hide-small">
if (isset($_SESSION['username'])) {
<a href="my-products.php" class="w3-bar-item w3-button">My Products &#128458;</a>
<a href="logout.php" class="w3-bar-item w3-button">Logout</a>
} else {
<a href="register-page.php" class="w3-bar-item w3-button">Register</a>
<a href="login-page.php" class="w3-bar-item w3-button">Login</a>