<div class="form-container"> <h1>Nouvelle partie</h1> <?php echo get_html_form("new_game"); ?> </div>
<?php echo get_html_form("turn"); $status_to_class = array(owned => "red", very_likely => "orange", likely => "yellow", unknown => "white", not_owned => "black"); ?> <h1>Armes</h1> <table class="table table-bordered table-hover table-small-char"> <thead> <tr> <th></th> <?php foreach (select_players() as $player) { echo "<th>" . pretty_card($player) . "</th>"; } ?> </tr> </thead> <tbody> <?php foreach (select_weapons() as $weapon) { ?> <tr> <td><?php echo pretty_card($weapon); ?> </td> <?php foreach (select_players() as $player) { $class = "status-" . $status_to_class[get_status($weapon["id"], $player["id"])]; ?>