This repository has been archived by the owner on Oct 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
223 lines (206 loc) · 11.1 KB
/
index.php
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<?php
include "./php/templates.php";
session_start();
global $class_name;
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AP20b - Home</title>
<!-- CSS only -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<!-- JS, Popper.js, and jQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<link rel="shortcut icon" href="https://tbz.ch/wp-content/themes/tbz/favicons/favicon.ico">
<script src="/js/errorResolver.js"></script>
<script src="/js/login.js"></script>
<script src="/js/darkmode.js"></script>
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<?php echo getNavbar($_SESSION); ?>
<h1 class="text-center" style="margin-top: 50px">Klasse <?php echo $class_name; ?></h1>
<p role="doc-introduction" class="text-center">Das Webportal der Klasse</p>
<!-- Login Modal -->
<div class="modal fade" id="modal-login" tabindex="-1" role="dialog" aria-labelledby="modal-login" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header" role="heading">
<h5 role="heading" class="modal-title">Einloggen</h5>
<button role="button" type="button" class="close" data-dismiss="modal" aria-label="Schliessen"
style="outline: none;">
<span aria-hidden="true" style="outline: none">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<label for="login-email">E-Mail</label>
<input type="email" class="form-control" id="login-email"
placeholder="max.mustermann@mustermail.ch" autocomplete="username"
aria-labelledby="login-email">
</div>
<div class="form-group">
<label for="login-password">Passwort</label>
<input type="password" class="form-control" id="login-password" placeholder="Passwort"
autocomplete="current-password">
<small id="login-error" class="form-text" style="color: red;"></small>
<small id="login-http-error" class="form-text" style="color: red;"></small>
<div class="custom-control custom-checkbox mb-3" style="margin-top: 10px">
<input type="checkbox" class="custom-control-input" id="login-remember">
<label class="custom-control-label" for="login-remember">E-Mail merken</label>
</div>
</div>
<a href="#" id="login-btn-reset">Passwort vergessen?</a>
</div>
<div class="modal-footer">
<a id="login-btn-register" class="float-left">Noch kein Konto?</a>
<button id="login-login-btn" type="button" class="btn btn-success float-right" disabled>Login</button>
</div>
</div>
</div>
</div>
<!-- Register Modal -->
<div class="modal fade" id="modal-register" tabindex="-1" role="dialog" aria-labelledby="modal-register"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Registrieren</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Schliessen" style="outline: none">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<label for="register-email">E-Mail</label>
<input type="email" class="form-control" id="register-email"
placeholder="max.mustermann@mustermail.ch"
autocomplete="email">
</div>
<div class="form-group">
<label for="register-password">Passwort</label>
<input type="password" class="form-control" id="register-password"
aria-describedby="register-password-hint"
placeholder="Passwort" autocomplete="new-password">
<small id="register-password-hint" class="text-muted">Dein Passwort muss mindestens 8 Zeichen lang
sein.</small>
<small id="register-error" class="form-text" style="color: red;"></small>
<small id="register-http-error" class="form-text" style="color: red;"></small>
<small id="register-success" class="form-text text-success"></small>
</div>
<div class="form-group">
</div>
</div>
<div class="modal-footer">
<a id="register-btn-login" class="float-left">Schon registriert?</a>
<button id="register-register-btn" type="button" class="btn btn-success float-right" disabled>
Registrieren
</button>
</div>
</div>
</div>
</div>
<!--Reset-->
<div class="modal fade" id="modal-reset" tabindex="-1" role="dialog" aria-labelledby="modal-reset" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content" id="reset-content1">
<div class="modal-header" role="heading">
<h5 role="heading" class="modal-title">Passwort zurücksetzen</h5>
<button role="button" type="button" class="close" data-dismiss="modal" aria-label="Schliessen"
style="outline: none;">
<span aria-hidden="true" style="outline: none">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<label for="reset-email">E-Mail</label>
<input type="email" class="form-control" id="reset-email"
placeholder="max.mustermann@mustermail.ch" autocomplete="username"
aria-labelledby="login-email">
</div>
<small id="reset-error" class="form-text" style="color: red;"></small>
<small id="reset-http-error" class="form-text" style="color: red;"></small>
<small class="form-text">Du erhältst eine E-Mail mit einem Code.</small>
</div>
<div class="modal-footer">
<button id="reset-reset-btn" type="button" class="btn btn-danger float-right">Code anfordern</button>
</div>
</div>
<div class="modal-content" id="reset-content2" style="display: none">
<div class="modal-header" role="heading">
<h5 role="heading" class="modal-title">Passwort zurücksetzen</h5>
<button role="button" type="button" class="close" data-dismiss="modal" aria-label="Schliessen"
style="outline: none;">
<span aria-hidden="true" style="outline: none">×</span>
</button>
</div>
<div class="modal-body">
<p>Ein Verifikationscode wurde nun an <strong id="reset2-strong-mail"></strong> gesendet! Gib diesen nun hier ein.
Sieh eventuell auch im Spam-Ordner nach!</p><br>
<input class="form-control form-control-lg reset-code" id="reset-code" placeholder="123456" maxlength="6" minlength="6">
<small id="reset-code-error" class="form-text" style="color: red;"></small>
</div>
<div class="modal-footer">
<button id="reset-verify-btn" type="button" class="btn btn-danger float-right" disabled>Code überprüfen</button>
</div>
</div>
<div class="modal-content" id="reset-content3" style="display: none">
<!-- TODO add reset code input -->
<div class="modal-header" role="heading">
<h5 role="heading" class="modal-title">Passwort zurücksetzen</h5>
<button role="button" type="button" class="close" data-dismiss="modal" aria-label="Schliessen"
style="outline: none;">
<span aria-hidden="true" style="outline: none">×</span>
</button>
</div>
<div class="modal-body">
<p>Bitte gib nun dein neues Passwort ein, welches mindestens 8 Zeichen lang ist.</p><br>
<div class="form-group">
<label for="reset-password">Neues Passwort</label>
<input type="password" class="form-control" id="reset-password"
placeholder="Passwort" autocomplete="new-password">
<small id="reset-password-error" class="form-text" style="color: red;"></small>
</div>
</div>
<div class="modal-footer">
<button id="reset-password-btn" type="button" class="btn btn-danger float-right" disabled>Passwort zurücksetzen</button>
</div>
</div>
</div>
</div>
<div class="card-deck" style="margin: 50px 5%">
<div class="card"
">
<div class="card-header">Nützliche Links</div>
<div class="card-body">
<h3>TBZ</h3>
<ul class="list-group list-group-flush">
<li class="list-group-item"><a href="https://ecolm.com" target="_blank">Ecolm TBZ</a></li>
<li class="list-group-item"><a href="https://bscw.tbz.ch/bscw/bscw.cgi" target="_blank">BSCW TBZ</a></li>
<li class="list-group-item"><a href="https://edu.juergarnold.ch/" target="_blank">edu.JuergArnold.ch</a>
</li>
</ul>
<h3 style="margin-top: 20px">BMZ</h3>
<ul class="list-group list-group-flush">
<li class="list-group-item"><a href="https://intranet.tam.ch/bmz/" target="_blank">Intranet BMZ</a></li>
</ul>
<h3 style="margin-top: 20px">Quizlet (BMS)</h3>
<ul class="list-group list-group-flush">
<li class="list-group-item"><a href="https://quizlet.com/Lezurex/folders/langenscheidt-franzosisch"
target="_blank">Französisch</a></li>
<li class="list-group-item"><a href="https://quizlet.com/Lezurex/folders/chemie" target="_blank">Chemie</a>
</li>
</ul>
</div>
</div>
</div>
<?php echo getFooter(); ?>
<script src="js/login.js"></script>
<script src="js/register.js"></script>
<script src="js/reset.js"></script>
</body>
</html>