Added page regattas
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
<?php
|
||||
|
||||
$sp['title'] = 'Fehler 404 - Regatten.net Pirat';
|
||||
$sp['backbutton'] = true;
|
||||
|
||||
$content = $tpl->load('error', ['404', 'Seite nicht gefunden']);
|
||||
$content .= '<p>';
|
||||
$content .= 'Die gesuchte Seite wurde nicht gefunden.<br>';
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
<?php
|
||||
|
||||
$sp['title'] = 'Startseite - Regatten.net Pirat';
|
||||
$sp['activenav'] = 1;
|
||||
|
||||
// Title
|
||||
$content = "<h1>$_CLASS[name]</h1>";
|
||||
$content .= "<p>$_CLASS[desc]</p>";
|
||||
@@ -68,6 +71,6 @@
|
||||
|
||||
$sp['output'] .= $tpl->load('card', [$content]);
|
||||
|
||||
$sp['scripts'] = '<!-- DEBUG -->' . $scripts->load('index');
|
||||
$sp['scripts'] = $scripts->load('index');
|
||||
|
||||
?>
|
||||
32
content/regattas.php
Normal file
32
content/regattas.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
$sp['title'] = 'Regatten - Regatten.net Pirat';
|
||||
$sp['backbutton'] = 'index';
|
||||
$sp['activenav'] = 2;
|
||||
|
||||
// Title, Inputs
|
||||
$content = "<h1>Regatten</h1>";
|
||||
|
||||
$content .= $tpl->load('select', ['html-id' => 'select-year', 'placeholder' => 'Jahr', 'css-class' => 'mt-3 mb-0']);
|
||||
$content .= $tpl->load('input', ['html-id' => 'input-from', 'placeholder' => 'Von', 'type' => 'date', 'css-class' => 'mt-3']);
|
||||
$content .= $tpl->load('input', ['html-id' => 'input-to', 'placeholder' => 'Bis', 'type' => 'date']);
|
||||
$content .= $tpl->load('button', ['Anzeigen', '#', 'html-id' => 'button-show']);
|
||||
|
||||
$sp['output'] .= $tpl->load('card', [$content]);
|
||||
|
||||
// Regattas
|
||||
$content = '<p id="p-count" class="mb-0"></p>';
|
||||
$content .= $tpl->load('input', ['html-id' => 'input-search', 'placeholder' => 'Suche', 'type' => 'text', 'css-class' => 'mt-2']);
|
||||
$thead = '<tr><th id="th-number">#</th><th>Datum</th><th>Regatta</th>';
|
||||
if (($showSpecial = $_CLASS['special']) !== false) {
|
||||
$thead .= '<th>' . $_CLASS['special'] . '</th>';
|
||||
}
|
||||
$thead .= '<th>Informationen</th><th>Ergebnisse</th><th>RLF</th></tr>';
|
||||
$content .= $tpl->load('table', [$thead, 'html-id' => 'table-regattas', 'css-class' => 'mb-0']);
|
||||
|
||||
$sp['output'] .= $tpl->load('card', [$content, 'html-id' => 'card-regattas']);
|
||||
|
||||
$sp['scripts'] = '<script>const showSpecial = ' . ($showSpecial ? 'true' : 'false') . ';</script>';
|
||||
$sp['scripts'] .= $scripts->load('regattas');
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user