PHP Classes

File: game/sipstrip/views/onforce2.php

Recommend this page to a friend!
  Classes of Dave Smith   The Gameboard   game/sipstrip/views/onforce2.php   Download  
File: game/sipstrip/views/onforce2.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: 1,141 bytes
 

Contents

Class file image Download
<div id="player-onforce2">
    <div class="player-message"><?php echo $game->message;?></div>
    <div>Perform the following task</div>
    <div><?php echo $game->deck2Card['title'];?></div>
    <div><?php echo $game->deck2Card['text'];?></div>
<?php
if( empty($game->deck2Card['action']) ){
?>
<form method="post">
        <div class="form-submit">
            <input type="hidden" name="a" value="nextplayer">
            <input type="submit" name="submit" value="Okay">
        </div>
    </form>
<?php
}else{
?>
<form method="post">
        <div class="form-submit">
            <input type="hidden" name="a" value="<?php echo $game->deck2Card['action'];?>">
            <input type="hidden" name="v" value="<?php echo $game->deck2Card['value'];?>">
            <input type="submit" name="submit" value="Okay">
        </div>
    </form>
<?php
}
?>
<div>or punk out and</div>
    <form method="post">
        <div class="form-submit">
            <input type="hidden" name="a" value="playerquit">
            <input type="submit" name="submit" value="Quit">
        </div>
    </form>
</div>