<? if($editwin): ?><p>Community successfully updated!</p><? endif; ?> <? if($editfail): ?><p>Community failed to update. =(</p><? endif; ?> <table> <tr> <th>Name</th> <th>Admin</th> <th>Member Count</th> </tr> <? foreach($communities as $community) { echo "<tr>"; echo "\t<td>" . com_link_from_id($community['communities_id']) ."</td>"; echo "\t<td>" . name_link_from_id($community['admin']) . "</td>"; echo "\t<td>" . count_from_id($community['communities_id']) . "</td>"; echo "</tr>"; } ?> </table>
<h2>Leaderboards</h2> <table> <tr> <th>Community</th> <th>Total Users</th> </tr> <? foreach($boards as $board) { echo "<tr>\n"; echo "\t" . '<td><a href="' . URL::base() . 'leaderboard/view/' . $board['community'] . '">' . com_from_id($board['community']) . "</a></td>\n"; echo "\t<td>" . count_from_id($board['community']) . "</td>\n"; echo "</tr>\n"; } ?> </table>
<? 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>