<? 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>
<td>Description: </td> <td><?php echo $description; ?> </td> </tr> </table> <table> <tr> <th>Players</th> </tr> <? foreach($players as $player) { echo "<tr>\n"; echo "\t<td>" . real_name_link_from_id($player) . "</td>\n"; echo "</tr>\n"; } ?> </table> <br /> <table> <tr> <th>Current Sports</th> </tr> <? foreach($current_sports as $sport) { echo "<tr>\n"; echo "\t<td>" . sport_link_from_id($sport) . "</td>\n"; echo "</tr>\n";