Esempio n. 1
0
<?php 
require_once 'lib/db.php';
require_once 'lib/competition.php';
require_once 'lib/team.php';
require_once 'lib/game.php';
$con = DB::connect();
$matchid = $_GET["match"];
$match = match::select($con, $matchid);
$number = $match->Number;
session_start();
$compid = $_SESSION["competitionid"];
$comp = competition::select($con, $compid);
$prevmatch = match::selectByNumber($con, $compid, $number - 1);
$nextmatch = match::selectByNumber($con, $compid, $number + 1);
include 'header.php';
include 'navbar.php';
$red = $match->RedAlliance;
$blue = $match->BlueAlliance;
?>

<label class="heading">Match <?php 
echo $number;
?>
</label><br/>
<br/>
<table class='scout_table'>
  <tr>
    <td class='team red'><?php 
echo $red->TeamOne;
?>
</td>
Esempio n. 2
0
        <td><input type="checkbox" name="didnotmove" <?php 
check($game->DidNotMove);
?>
  disabled /></td>
        <td>Did Not Move</td>
      </tr>
  </table>

  <label class="subject" title="Any other important information about robot to record">Comment</label><br/>
  <textarea rows="4" cols="60" name="Comment" disabled><?php 
echo $game->Comment;
?>
</textarea>
  <br/>

<?php 
$nmatch = match::selectByNumber($con, $compid, $game->MatchNumber + 1);
if ($nmatch != null) {
    if ($color == 'red') {
        $nteam = $nmatch->RedAlliance->{$slot};
    } else {
        $nteam = $nmatch->BlueAlliance->{$slot};
    }
    echo "<a href='score-game.php?match={$nmatch->ID}&team={$nteam}'>Continue</a>\n";
} else {
    include 'navbar.php';
}
include 'footer.php';
?>