commit d3b365a1a67f34dc7b560b4a80f0b19db73ead0c Author: Victor Giers Date: Fri May 31 16:48:20 2019 +0200 second release diff --git a/errors.php b/errors.php new file mode 100644 index 0000000..c70f755 --- /dev/null +++ b/errors.php @@ -0,0 +1,7 @@ + 0) : ?> +
+ +

+ +
+ diff --git a/index.php b/index.php new file mode 100644 index 0000000..187c123 --- /dev/null +++ b/index.php @@ -0,0 +1,93 @@ + + + + + + + + + + + Direkter Tausch - Online Platform für das Repair Café + + + + +
+

Direkter Tausch - Online Platform für das Repair Café

+
+
+ + +
+

+ +

+
+ + + + set_charset("utf8"); + if ($conn->connect_error) { + die("Connection failed: " . $conn->connect_error); + } + + if (isset($_SESSION['username'])){ + echo "

Sie sind eingeloggt als: " . $_SESSION['username'] . "

+

Ausloggen

+

Neuer Eintrag

"; + + } else { + echo "

Um Einträge zu verfassen, registrieren Sie sich oder loggen Sie sich ein.

+

"; + } + + + $entries = "SELECT $entry_table.*, $user_table.username, $user_table.email FROM $entry_table INNER JOIN $user_table ON $entry_table.user = $user_table.id ORDER BY $entry_table.id DESC"; + + $result = $conn->query($entries); + if ($result->num_rows > 0) { + echo "\n\n\n\n"; + + while($row = $result->fetch_assoc()) { + echo "\n"; + echo "\n"; + } + echo("
DatumNameBietet anMöchte dafürKontakt
" . date("d.m.Y", strtotime($row["date"])) . "
" . $row["username"] . "
" . $row["does"] . "
" . $row["wants"] . "
\n"; + echo "
\n"); + } else { + echo "Keine Einträge vorhanden.\n"; + } + + + /*----*/ + + $conn->close(); + ?> +
+ + + diff --git a/login.php b/login.php new file mode 100644 index 0000000..64cfde4 --- /dev/null +++ b/login.php @@ -0,0 +1,38 @@ + + + + + + + + + + Login - Direkter Tausch - Online Platform für das Repair Café + + + +
+

Einloggen - Direkter Tausch - Online Platform für das Repair Café

+
+ +
+
+ +
+
+ + +
+
+ + +
+
+ +
+

+ Sollten Sie noch kein Benutzerkonto haben, registrieren Sie sich hier. +

+
+ + diff --git a/newentry.php b/newentry.php new file mode 100644 index 0000000..f3d0f37 --- /dev/null +++ b/newentry.php @@ -0,0 +1,35 @@ + + + + + + + + + + Neuer Eintrag - Direkter Tausch - Online Platform für das Repair Café + + + +
+

Neuer Eintrag - Direkter Tausch

+
+ +
+
+ +
+
+ + +
+
+ + +
+
+ +
+
+ + diff --git a/register.php b/register.php new file mode 100644 index 0000000..678d504 --- /dev/null +++ b/register.php @@ -0,0 +1,43 @@ + + + + + + + + + + Registrieren - Direkter Tausch - Online Platform für das Repair Café + + + +
+

Registrieren - Direkter Tausch - Online Platform für das Repair Café

+
+ +
+
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ + diff --git a/server.php b/server.php new file mode 100644 index 0000000..cadacb9 --- /dev/null +++ b/server.php @@ -0,0 +1,114 @@ + diff --git a/style.css b/style.css new file mode 100644 index 0000000..e6405f1 --- /dev/null +++ b/style.css @@ -0,0 +1,92 @@ +* { + margin: 0px; + padding: 0px; +} +body { + font-family: sans-serif; + font-size: 100%; + background: #F8F8FF; +} + +.header { + margin: 50px auto 0px; + color: white; + background: #5F9EA0; + text-align: center; + border: 1px solid #B0C4DE; + border-bottom: none; + border-radius: 10px 10px 0px 0px; + padding: 20px; +} +form, .content { + margin: 0px auto; + padding: 20px; + border: 1px solid #B0C4DE; + background: white; + border-radius: 0px 0px 10px 10px; +} +table { + margin: 0px auto; + border: 1px solid black; + /*width: 40%;*/ +} +td { + border: 1px solid black; + padding: 10px; +} +.tablediv{ + max-height:4em; + overflow: auto; +} +#username { + white-space: nowrap; + max-width: 10em; +} +#email { + + +} +.input-group { + margin: 10px 0px 10px 0px; +} +.input-group label { + display: block; + text-align: left; + margin: 3px; +} +.input-group input { + height: 30px; + width: 93%; + padding: 5px 10px; + font-size: 16px; + border-radius: 5px; + border: 1px solid gray; +} +.btn { + padding: 10px; + font-size: 15px; + color: white; + background: #5F9EA0; + border: none; + border-radius: 5px; +} +#errordiv{ + width: 100%; + text-align: center; +} +.error { + display: inline-block; + margin: 0px auto; + padding: 10px; + border: 1px solid #a94442; + color: #a94442; + background: #f2dede; + border-radius: 5px; + text-align: left; +} +.success { + color: #3c763d; + background: #dff0d8; + border: 1px solid #3c763d; + margin-bottom: 20px; +}