diff --git a/server/content/contact.php b/server/content/contact.php index 6efd55d..0e8ce40 100644 --- a/server/content/contact.php +++ b/server/content/contact.php @@ -1,28 +1,28 @@ Kontakt'; - + $sp['output'] .= $tpl->load('card', [$content]); - + // Info $content = '

'; $content .= 'Du hast eine Frage? Du hast einen Fehler in unserer Software oder in den gespeicherten Daten gefunden? Du willst Regatten.net auch für Deine Bootsklasse nutzen?
'; $content .= 'Egal was es ist, lass es uns wissen! Schreibe uns eine Mail an info@regatten.net oder nutze einfach dieses Kontakt-Formular.
'; $content .= 'Wir werden Deine Anfrage so schnell wie möglich bearbeiten.'; $content .= '

'; - $content .= '

'; - $content .= 'Alternativ erreichst Du uns auch telefonisch unter +49 (0) 4103 965 976 8
'; - $content .= 'Mo-Fr: 7-20 Uhr
'; - $content .= 'Sa: 9-17 Uhr'; - $content .= '

'; - + //$content .= '

'; + //$content .= 'Alternativ erreichst Du uns auch telefonisch unter +49 (0) 4103 965 976 8
'; + //$content .= 'Mo-Fr: 7-20 Uhr
'; + //$content .= 'Sa: 9-17 Uhr'; + //$content .= '

'; + $sp['output'] .= $tpl->load('card', [$content]); - + // Formular $content = '

Kontakt-Formular

'; $content .= $tpl->load('input', ['html-id' => 'input-name', 'placeholder' => 'Dein Name', 'type' => 'text']); @@ -30,9 +30,9 @@ $content .= $tpl->load('input', ['html-id' => 'input-subject', 'placeholder' => 'Betreff', 'type' => 'text']); $content .= $tpl->load('textarea', ['html-id' => 'input-message', 'placeholder' => 'Deine Nachricht']); $content .= $tpl->load('button', ['Senden', '#', 'html-id' => 'button-send']); - + $sp['output'] .= $tpl->load('card', [$content]); - + $sp['scripts'] .= $scripts->load('contact'); - -?> \ No newline at end of file + +?> diff --git a/server/scripts/rank.js b/server/scripts/rank.js index d72c990..1387670 100644 --- a/server/scripts/rank.js +++ b/server/scripts/rank.js @@ -196,6 +196,10 @@ function selectChange(callSiteScript = true) { from = (year - 1) + '-12-01'; to = year + '-11-30'; break; + case 'year2': + from = year + '-01-01'; + to = year + '-12-31'; + break; case 'quali': // TODO: auslagern in function getRegattaBegin var beginn = null; @@ -384,6 +388,16 @@ var siteScript = async function() { lastRanking[lDbRanking[i].id] = lDbRanking[i].rank; } } + if ($('#select-type').val() == 'year2') { + lastRanking = {}; + var lYear = parseInt($('#select-year').val()) - 1; + var lMinDate = parseDate(lYear + '-01-01'); + var lMaxDate = parseDate(lYear + '-12-31'); + var lDbRanking = (await dbGetRanking(lMinDate, lMaxDate, maxage, agestrict, altm, agecrew, personMode))[0]; + for (var i in lDbRanking) { + lastRanking[lDbRanking[i].id] = lDbRanking[i].rank; + } + } var selectedYear = $('#select-year').val(); diff --git a/server/version.php b/server/version.php index e05319a..b9d7487 100644 --- a/server/version.php +++ b/server/version.php @@ -1,5 +1,5 @@