From c50ebba62c81678eb9beed0fb15de1fcc7a5e94e Mon Sep 17 00:00:00 2001 From: marko Date: Sun, 3 Dec 2023 19:49:59 +0100 Subject: [PATCH] Bugfix: hidden select menu in starting type selection replaced by radio buttons --- homepage/participo/event.php | 49 ++++ homepage/participo/events.inc.php | 45 ++-- homepage/participo/events.sidenav.inc.php | 18 +- homepage/participo/lib/db.php | 1 + homepage/participo/lib/participoLib/event.php | 111 +++++++-- .../participo/lib/participoLib/eventPage.php | 96 ++++++++ .../participo/lib/participoLib/participo.php | 84 ++++++- homepage/participo/lib/participoLib/shiai.php | 224 ++++++++++-------- 8 files changed, 466 insertions(+), 162 deletions(-) create mode 100644 homepage/participo/event.php create mode 100644 homepage/participo/lib/participoLib/eventPage.php diff --git a/homepage/participo/event.php b/homepage/participo/event.php new file mode 100644 index 0000000..c3bc23a --- /dev/null +++ b/homepage/participo/event.php @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + <?php echo($meta['title']); ?> + + + + + + + + +
+ + +
+ +
+ html(); ?> +
+ + + \ No newline at end of file diff --git a/homepage/participo/events.inc.php b/homepage/participo/events.inc.php index be40f9e..bdc09fe 100644 --- a/homepage/participo/events.inc.php +++ b/homepage/participo/events.inc.php @@ -1,33 +1,32 @@ "Event Planer", - 'description' => "Planung von (Nicht-)Teilnahmen an Wettkämpfen und anderen Veranstaltungen" - ); -?> \ No newline at end of file +$meta = [ + 'title' => 'Event Planer', + 'description' => 'Planung von (Nicht-)Teilnahmen an Wettkämpfen und anderen Veranstaltungen' +]; diff --git a/homepage/participo/events.sidenav.inc.php b/homepage/participo/events.sidenav.inc.php index d5a5fa7..0bfb8f9 100644 --- a/homepage/participo/events.sidenav.inc.php +++ b/homepage/participo/events.sidenav.inc.php @@ -2,16 +2,14 @@
'; } + public function getHtmlEventDetails() + { + $html .= '
'; + $html .= '
Datum
' . $this->event()->htmlDate() . '
'; + $html .= '
Deadline zum Einschreiben:
' . $this->event()->htmlDeadline() . '
'; + $html .= '
'; + $html .= $this->event()->shiai()->getHtml(); + $html .= $this->event()->getHtmlStarterStatistic(); + $html .= $this->event()->getHtmlStarterList(); + } + public function htmlTableRow() { $shiai = $this->shiai(); return '' . - '' . $this->date->format('Y-m-d') . '' . + '' . $this->htmlDate() . '' . '
' . $shiai->getHtmlName() . '' . '' . $shiai->getHtmlDescriptiveAgeClasses() . '' . 'zoom_in' . @@ -146,10 +189,13 @@ class Event '