-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.php
More file actions
96 lines (75 loc) · 2.84 KB
/
dashboard.php
File metadata and controls
96 lines (75 loc) · 2.84 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
86
87
88
89
90
91
92
93
94
95
96
<?php
session_start();
if (!isset($_SESSION['username'])) {
header("Location: index.php");
exit();
}
include_once 'funktion.php';
include_once 'db-files/db-conect.php';
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Benutzer-Dashboard</title>
<link rel="stylesheet" href="style.css"> <!-- Deine CSS Datei -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script> <!--Für das Kuchendiagramm -->
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.0.1/dist/chart.umd.min.js"></script>
<script src="js/script.js"></script>
<script src="js/dash.js"></script>
</head>
<body>
<?php anzeige_kopfbereich(); ?>
<div id="overlay" style="display: none;"></div>
<?php login_out_window(); ?>
<!-- Bereich für den Lese-Fortschritt -->
<section>
<h2>Lese-Fortschritt</h2>
<div class="dash-additionaldata">
<canvas id="readingProgressChart"></canvas>
<div style="margin-left: 20px;">
<p><strong>Anzahl aller Bücher in der Bibliothek:</strong> <span id="totalBooksCount">0</span></p>
<p><strong>Anzahl von mir zugefügten Büchern:</strong> <span id="addedBooksCount">0</span></p>
<p><strong>Anzahl gelesener Bücher:</strong> <span id="readBooksCount">0</span></p>
<p><strong>Anzahl geschriebener Kommentare:</strong> <span id="commentsCount">0</span></p>
</div>
</div>
</section>
<!-- Bereich für Favoritenliste -->
<section>
<h2>Meine Favoriten</h2>
<div id="loadingMessage" style="display: none;">Daten werden aus der Datenbank geladen...</div>
<div id="favoritesContainer">
<!-- Die Favoritenliste wird hier dynamisch eingefügt -->
</div>
<ul>
<li>Coming Soon...</li>
<li>...</li>
</ul>
</section>
<!-- Bereich für gelesene Bücher -->
<section>
<h2>Gelesene Bücher</h2>
<div id="readBooks" class="db-table">
<!-- Tabelle der gelesenen Bücher wird hier dynamisch geladen -->
</div>
</section>
<!-- Bereich für hinzugefügte Bücher -->
<section>
<h2>Deine hinzugefügten Bücher</h2>
<div id="userBooksTable" class="db-table">
<!-- Hier wird die Tabelle dynamisch durch das JavaScript gefüllt -->
<p>Hier werden die hinzugefügten Bücher angezeigt.</p>
</div>
</section>
<!-- Bereich für empfohlene Bücher -->
<section>
<h2>Deine persönlichen Leseempfehlungen</h2>
<ul id="bookRecommendations">
<!-- Empfohlene Bücher basierend auf den gelesenen Büchern -->
</ul>
</section>
<!-- Bereich für Aktivitäten-Log -->
</body>
</html>