2024-10-03 16:25:25 -05:00
|
|
|
<h1>Characters</h1>
|
|
|
|
<?php
|
2024-10-04 12:06:21 -05:00
|
|
|
if (count($chars) > 0): ?>
|
2024-10-03 16:25:25 -05:00
|
|
|
<form action="/character/select" method="post">
|
|
|
|
<input type="hidden" name="csrf" value="<?= csrf() ?>">
|
2024-10-04 12:06:21 -05:00
|
|
|
<?php foreach ($chars as $id => $char): ?>
|
2024-10-03 16:25:25 -05:00
|
|
|
<input type="radio" name="char_id" value="<?= $id ?>" id="char_<?= $id ?>">
|
|
|
|
<label for="char_<?= $id ?>"><?= $char['name'] ?> (Level <?= $char['level'] ?>)</label><br>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
<input type="submit" value="Select Character">
|
|
|
|
</form>
|
|
|
|
<?php else: ?>
|
|
|
|
<!-- Should never see this particular message. If you have, there's a bug. -->
|
|
|
|
<p>You have no characters.</p>
|
|
|
|
<?php endif; ?>
|