Esempio n. 1
0
 /**
  * Construct a summary of the active season.
  *
  */
 function BuildInfoTable($swimteamid = null)
 {
     //  Alternate the row colors
     $this->set_alt_color_flag(true);
     $team = new SwimTeam();
     if (is_null($swimteamid)) {
         $swimteamid = $this->getSwimTeamId();
     }
     if (!is_null($swimteamid) || $team->SwimTeamExistsById($swimteamid)) {
         $team->LoadSwimTeamById($swimteamid);
         $this->add_row(html_b("Organization"), SDIFCodeTables::GetOrgCode($team->getOrgCode()));
         $this->add_row(html_b("Team Code"), $team->getTeamCode());
         $this->add_row(html_b("Team Name"), $team->getTeamName());
         $this->add_row(html_b("Team Name Abbreviation"), $team->getTeamNameAbrv());
         $this->add_row(html_b("Team Addresss 1"), $team->getTeamAddress1());
         $this->add_row(html_b("Team Addresss 2"), $team->getTeamAddress2());
         $this->add_row(html_b("City"), $team->getTeamCity());
         $this->add_row(html_b("State"), $team->getTeamState());
         $this->add_row(html_b("Postal Code"), $team->getTeamPostalCode());
         $this->add_row(html_b("Country"), SDIFCodeTables::GetCountryCode($team->getTeamCountryCode()));
         $this->add_row(html_b("Region"), SDIFCodeTables::GetRegionCode($team->getRegionCode()));
         $this->add_row(html_b("Team Code 5th Character"), $team->getTeamCode5());
     } else {
         $this->add_row("No swim team details available.");
     }
 }