-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
400 lines (377 loc) · 19 KB
/
index.html
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
<!DOCTYPE html>
<html lang="de">
<head>
<title>MongoDB Demo</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/dbfrontend.css">
<link rel="stylesheet" type="text/css" href="css/datatables.min.css"/>
<link rel="stylesheet" type="text/css" href="css/bootstrap-tagsinput.css"/>
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/datatables.min.js"></script>
<script type="text/javascript" src="js/dbfrontend.js"></script>
<script type="text/javascript" src="js/angular.min.js"></script>
<script type="text/javascript" src="js/bootstrap-tagsinput.js"></script>
<script type="text/javascript" src="js/bootstrap-tagsinput-angular.js"></script>
</head>
<body id="mongoDemo" data-spy="scroll" data-target=".navbar" data-offset="60">
<!-- Scrollspy -->
<!-- NavBar -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<img class="navbar-brand" href="https://www.mongodb.com/" src="images/logo.svg">
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li><a href="#ergebnis">SUCHERGEBNIS</a></li>
<li><a href="#hinzufuegen">HINZUFÜGEN</a></li>
<li><a href="#bearbeiten">BEARBEITEN</a></li>
<li><a href="#ueber">ÜBER</a></li>
<li><a href="#api">API</a></li>
</ul>
</div>
</div>
</nav>
<!-- Container (Header Section) -->
<div id="suchen" class="jumbotron text-center fill">
<h1>Movie Database</h1>
<p>Eine MongoDB Demo.</p>
<form class="form-inline">
<div class="input-group">
<input id="search" type="text" class="form-control" size="50"
placeholder="Suche nach Film, Schauspieler oder Regisseur." required>
<div class="input-group-btn">
<button id="searchbtn" type="button" class="btn btn-danger" onclick="location.href='#ergebnis'">Suchen</button>
</div>
</div>
<br><br>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default active">
<input type="radio" name="options" id="option1" autocomplete="off" value="filme" checked> Filme
</label>
<label class="btn btn-default">
<input type="radio" name="options" id="option2" autocomplete="off" value="personen"> Personen
</label>
</div>
</form>
</div>
<!-- Container (Suchergebnis Section) -->
<div id="ergebnis" class="container-fluid fill">
<div class="row">
<div class="alert alert-success" id="message_success" style="display:none;">
<strong>Erledigt!</strong> <label id="success_label"></label>
</div>
<div class="alert alert-danger" id="message_failed" style="display:none;">
<strong>Fehler!</strong> <label id="failed_label"></label>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div style="display: inline-block; position: absolute;">
<span class="glyphicon glyphicon-search "></span> Suchergebnisse
</div>
<div style="display: inline-block; width: 100%; position: relative">
<center>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default active">
<input type="radio" name="options2" id="option2_1" autocomplete="off" value="filme"
checked> Filme
</label>
<label class="btn btn-default">
<input type="radio" name="options2" id="option2_2" autocomplete="off" value="personen">
Personen
</label>
</div>
</center>
</div>
</div>
<div class="panel-body">
<table id="suchergebnis" width="100%" class="table compact table-striped table-hover">
<thead>
<tr>
<th style="text-align: center">Titel</th>
<th style="text-align: center">Genre</th>
<th style="text-align: center">Erscheinungsjahr</th>
<th style="text-align: center">Bewertung</th>
<th style="text-align: center">Aktion</th>
<th style="text-align: center; display: none">Id</th>
<th style="text-align: center; display: none">Tags</th>
</tr>
</thead>
</table>
<table id="suchergebnis_personen" width="100%" class="table compact table-striped table-hover">
<thead>
<tr>
<th style="text-align: center">Nachname</th>
<th style="text-align: center">Vorname</th>
<th style="text-align: center">Alter</th>
<th style="text-align: center">Geschlecht</th>
<th style="text-align: center">Nationalität</th>
<th style="text-align: center">Sprachen</th>
<th style="text-align: center">Aktion</th>
<th style="text-align: center; display: none">Id</th>
</tr>
</thead>
</table>
</div>
</div>
<!-- <div class="col-sm-4 text-center">
<span class="glyphicon glyphicon-search logo "></span>
</div>
<div class="col-sm-8">
<h2>Suchen</h2>
<h4><strong>MISSION:</strong> Our mission lorem ipsum..</h4>
<p><strong>VISION:</strong> Our vision Lorem ipsum..</p>
</div>-->
</div>
</div>
<!-- Container (Hinzufügen Section) -->
<div id="hinzufuegen" class="container-fluid bg-grey fill">
<div class="row">
<div class="col-md-8">
<p></p>
<div class="panel panel-default">
<div class="panel-heading">
<div style="display: inline-block; position: absolute;"> Hinzufügen
</div>
<div style="display: inline-block; width: 100%; position: relative">
<center>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default active">
<input type="radio" name="options3" id="option3_1" autocomplete="off" value="filme"
checked>
Filme
</label>
<label class="btn btn-default">
<input type="radio" name="options3" id="option3_2" autocomplete="off"
value="personen"> Personen
</label>
</div>
</center>
</div>
</div>
<div class="panel-body">
<form id="add_movie_container">
<div class="form-group">
<label for="titel">Filmtitel:</label>
<input type="text" class="form-control" id="titel" required>
</div>
<div class="form-group">
<label for="year">Erscheinungsjahr:</label>
<input type="number" class="form-control" id="year" required>
</div>
<div class="form-group">
<label for="rating">Bewertung:</label>
<input type="text" class="form-control" id="rating" required>
</div>
<div class="form-group">
<label for="genres">Genres:</label>
<input type="text" class="form-control" id="genres" data-role="tagsinput"
style="width: 100%">
</div>
<div class="form-group">
<label for="tags">Tags:</label>
<input type="text" class="form-control" id="tags" data-role="tagsinput" style="width: 100%">
</div>
<button type="submit" class="btn btn-success">Hinzufügen</button>
<button type="reset" class="btn btn-danger">Reset</button>
</form>
<form id="add_person_container">
<div class="form-group">
<label for="firstname">Vorname:</label>
<input type="text" class="form-control" id="firstname" required>
</div>
<div class="form-group">
<label for="lastname">Nachname:</label>
<input type="text" class="form-control" id="lastname" required>
</div>
<div class="form-group">
<label for="age">Alter:</label>
<input type="number" class="form-control" id="age" required>
</div>
<div class="form-group">
<label for="gender">Geschlecht:</label>
<input type="text" class="form-control" id="gender" required>
</div>
<div class="form-group">
<label for="country">Nationalität:</label>
<input type="text" class="form-control" id="country" required>
</div>
<div class="form-group">
<label for="tags">Sprachen:</label>
<input type="text" class="form-control" id="languages" data-role="tagsinput" style="width: 100%">
</div>
<button type="submit" class="btn btn-success">Hinzufügen</button>
<button type="reset" class="btn btn-danger">Reset</button>
</form>
</div>
</div>
</div>
<div class="col-md-4 text-center">
<center>
<span class="glyphicon glyphicon-plus logo slideanim" style="margin: 32%"></span>
</center>
</div>
</div>
</div>
<!-- Container (Bearbeiten Section) -->
<div id="bearbeiten" class="container-fluid fill">
<div class="row">
<div class="col-md-4 text-center">
<span class="glyphicon glyphicon-pencil logo slideanim" style="margin: 30%"></span>
</div>
<div class="col-md-8" id="placeholder">
<h2>Bearbeiten</h2>
<div>
<h4>Wähle einen Eintrag aus der Tabelle.</h4>
</div>
<p></p>
</div>
<div class="col-md-8" style="display: none;" id="change_container">
<p></p>
<div class="panel panel-default">
<div class="panel-heading"> Bearbeiten</div>
<div class="panel-body">
<form id="change_movie_container">
<input type="hidden" id="movie_id">
<div class="form-group">
<label for="change_titel">Filmtitel:</label>
<input type="text" class="form-control" id="change_titel" required>
</div>
<div class="form-group">
<label for="change_titel">Regisseur:</label>
<input type="text" class="form-control" id="change_regisseur" required>
</div>
<div class="form-group">
<label for="change_year">Ercheinungsjahr:</label>
<input type="number" class="form-control" id="change_year" required>
</div>
<div class="form-group">
<label for="change_rating">Bewertung:</label>
<input type="text" class="form-control" id="change_rating" required>
</div>
<div class="form-group">
<label for="change_genres">Genres:</label>
<input type="text" class="form-control" id="change_genres" data-role="tagsinput"
style="width: 100%">
</div>
<div class="form-group">
<label for="change_tags">Tags:</label>
<input type="text" class="form-control" id="change_tags" data-role="tagsinput"
style="width: 100%">
</div>
<button type="submit" class="btn btn-success">Ändern</button>
<button type="button" class="btn btn-danger" id="change_movies_abort">Abbrechen</button>
</form>
<form id="change_person_container">
<input type="hidden" id="person_id">
<div class="form-group">
<label for="change_firstname">Vorname:</label>
<input type="text" class="form-control" id="change_firstname" required>
</div>
<div class="form-group">
<label for="change_lastname">Nachname:</label>
<input type="text" class="form-control" id="change_lastname" required>
</div>
<div class="form-group">
<label for="change_age">Alter:</label>
<input type="number" class="form-control" id="change_age" required>
</div>
<div class="form-group">
<label for="change_gender">Geschlecht:</label>
<input type="text" class="form-control" id="change_gender" required>
</div>
<div class="form-group">
<label for="change_country">Nationalität:</label>
<input type="text" class="form-control" id="change_country" required>
</div>
<div class="form-group">
<label for="change_tags">Sprachen:</label>
<input type="text" class="form-control" id="change_languages" data-role="tagsinput"
style="width: 100%">
</div>
<div class="form-group">
<label for="change_tags">Filme:</label>
<input type="text" class="form-control" id="change_movies" data-role="tagsinput" readonly
style="width: 100%">
</div>
<button type="submit" class="btn btn-success">Ändern</button>
<button type="button" class="btn btn-danger" id="change_persons_abort">Abbrechen</button>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- Container (About Section) -->
<div id="ueber" class="container-fluid bg-grey fill-90">
<div class="row">
<div class="col-md-8">
<h2>Über dieses Projekt</h2>
<h4>Diese Seite zeigt eine MongoDB Demoanwendung für das Datenbank-Praktikum im Master-Studiengang
"Informatik" des Sommersemesters 2017. Als Anwendung wurde ein Film-Datenbank gewählt die alle
Standardoperationen mit MongoDB zeigt. Entwickelt wurde sie von:</h4>
<br>
<div class="row">
<div class="col-lg-2">
<img class="img-circle" src="images/jadi.png">
</div>
<div class="col-lg-10">
<h2 class="pull-left" style="vertical-align: middle;margin-top:40px;">Jan Kevin Dick (867992)</h2>
</div>
</div>
<div class="row">
<div class="col-lg-10">
<h2 class="pull-right" style="vertical-align: middle;margin-top:40px;">Kevin Dietzen (867516)</h2>
</div>
<div class="col-lg-2">
<img class="img-circle" src="images/kedi.png">
</div>
</div>
<div class="row">
<div class="col-lg-2">
<img class="img-circle" src="images/thsc.png">
</div>
<div class="col-lg-10">
<h2 class="pull-left" style="vertical-align: middle;margin-top:40px;">Thomas Schentarra (868357)</h2>
</div>
</div>
</div>
<div class="col-md-4 text-center">
<span class="glyphicon glyphicon-education logo slideanim" style="margin: 32%"></span>
</div>
</div>
</div>
<!-- Container (Hilfe Section) -->
<div id="api" class="container-fluid fill-110">
<div class="row">
<div class="col-md-8 ">
<div class="embed-responsive embed-responsive-4by3">
<iframe class="embed-responsive-item" src="http://10.0.107.102:8081/swagger-ui.html"></iframe>
</div>
</div>
<div class="col-md-4 text-center">
<span class="glyphicon glyphicon-question-sign logo slideanim"></span>
</div>
</div>
</div>
<!-- Footer -->
<footer class="text-center navbar-fixed-bottom">
<a href="#mongoDemo" title="To Top">
<span class="glyphicon glyphicon-chevron-up"></span>
</a>
<p>Diese Seite wurde von drei fleißigen Studenten erstellt.
</p>
<p><a href="https://www.hs-kl.de" title="Hochschulseite">Besuche die Hochschulseite</a></p>
</footer>
</body>
</html>