PHP Classes

File: game/sipstrip/views/selplayer.php

Recommend this page to a friend!
  Classes of Dave Smith   The Gameboard   game/sipstrip/views/selplayer.php   Download  
File: game/sipstrip/views/selplayer.php
Role: Application script
Content type: text/plain
Description: Game View
Class: The Gameboard
Implement a board game using the takeover strategy
Author: By
Last change:
Date: 6 years ago
Size: 947 bytes
 

Contents

Class file image Download
<div id="select-player">
    <form method="post">
        <div class="form-label"><label for="">Select a player to add</label></div>
        <div class="form-field"><?php echo $game->playerSelect();?></div>
        <div class="form-label"><label for="">Name</label> <em>(optional)</em></div>
        <div class="for-field"><input type="text" name="player-name" id="player-name" value=""></div>
        <div class="form-submit">
            <input type="hidden" name="a" value="addplayer">
            <input type="submit" name="submit" value="Add">
        </div>
    </form>
<?php
if( $game->playerCount > $game->minPlayers - 1 ){
?>
<form>
        <div class="form-label">When all players have been added</div>
        <div class="form-submit">
            <input type="hidden" name="a" value="startgame">
            <input type="submit" name="submit" value="Start Game">
        </div>
    </form>
<?php
}
?>
</div>