<? include("header.php"); ?>

<? $teams = get_teams(); ?>
            <table border="0" width="100%">
<? for ($i = 0; $i < count($teams); $i++) { ?>
<?   $team = $teams[$i] ?>
<?   if ($i % 2 == 0) { ?>
              <tr>
<?   } ?>
                <td align="center" valign="middle" width="50%">
<!--              2013 Olympics looks cleaner without the title text right above.
                  Probably want it back in later years though.
                  <h1 class="title"><?=$team['name']?></h1> --!>
                  <a href="team<?=$team['id']?>.html">
                    <img src="<?=$team['image_small']?>" border=0>
                  </a>
                  <div class="points">
<?   if ($team['points'] > 0) { ?>
                    <?=$team['points']?> Total Points
<?   } else { ?>
                    No points yet ...
<?   } ?>
                  </div>
                </td>
<?     if ($i % 2 == 1) { ?>
              </tr>
<?     } ?>
<? } ?>
            </table>

<? include("footer.php"); ?>

