-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprotected-index.php
More file actions
85 lines (69 loc) · 3.06 KB
/
protected-index.php
File metadata and controls
85 lines (69 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
if (!isset($_SESSION['username'])) {
header("Location: index.php");
exit();
}
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <link rel="stylesheet" href="style.css"> -->
<title>Geschützter Bereich</title>
<script src="js/check_isbn.js"></script>
<script src="js/load_genre.js"></script>
<script src="js/googleapis_books.js"></script>
</head>
<body>
<div id="Add" class="addBuch-container">
<h2>Buch hinzufügen</h2>
<form id="addBookForm" action="db-files/add_book.php" method="POST">
<div class="input-container">
<label for="title">Titel:</label>
<input type="text" id="title" name="title" placeholder="* Pflicht" required>
</div>
<div class="input-container">
<label for="subtitle">Sub-Titel:</label>
<input type="text" id="subtitle" name="subtitle">
</div>
<div class="input-container">
<label for="author">Autor:</label>
<input type="text" id="author" name="author" placeholder="* Pflicht" required>
</div>
<div class="input-container">
<label for="isbn">ISBN:</label>
<input type="text" name="isbn" id="isbn" oninput="validateISBN()" placeholder="* Pflicht" required>
<div id="isbnError" class="error-message"></div>
</div>
<div class="input-container">
<label for="year">Erscheinungsjahr:</label>
<input type="number" id="year" name="year" min="1901" max="2155" step="1" placeholder="1901-2155">
</div>
<div class="season-volume-container">
<div class="input-container">
<label for="season">Season:</label>
<input type="number" id="season" name="season" min="0" placeholder="Staffel / Season">
</div>
<div class="input-container">
<label for="volume">Volume:</label>
<input type="number" id="volume" name="volume" min="0" placeholder="Band / Volume">
</div>
</div>
<label for="description">Klappentext:</label>
<textarea id="description" name="description"></textarea>
<label for="genres">Genres:</label><br>
<div id="genreCheckboxes" class="checkbox-container"></div>
<div class="button-container">
<input type="button" id="apiAddBookBtn" value="Buch mit API hinzufügen" disabled>
<input type="submit" id="submitBtn" value="Buch hinzufügen" disabled>
</div>
</form>
</div>
<div class="protected-container">
<h2>Willkommen, <?php echo htmlspecialchars($_SESSION['username']); ?>!</h2>
<p>Dies ist ein geschützter Bereich, den nur angemeldete Benutzer sehen können.</p>
<a href="logout.php">Ausloggen</a>
</div>
</body>
</html>