diff --git a/signup/Logo.png b/signup/Logo.png deleted file mode 100644 index 2b44bc4..0000000 Binary files a/signup/Logo.png and /dev/null differ diff --git a/signup/add.php b/signup/add.php deleted file mode 100644 index b468e5c..0000000 --- a/signup/add.php +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - Termin hinzufügen - - - -
-
-
- Logo -

Termin hinzufügen

-
-
-
- -
-

Neuen Termin hinzufügen

-
- - - - - - - - - - - - - - - - -
- - setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); - - // SQL query to insert a new dinner option - $sql = "INSERT INTO meals (title, link, event_date, registration_closes) VALUES (:title, :melly, :date, :deadline)"; - $stmt = $pdo->prepare($sql); - - // Bind parameters - $stmt->bindParam(':title', $title); - $stmt->bindParam(':melly', $melly); - $stmt->bindParam(':date', $date); - $stmt->bindParam(':deadline', $deadline); - - // Execute the statement - $stmt->execute(); - - echo '

Dinner option added successfully!

'; - - } catch (PDOException $e) { - // Handle connection or query error - echo "Error: " . $e->getMessage(); - } - } - } - ?> -
- - diff --git a/signup/create_db.sql b/signup/create_db.sql deleted file mode 100644 index 84d7ad1..0000000 --- a/signup/create_db.sql +++ /dev/null @@ -1,13 +0,0 @@ -CREATE TABLE meals ( - id SERIAL PRIMARY KEY, - title TEXT NOT NULL, - link TEXT NOT NULL, - event_date DATE NOT NULL, - registration_closes TIMESTAMP NOT NULL -); - - -INSERT INTO meals (title, link, event_date, registration_closes) -VALUES ('Kidneybohnen Burger mit veganem Coleslaw','https://melly.de/plan/2ZSNYWR37VB8','2025-03-05', '2025-03-02T17:30:30'), - ('Gemüselasagne mit Salat','hhttps://melly.de/plan/M4XU9XMVM2HP','2025-02-28', '2025-02-23T17:30:30'), -RETURNING *; \ No newline at end of file diff --git a/signup/index.php b/signup/index.php deleted file mode 100644 index 02ae5d8..0000000 --- a/signup/index.php +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - Allmende-Essen - - - -
-
-
- Logo -

Gemeinsames Essen in der Allmende

-
-
-
- = now()::date order by registration_closes < now(), event_date"; - $stmt = $pdo->prepare($sql); - $stmt->execute(); - - $result = $stmt->fetchAll(PDO::FETCH_ASSOC); - - $days = ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"]; - - $today = strtotime(date('Y-m-d')); - $now = strtotime(date("Y-m-d H:i:s")); - ?> - -
- '; - echo '

' . $days[$weekday] . " " . $date->format('d.m.Y') .'

'; - echo '

' . htmlspecialchars($row["title"]) . '

'; - if ($end_of_registration > $now) { - echo 'Zur Anmeldung'; - } else { - echo 'Anmeldungen ansehen'; - } - echo '
'; - } - // close container - echo ''; - - // Query to fetch past dinner options - $sql = "SELECT id, title, link, event_date FROM meals WHERE event_date < now()::date order by event_date"; - $stmt = $pdo->prepare($sql); - $stmt->execute(); - - $result = $stmt->fetchAll(PDO::FETCH_ASSOC); - - if(sizeof($result) > 0) { - ?> - -
-

Vergangene Essen

- - '; - echo '

' . $days[$weekday] . " " . $date->format('d.m.Y') .'

'; - echo '

' . htmlspecialchars($row["title"]) . '

'; - echo 'Anmeldungen ansehen'; - echo '
'; - } - // close container - echo ''; - } - ?> - - - - diff --git a/signup/style.css b/signup/style.css deleted file mode 100644 index 5388c32..0000000 --- a/signup/style.css +++ /dev/null @@ -1,75 +0,0 @@ -body { - font-family: Arial, sans-serif; - margin: 0; - padding: 0; - background-color: #f4f4f4; - color: #333; -} -.container { - width: 80%; - margin: auto; - overflow: hidden; -} -header { - background: #333; - color: #fff; - padding-top: 30px; - min-height: 70px; - border-bottom: #77aaff 3px solid; -} -header a { - color: #fff; - text-decoration: none; - text-transform: uppercase; - font-size: 16px; -} -header ul { - padding: 0; - list-style: none; -} -header li { - float: left; - display: inline; - padding: 0 20px 0 20px; -} -header #branding { - float: left; -} -header #branding img { - height: 50px; - width: 40px; - margin-right: 10px; -} -header #branding h1 { - margin: 0; -} -header nav { - float: right; - margin-top: 10px; -} -.dinner-option { - background: #fff; - padding: 20px; - margin: 20px 0; - border-radius: 5px; - box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); -} -.dinner-option h2 { - margin-top: 0; -} -.btn { - background: #77aaff; - color: #fff; - padding: 10px 20px; - text-decoration: none; - border-radius: 5px; - display: inline-block; - margin-top: 10px; -} -.btn-grey { - background: #ccc; - color: #333; -} -.btn:hover { - background: #5a99d0; -} \ No newline at end of file