Compare commits

...

19 Commits

Author SHA1 Message Date
ostertun
54ceae6ce0 Merge branch 'hotfix/a53' 2023-11-27 09:14:53 +01:00
ostertun
a6f0c8e0f5 a53 2023-11-27 09:14:45 +01:00
ostertun
fe90438cb3 gitflow-hotfix-stash: a53 2023-11-27 09:14:19 +01:00
ostertun
8c4d2f00cd Merge branch 'temp' 2023-10-10 08:09:23 +02:00
ostertun
d59b384e1a gitflow-hotfix-stash: ranking_year2 2023-10-10 08:07:12 +02:00
ostertun
25df9995dd Merge branch 'hotfix/wfn_entrylist_link' 2023-09-04 14:26:03 +02:00
ostertun
12538aaa3f Merge branch 'hotfix/wfn_entrylist_link' into develop 2023-09-04 14:26:02 +02:00
ostertun
e087e137ff fix wfn_entrylist_link 2023-09-04 14:25:37 +02:00
ostertun
e5dc107a7d Merge branch 'hotfix/extServiceWfn' 2023-04-28 21:44:27 +02:00
ostertun
fefd3c8929 Merge branch 'hotfix/extServiceWfn' into develop 2023-04-28 21:44:26 +02:00
ostertun
dcc5428615 gitflow-hotfix-stash: extServiceWfn 2023-04-28 21:43:49 +02:00
ostertun
a37cf0ea46 Merge branch 'hotfix/api_move_regattenNet2' 2023-03-29 12:07:52 +02:00
ostertun
49f2923a97 Merge branch 'hotfix/api_move_regattenNet2' into develop 2023-03-29 12:07:52 +02:00
ostertun
b2c57839c4 file must be changed to change revision... 2023-03-29 12:07:42 +02:00
ostertun
eddf0f151b Merge branch 'hotfix/api_move_ranglistenNet' 2023-03-29 12:03:34 +02:00
ostertun
0dd83a47cb Merge branch 'hotfix/api_move_ranglistenNet' into develop 2023-03-29 12:03:34 +02:00
ostertun
3c07c67a1a api_move_ranglistenNet: change version to update cached files => config new loaded 2023-03-29 12:03:22 +02:00
ostertun
dd7d8731e8 remove tel num 2023-01-02 11:02:01 +01:00
ostertun
866d3ab3c1 Merge branch 'release/v_1.12.1' into develop 2022-08-03 12:32:53 +02:00
7 changed files with 70 additions and 34 deletions

View File

