1
0
Fork 0
This commit is contained in:
Findus23 2013-12-31 14:53:50 +01:00
parent 54a99bb0d7
commit c10d574530
4 changed files with 46 additions and 3 deletions

6
abmelden.php Normal file
View file

@ -0,0 +1,6 @@
<?php
session_start();
session_destroy();
header("Location: http://localhost/mysql/veranstaltung/veranstaltungen.php");
?>

View file

@ -35,6 +35,13 @@ if (!isset($_SESSION['user'])) {
<meta charset="utf-8" />
<title>Login</title>
<meta name="author" content="Lukas" >
<link rel="stylesheet" href="style.css" />
<style type="text/css">
input {
width: auto;
}
</style>
</head>

View file

@ -1,5 +1,8 @@
tr:nth-child(2n) td {
background: #EEE8AA;
background: #CEF6D8
}
tr:nth-child(2n-1) td {
background: #FAFA1F
}
a.tabelle:visited {
color: blue;
@ -8,3 +11,30 @@ input, textarea {
width: 300px;
}
table {
margin: auto;
border-collapse: collapse;
}
th {
font-size: 120%;
font-weight: bold;
}
a {
font: bold 11px Arial;
text-decoration: none;
background-color: #EEEEEE;
color: #333333;
padding: 2px 6px 2px 6px;
border-top: 1px solid #CCCCCC;
border-right: 1px solid #333333;
border-bottom: 1px solid #333333;
border-left: 1px solid #CCCCCC;
-webkit-border-radius: 30px;
border-radius: 30px;
-moz-box-shadow: 2px 2px 5px 2px #ccc;
-webkit-box-shadow: 2px 2px 5px 2px #ccc;
box-shadow: 2px 2px 5px 2px #ccc;
}
html {
text-align: center;
}

View file

@ -30,12 +30,12 @@ if (isset($_SESSION["user"]) && isset($_GET["id"])) {
$stmt->execute(); // ... und ausgeführt
$stmt->close();
$mysqli->close();
echo "<p>Hallo, " . $_SESSION["vorname"] . " " . $_SESSION["nachname"] . "! Du wurdest Erfolgreich in die Veranstaltung eingetragen. <a href='./veranstaltungen.php'>Zurück zur Hauptseite</a>
echo "<p>Hallo, " . $_SESSION["vorname"] . " " . $_SESSION["nachname"] . "! Du wurdest erfolgreich in die Veranstaltung eingetragen. <a href='./veranstaltungen.php'>Zurück zur Hauptseite</a>
<p/>";
} else {echo "<p><b>Es ist ein technisches Problem aufgetreten.</b></p>";}
} else {
?>
<p>Bitte <a href="./login.php" onclick="Fenster_klein(this.href, 300); return false"> melde dich</a> an (oder <a href="./registrieren.php" onclick="Fenster_breit(this.href, 600); return false">registriere dich zum ersten mal</a>)</a></p>
<p>Bitte <a href="./login.php" onclick="Fenster_klein(this.href, 300); return false"> melde dich</a> an oder <a href="./registrieren.php" onclick="Fenster_breit(this.href, 600); return false">registriere dich zum ersten mal</a></p>
<?php
}