Skip to content

Commit

Permalink
rejestracja
Browse files Browse the repository at this point in the history
  • Loading branch information
krisskiemel committed Mar 18, 2022
1 parent 4ed78c8 commit dba9f5c
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 3 deletions.
1 change: 0 additions & 1 deletion menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<li class="nav-item">
<a class="nav-link" href="ustawienia.php">Ustawienia</a>
</li>

</ul>
<ul class="nav navbar-nav navbar-right">
<li><a class="nav-link" href="#"><span class="glyphicon glyphicon-user"></span> Zarejestruj się</a></li>
Expand Down
47 changes: 47 additions & 0 deletions rejestracja.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php
if (isset($_COOKIE['kolory'])) {
$kolory = $_COOKIE['kolory'];
} else {
$kolory = "dark";
}
?>
<?php include "db_conn.php";?>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<title>Wypożyczalnia samochodów - rejestracja</title>
</head>

<body>
<?php include "menu.php";?>
<div class="container-fluid">
<form action="rejestracja.php" method="get">
<div class="mb-3 mt-3">
<label for="nazwisko" class="form-label">Imię nazwisko:</label>
<input type="text" class="form-control" id="nazwisko" name="nazwisko" required>
</div>
<div class="mb-3 mt-3">
<label for="login" class="form-label">Login:</label>
<input type="text" class="form-control" id="login" name="login" required>
</div>
<div class="mb-3 mt-3">
<label for="password" class="form-label">Hasło:</label>
<input type="password" class="form-control" id="password" name="password" required>
</div>
<div class="mb-3 mt-3">
<label for="password2" class="form-label">Powtórz hasło:</label>
<input type="password" class="form-control" id="password2" name="password2" required>
</div>
<div class="mb-3 mt-3">
<button type="submit" class="btn btn-<?php echo $kolory?>">Zarejestruj</button>
</div>
</form>
</div>

</body>

</html>
2 changes: 0 additions & 2 deletions ustawienia.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
$kolory = "dark";
}
}


?>
<?php include "db_conn.php";?>
<html>
Expand Down

0 comments on commit dba9f5c

Please sign in to comment.