wip: pmelo
This commit is contained in:
@@ -37,21 +37,62 @@
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<h2>pmElo</h2>
|
||||
<?php var_dump($_POST);?>
|
||||
<form id="form" action="pmelo.php" method="post">
|
||||
<div class="input-field col s12">
|
||||
<select name ="selectedOptions[]" id="form-select-2" multiple>
|
||||
<option value="" disabled selected>Choose your option</option>
|
||||
<option value="1">Option 1</option>
|
||||
<option value="2">Option 2</option>
|
||||
<option value="3">Option 3</option>
|
||||
</select>
|
||||
<label for="form-select-2">Materialize Multiple Select</label>
|
||||
<input type="submit" value="submit">
|
||||
</div>
|
||||
</form>
|
||||
<h2><a href="pmelo">pmElo</a></h2>
|
||||
|
||||
<form id="pmelo-form-fighters" action="pmelo.php" method="post">
|
||||
<div class="input-field col s12">
|
||||
<select name ="pmelo[fighterIds][]" id="pmelo-form-fighters-select" multiple>
|
||||
<option value="" disabled selected>Kämpfer auswählen</option>
|
||||
<?php
|
||||
foreach($pmelo->trainees as $trainee){
|
||||
echo("<option value=\"".$trainee->getId()."\">".$trainee->getFirstname()." ".$trainee->getName()."</option>".PHP_EOL);
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<label for="form-select-2">Kämpfer auswählen</label>
|
||||
<input type="submit" value="Liste erstellen">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr><th>Platz</th><th>Name</th><th>Aufstieg</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(!empty($pmelo->fighters)) foreach($pmelo->fighters as $fighter){
|
||||
echo("<tr><td>#</td><td>".$fighter->getFirstname()." ".$fighter->getName()."</td><td>^</td></tr>".PHP_EOL);
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<ul class="collection with-header">
|
||||
<li class="collection-header"><h3>Logs</h3></li>
|
||||
<?php
|
||||
foreach($pmelo->log as $logLevel=>$mesages){
|
||||
if(!empty($messages)){
|
||||
?>
|
||||
<li class="collection-item">
|
||||
<ul class="collection with-header">
|
||||
<li class="collection-header"><?php echo($logLevel);?></li>
|
||||
<?php
|
||||
foreach($messages as $message){
|
||||
?>
|
||||
<li>
|
||||
<?php echo($message); ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user