<?php
$rally = Classloader('rally',true);
// Variabeln definieren
if (!isset($_GET['rally'])) $_GET['rally'] = '1';
if (!isset($_POST['speichern'])) $_POST['speichern'] = '';
if (!isset($_POST['reset'])) $_POST['reset'] = '';
if (!isset($_POST['auswerten'])) $_POST['auswerten'] = '';

$row = $datenbank->get_row("SELECT * FROM " . PREFIX . RALLY . " WHERE id='" . $datenbank->escape($_GET['rally']) . "' LIMIT 1",true);



head($row->name . "-Rally bearbeiten (html erlaubt!)");
?>
<ul class="nav nav-tabs" id="myTab" role="tablist">
	<li class="nav-item">
		<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Home</a>
	</li>
	<li class="nav-item">
		<a class="nav-link" id="verteilung-tab" data-toggle="tab" href="#verteilung" role="tab" aria-controls="verteilung" aria-selected="false">Verteilung</a>
	</li>
	<li class="nav-item">
		<a class="nav-link" id="aktuell-tab" data-toggle="tab" href="#aktuell" role="tab" aria-controls="contact" aria-selected="false">Aktuell</a>
	</li>
</ul>
<br>
<div class="tab-content" id="myTabContent">
	<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
		<?php require_once('page/LKT_addons/include/rally_setting.php');?>
	</div>
	<div class="tab-pane fade" id="verteilung" role="tabpanel" aria-labelledby="profile-tab">
		<?php echo $rally->verteilung($_GET['rally'],$row);?>
	</div>
	<div class="tab-pane fade" id="aktuell" role="tabpanel" aria-labelledby="contact-tab">
		<?php echo $rally->PlatzUndVerteilung($row);?>
	</div>
</div>

<?php foot();?>