Compare commits
16 Commits
v_1.12.1
...
ranking_ye
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c4d2f00cd | ||
|
|
d59b384e1a | ||
|
|
25df9995dd | ||
|
|
12538aaa3f | ||
|
|
e087e137ff | ||
|
|
e5dc107a7d | ||
|
|
fefd3c8929 | ||
|
|
dcc5428615 | ||
|
|
a37cf0ea46 | ||
|
|
49f2923a97 | ||
|
|
b2c57839c4 | ||
|
|
eddf0f151b | ||
|
|
0dd83a47cb | ||
|
|
3c07c67a1a | ||
|
|
dd7d8731e8 | ||
|
|
866d3ab3c1 |
@@ -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 '';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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ü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ü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öglich bearbeiten.';
|
$content .= 'Wir werden Deine Anfrage so schnell wie mö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');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -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ö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ö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ü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ü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]);
|
||||||
|
|
||||||
|
|||||||
@@ -317,7 +317,7 @@
|
|||||||
Das Nachladen kann außerdem gerade bei großen Datenmengen (wie Ranglisten) sehr lange dauern.
|
Das Nachladen kann außerdem gerade bei großen Datenmengen (wie Ranglisten) sehr lange dauern.
|
||||||
Wir empfehlen Dir daher, auf diesem Gerät unsere normale Website zu benutzen. Diese ist auch für Mobil-Geräte optimiert.
|
Wir empfehlen Dir daher, auf diesem Gerät unsere normale Website zu benutzen. Diese ist auch für Mobil-Gerä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>
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
define('PWA_VERSION', '1.12.1');
|
define('PWA_VERSION', '1.12.1h5');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user