<table class="report_table"> <tr> <th class="report_table_title" colspan="<?php echo $huntSpeciesCount + 4; ?> "><?php echo $season->getSeasonTitle(); ?> Hunting Season</th> </tr> <tr> <th>Hunting Dates</th> <?php foreach ($reportHuntSeasonSpeciesIds as $oneSpeciesId) { $oneSpecies = getSpeciesFromId($oneSpeciesId); ?> <th><?php echo $oneSpecies->getCommonName(); ?> </th> <?php } ?> <th>Bird Total</th> <th>Average Take</th> <th># Hunters</th> </tr> <?php $totalHuntersForSeason = 0;
function getSpeciesByName($speciesName) { $speciesId = getSpeciesIdByName($speciesName); $species = getSpeciesFromId($speciesId); return $species; }