DK2/templates/components/char_select_box.php

8 lines
320 B
PHP
Raw Normal View History

<div class="radio-block <?= $id === user('char_id') ? 'active' : '' ?>">
<input type="radio" name="char_id" value="<?= $id ?>" id="char_<?= $id ?>"<?= $id === user('char_id') ? 'disabled' : '' ?>>
<label for="char_<?= $id ?>">
<?= $char['name'] ?>
<span class="badge"><?= $char['level'] ?></span>
</label>
</div>