-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
86 lines (75 loc) · 3.46 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
<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="Logo.ico">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>CURIA - Endlich mitreden bei politischen Diskussionen</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://bootswatch.com/4/sketchy/bootstrap.min.css" rel="stylesheet">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<!-- sweet alerts -->
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="/">CURIA</a>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#"></a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<a href="/AddOn_Firefox/web-ext-artifacts/curia-1.1r3-an+fx.xpi" style="font-size: 1.5em"><button type="button" class="btn btn-warning btn-lg " data_but="btn-xs"> JETZT <i class='fa fa-firefox'></i> ERWEITERUNG LADEN</button></a>
</form>
</div>
</nav>
<!-- Begin page content -->
<main role="main" class="container">
<div class="jumbotron">
<img src="https://jugendhackt.org/wp-content/themes/jugend-hackt/library/images/logo.svg" alt="Cinque Terre" class="img-fluid">
<h1>Hilf uns bei einer Definition</h1>
<form action="Server_PHP/input.php" method="POST">
<div class="form-group">
<label for="begriff">Begriff</label>
<input type="begriff" name="begriff" id="begriff" class="form-control" placeholder="Begriff" required>
</div><br/>
<div class="form-group">
<label for="exampleFormControlTextarea1">Definition</label>
<textarea class="form-control" name="definition" id="exampleFormControlTextarea1" rows="4" placeholder="Beschreibe das Wort einfach und in deinen eigenene Worten"></textarea>
</div>
<div class="form-group">
<label for="kategorie">Kategorie</label>
<select class="form-control" name="kategorie" id="kategorie">
<option>Allgemeines</option>
<option>Länder</option>
<option>Gesetze</option>
<option>Parlament</option>
<option>Parteien</option>
<option>Verfassung</option>
<option>Ziviles</option>
</select>
</div>
<div class="form-group">
<label for="exampleFormControlInput1">Nickname</label>
<input type="text" class="form-control" name="autor" id="exampleFormControlInput1" placeholder="Nickname"></br>
<input type="submit" class="btn btn-lg btn-primary" value="Speichern">
</form>
</div>
</main>
</div>
<footer class="footer">
<div class="container">
<span class="text-muted">© by Jugend hackt 2019, Berlin</span>
</div>
</footer>
<?php if($_GET['info'] == "success"){
echo '<script>swal("Success", "You successfully managed to safe some data", "success")</script>';
}
else if($_GET['info'] == "failure"){
echo '<script>swal("Failure", "Saving didn´t work", "error")</script>';
}
?>
</body>
</html>