@@ -163,6 +163,15 @@ function dbGetResultCalculated(regatta) {
if (results.length > 0) { if (results.length > 0) {
var gemeldet = results.length; var gemeldet = results.length;
var started = [];
for (var i = 0; i < regatta['races']; i++) {
started[i] = 0;
for (id in results) {
if (results[id]['race' + (i + 1)] != 'DNC') {
started[i]++;
}
}
}
for (id in results) { for (id in results) {
results[id]['finished'] = false; results[id]['finished'] = false;
@@ -179,24 +188,25 @@ function dbGetResultCalculated(regatta) {
results[id]['texts'][i] = race; results[id]['texts'][i] = race;
results[id]['finished'] = true; results[id]['finished'] = true;
} else { } else {
var p1points = (regatta.a53 ? started[i] : gemeldet) + 1;
switch (race.toUpperCase()) { switch (race.toUpperCase()) {
// Nicht gestartet // Nicht gestartet
case 'DNC': results[id]['values'][i] = gemeldet + 1; copy[i] = gemeldet + 1; break; // Did not come case 'DNC': results[id]['values'][i] = gemeldet + 1; copy[i] = gemeldet + 1; break; // Did not come
case 'DNS': results[id]['values'][i] = gemeldet + 1; copy[i] = gemeldet + 1; break; // Did not started case 'DNS': results[id]['values'][i] = p1points; copy[i] = p1points; break; // Did not started
// Startfehler // Startfehler
case 'OCS': results[id]['values'][i] = gemeldet + 1; copy[i] = gemeldet + 1; break; // On course site case 'OCS': results[id]['values'][i] = p1points; copy[i] = p1points; break; // On course site
case 'UFD': results[id]['values'][i] = gemeldet + 1; copy[i] = gemeldet + 1; break; // Uniform Flag Disqualified (disqu. nach 30.3) case 'UFD': results[id]['values'][i] = p1points; copy[i] = p1points; break; // Uniform Flag Disqualified (disqu. nach 30.3)
case 'BFD': results[id]['values'][i] = gemeldet + 1; copy[i] = gemeldet + 1; break; // Black Flag Disqualified (disqu. nach 30.4) case 'BFD': results[id]['values'][i] = p1points; copy[i] = p1points; break; // Black Flag Disqualified (disqu. nach 30.4)
// Nicht durch Ziel gegangen // Nicht durch Ziel gegangen
case 'DNF': results[id]['values'][i] = gemeldet + 1; copy[i] = gemeldet + 1; break; // Did not finish case 'DNF': results[id]['values'][i] = p1points; copy[i] = p1points; break; // Did not finish
case 'RET': results[id]['values'][i] = gemeldet + 1; copy[i] = gemeldet + 1; break; // Retired (Aufgegeben) case 'RET': results[id]['values'][i] = p1points; copy[i] = p1points; break; // Retired (Aufgegeben)
case 'RAF': results[id]['values'][i] = gemeldet + 1; copy[i] = gemeldet + 1; break; // Retired after finish case 'RAF': results[id]['values'][i] = p1points; copy[i] = p1points; break; // Retired after finish
// Kursfehler // Kursfehler
case 'NSC': results[id]['values'][i] = gemeldet + 1; copy[i] = gemeldet + 1; break; // Not sailed course case 'NSC': results[id]['values'][i] = p1points; copy[i] = p1points; break; // Not sailed course
// Disqualifizierun // Disqualifizierun
case 'DSQ': results[id]['values'][i] = gemeldet + 1; copy[i] = gemeldet + 1; break; // Disqualified case 'DSQ': results[id]['values'][i] = p1points; copy[i] = p1points; break; // Disqualified
case 'DNE': results[id]['values'][i] = gemeldet + 1; copy[i] = -1; break; // Disqualified, not excludable (disqu. kann nach 90.3(b) nicht gestrichen werden) case 'DNE': results[id]['values'][i] = p1points; copy[i] = -1; break; // Disqualified, not excludable (disqu. kann nach 90.3(b) nicht gestrichen werden)
case 'DGM': results[id]['values'][i] = gemeldet + 1; copy[i] = -2; break; // Disqualification Gross Missconduct (kann nach 69.1(b)(2) nicht gestr. werden, grobes Fehlverhalten) case 'DGM': results[id]['values'][i] = p1points; copy[i] = -2; break; // Disqualification Gross Missconduct (kann nach 69.1(b)(2) nicht gestr. werden, grobes Fehlverhalten)
// Unbekannt // Unbekannt
default: results[id]['values'][i] = 0; copy[i] = 0; break; default: results[id]['values'][i] = 0; copy[i] = 0; break;
} }
@@ -224,9 +234,10 @@ function dbGetResultCalculated(regatta) {
var netto = 0; var netto = 0;
for (var i = 0; i < regatta['races']; i ++) { for (var i = 0; i < regatta['races']; i ++) {
brutto += results[id]['values_all'][i]; brutto += results[id]['values_all'][i];
if (copy[i] == -1) { results[id]['values'][i] = gemeldet + 1; } /*if (copy[i] == -1) { results[id]['values'][i] = gemeldet + 1; }
else if (copy[i] == -2) { results[id]['values'][i] = gemeldet + 1; } else if (copy[i] == -2) { results[id]['values'][i] = gemeldet + 1; }
else { results[id]['values'][i] = copy[i]; } else { results[id]['values'][i] = copy[i]; }*/
if (copy[$i] == 0) results[id]['values'][i] = 0;
if (results[id]['values'][i] == 0) { if (results[id]['values'][i] == 0) {
results[id]['texts'][i] = '[' + results[id]['texts'][i] + ']'; results[id]['texts'][i] = '[' + results[id]['texts'][i] + ']';
} }

View File

@@ -5,6 +5,8 @@
require_once(__DIR__ . '/../../server/config.php'); require_once(__DIR__ . '/../../server/config.php');
require_once(__DIR__ . '/../../server/version.php'); require_once(__DIR__ . '/../../server/version.php');
// QUERY_URL changed in config.php (this is to update this file on client devices)
?> ?>
const QUERY_URL = '<?php echo QUERY_URL; ?>'; const QUERY_URL = '<?php echo QUERY_URL; ?>';
@@ -678,12 +680,21 @@ function ro_getLink(type, eventId, classId) {
} }
return ''; return '';
} }
function wfn_getLink(type, eventId, classId) {
switch (type) {
case 'entrylist':
return 'https://wettfahrten.net/event/' + eventId + '/entrylist?class=' + classId;
}
return '';
}
function extServiceGetLink(serviceName, type, eventId = '', classId = '') { function extServiceGetLink(serviceName, type, eventId = '', classId = '') {
switch (serviceName) { switch (serviceName) {
case 'm2s': case 'm2s':
return m2s_getLink(type, eventId, classId); return m2s_getLink(type, eventId, classId);
case 'ro': case 'ro':
return ro_getLink(type, eventId); return ro_getLink(type, eventId, classId);
case 'wfn':
return wfn_getLink(type, eventId, classId);
} }
return ''; return '';
} }

View File

@@ -1,28 +1,28 @@
<?php <?php
$sp['title'] = 'Kontakt - Regatten.net ' . $_CLASS['name']; $sp['title'] = 'Kontakt - Regatten.net ' . $_CLASS['name'];
$sp['backbutton'] = true; $sp['backbutton'] = true;
$sp['activenav'] = 5; $sp['activenav'] = 5;
// TITLE // TITLE
$content = '<h1>Kontakt</h1>'; $content = '<h1>Kontakt</h1>';
$sp['output'] .= $tpl->load('card', [$content]); $sp['output'] .= $tpl->load('card', [$content]);
// Info // Info
$content = '<p>'; $content = '<p>';
$content .= 'Du hast eine Frage? Du hast einen Fehler in unserer Software oder in den gespeicherten Daten gefunden? Du willst Regatten.net auch f&uuml;r Deine Bootsklasse nutzen?<br>'; $content .= 'Du hast eine Frage? Du hast einen Fehler in unserer Software oder in den gespeicherten Daten gefunden? Du willst Regatten.net auch f&uuml;r Deine Bootsklasse nutzen?<br>';
$content .= 'Egal was es ist, lass es uns wissen! Schreibe uns eine Mail an <a href="mailto:info@regatten.net">info@regatten.net</a> oder nutze einfach dieses Kontakt-Formular.<br>'; $content .= 'Egal was es ist, lass es uns wissen! Schreibe uns eine Mail an <a href="mailto:info@regatten.net">info@regatten.net</a> oder nutze einfach dieses Kontakt-Formular.<br>';
$content .= 'Wir werden Deine Anfrage so schnell wie m&ouml;glich bearbeiten.'; $content .= 'Wir werden Deine Anfrage so schnell wie m&ouml;glich bearbeiten.';
$content .= '</p>'; $content .= '</p>';
$content .= '<p>'; //$content .= '<p>';
$content .= 'Alternativ erreichst Du uns auch telefonisch unter <a href="tel:+4941039659768">+49 (0) 4103 965 976 8</a><br>'; //$content .= 'Alternativ erreichst Du uns auch telefonisch unter <a href="tel:+4941039659768">+49 (0) 4103 965 976 8</a><br>';
$content .= 'Mo-Fr: 7-20 Uhr<br>'; //$content .= 'Mo-Fr: 7-20 Uhr<br>';
$content .= 'Sa: 9-17 Uhr'; //$content .= 'Sa: 9-17 Uhr';
$content .= '</p>'; //$content .= '</p>';
$sp['output'] .= $tpl->load('card', [$content]); $sp['output'] .= $tpl->load('card', [$content]);
// Formular // Formular
$content = '<h2>Kontakt-Formular</h2>'; $content = '<h2>Kontakt-Formular</h2>';
$content .= $tpl->load('input', ['html-id' => 'input-name', 'placeholder' => 'Dein Name', 'type' => 'text']); $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('input', ['html-id' => 'input-subject', 'placeholder' => 'Betreff', 'type' => 'text']);
$content .= $tpl->load('textarea', ['html-id' => 'input-message', 'placeholder' => 'Deine Nachricht']); $content .= $tpl->load('textarea', ['html-id' => 'input-message', 'placeholder' => 'Deine Nachricht']);
$content .= $tpl->load('button', ['Senden', '#', 'html-id' => 'button-send']); $content .= $tpl->load('button', ['Senden', '#', 'html-id' => 'button-send']);
$sp['output'] .= $tpl->load('card', [$content]); $sp['output'] .= $tpl->load('card', [$content]);
$sp['scripts'] .= $scripts->load('contact'); $sp['scripts'] .= $scripts->load('contact');
?> ?>

View File

@@ -74,8 +74,8 @@
$content .= '<font class="show-loggedin">Erstelle einfach eine <a href="' . LINK_PRE . 'planning">Saison-Planung</a> und abonniere Deinen persönlichen Kalender.</font>'; $content .= '<font class="show-loggedin">Erstelle einfach eine <a href="' . LINK_PRE . 'planning">Saison-Planung</a> und abonniere Deinen persönlichen Kalender.</font>';
$content .= '<font class="show-notloggedin"><a href="#" data-menu="menu-signup">Registriere Dich einfach kostenlos</a>, erstelle eine Saison-Planung und wir erstellen Dir einen pers&ouml;nlichen Kalender.</font>'; $content .= '<font class="show-notloggedin"><a href="#" data-menu="menu-signup">Registriere Dich einfach kostenlos</a>, erstelle eine Saison-Planung und wir erstellen Dir einen pers&ouml;nlichen Kalender.</font>';
$content .= '</p>'; $content .= '</p>';
$content .= $tpl->load('button', ['<i class="fas fa-calendar-alt"></i> Regatta-Kalender', 'https://regatten.net/client/calendar/' . BOATCLASS . '/everything.ics', 'css-class' => 'mb-2']); $content .= $tpl->load('button', ['<i class="fas fa-calendar-alt"></i> Regatta-Kalender', 'https://ranglisten.net/client/calendar/' . BOATCLASS . '/everything.ics', 'css-class' => 'mb-2']);
$content .= $tpl->load('button', ['<i class="fas fa-calendar-alt"></i> Kalender f&uuml;r <font class="replace-username"></font>', 'https://regatten.net/client/calendar/' . BOATCLASS . '/user_%USERID%.ics', 'css-class' => 'show-loggedin replace-userid-href']); $content .= $tpl->load('button', ['<i class="fas fa-calendar-alt"></i> Kalender f&uuml;r <font class="replace-username"></font>', 'https://ranglisten.net/client/calendar/' . BOATCLASS . '/user_%USERID%.ics', 'css-class' => 'show-loggedin replace-userid-href']);
$sp['output'] .= $tpl->load('card', [$content]); $sp['output'] .= $tpl->load('card', [$content]);

View File

@@ -317,7 +317,7 @@
Das Nachladen kann au&szlig;erdem gerade bei gro&szlig;en Datenmengen (wie Ranglisten) sehr lange dauern. Das Nachladen kann au&szlig;erdem gerade bei gro&szlig;en Datenmengen (wie Ranglisten) sehr lange dauern.
Wir empfehlen Dir daher, auf diesem Ger&auml;t unsere normale Website zu benutzen. Diese ist auch f&uuml;r Mobil-Ger&auml;te optimiert. Wir empfehlen Dir daher, auf diesem Ger&auml;t unsere normale Website zu benutzen. Diese ist auch f&uuml;r Mobil-Ger&auml;te optimiert.
</p> </p>
<a class="btn btn-m mt-2 btn-full bg-highlight text-uppercase font-900" href="https://regatten.net/">Zur Website</a> <a class="btn btn-m mt-2 btn-full bg-highlight text-uppercase font-900" href="https://ranglisten.net/">Zur Website</a>
<a id="menu-nodb-warning-okay" class="btn btn-m mt-2 mb-3 btn-full bg-highlight text-uppercase font-900" href="#">Nicht erneut anzeigen</a> <a id="menu-nodb-warning-okay" class="btn btn-m mt-2 mb-3 btn-full bg-highlight text-uppercase font-900" href="#">Nicht erneut anzeigen</a>
</div> </div>
</div> </div>

View File

@@ -166,7 +166,7 @@ function selectChange(callSiteScript = true) {
var btns = ''; var btns = '';
for (var i in specialRanks) { for (var i in specialRanks) {
var sr = specialRanks[i]; var sr = specialRanks[i];
var link = 'https://regatten.net/frame.php?class=' + BOATCLASS + '&site=special_rank&rank_id=' + sr.id; var link = 'https://ranglisten.net/frame.php?class=' + BOATCLASS + '&site=special_rank&rank_id=' + sr.id;
var name = sr.title; var name = sr.title;
var cssclass = i > 0 ? ' mt-3' : ''; var cssclass = i > 0 ? ' mt-3' : '';
btns += '<a class="btn btn-full rounded-s text-uppercase font-900 shadow-m bg-highlight' + cssclass + '" href="' + link + '">' + name + '</a>'; btns += '<a class="btn btn-full rounded-s text-uppercase font-900 shadow-m bg-highlight' + cssclass + '" href="' + link + '">' + name + '</a>';
@@ -196,6 +196,10 @@ function selectChange(callSiteScript = true) {
from = (year - 1) + '-12-01'; from = (year - 1) + '-12-01';
to = year + '-11-30'; to = year + '-11-30';
break; break;
case 'year2':
from = year + '-01-01';
to = year + '-12-31';
break;
case 'quali': case 'quali':
// TODO: auslagern in function getRegattaBegin // TODO: auslagern in function getRegattaBegin
var beginn = null; var beginn = null;
@@ -384,6 +388,16 @@ var siteScript = async function() {
lastRanking[lDbRanking[i].id] = lDbRanking[i].rank; 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(); var selectedYear = $('#select-year').val();

View File

@@ -1,5 +1,5 @@
<?php <?php
define('PWA_VERSION', '1.12.1'); define('PWA_VERSION', '1.12.1h6');
?> ?>