<?debug::vars($current_game) ?> <table> <form action="" method="POST"> <tr> <th align="center" style="font-size:24px;"><?php echo team_link_from_id($current_game['team1']); ?> </th> <th align="center" style="font-size:24px;"><?php echo team_link_from_id($current_game['team2']); ?> </th> </tr> <tr> <td align="center"><input type="text" name="score1" size="1" style="height:50px;font-size:38px;text-align:center;"></td> <td align="center"><input type="text" name="score2" size="1" style="height:50px;font-size:38px;text-align:center;"></td> </tr> <tr> <td colspan="2" align="center"> <input type="submit" value="Report Results" style="height:50px;font-size:18px;"> </td> </tr> </form> </table>
<h2><?php echo real_name_from_id($id); ?> on Team <?php echo team_link_from_id($team); ?> </h2> <h4>Sports Participated in:</h4> <? //die(debug::vars($sports)); foreach($sports as $sport) { echo sport_link_from_id($sport); } ?> <br /> <br /> <?php echo $edit;
<? if($editwin): ?><p>Team successfully updated!</p><? endif; ?> <? if($editfail): ?><p>Team failed to update. =(</p><? endif; ?> <? if(empty($teams)): ?> <h3>No teams have been created. =(</h3> <? else: ?> <table> <tr> <th>Name</th> <th>Captain</th> <th>Member Count</th> </tr> <? foreach($teams as $team) { echo "<tr>"; echo "\t<td>" . team_link_from_id($team['teams_id']) ."</td>"; echo "\t<td>" . real_name_link_from_id($team['captain']) . "</td>"; echo "\t<td>" . count_from_id($team['teams_id']) . "</td>"; echo "</tr>"; } ?> </table> <? endif; ?> <br /> <a href="<?php echo URL::base(); ?> team/add">Create a team</a>
?> <table> <!--<tr> <? foreach($rounds as $round): ?> <td>Round <?php echo $round; ?> </td> <? endforeach; ?> </tr>--> <tr> <? foreach($rounds as $round): ?> <td> <? if(array_key_exists($round,$bracket)): ?> <? foreach($bracket[$round] as $game): ?> <p> <?php echo team_link_from_id($game['team1']); ?> <br /> <?php echo team_link_from_id($game['team2']); ?> </p> <? endforeach; ?> <? endif; ?> </td> <? endforeach; ?> </tr> </table>