예제 #1
0
 /**
  * Construct a summary of the active season.
  *
  */
 function BuildInfoTable($resultid = null)
 {
     //  Alternate the row colors
     $this->set_alt_color_flag(true);
     $result = new SwimResult();
     if (is_null($resultid)) {
         $resultid = $this->getResultId();
     }
     if (!is_null($resultid) || $result->ResultExistsById($resultid)) {
         $result->LoadResultById($resultid);
         $this->add_row(html_b("Swim Meet Id"), $result->getSwimmeetid());
         $this->add_row(html_b("Swim Team Id"), $result->getSwimteamid());
         $this->add_row(html_b("Swimmer Id"), $result->getSwimmerid());
         $this->add_row(html_b("Organization"), SDIFCodeTables::GetOrgCode($result->getOrgCode()));
         $this->add_row(html_b("Swimmer Name"), $result->getSwimmerName());
         $this->add_row(html_b("USS"), $result->getUSS());
         $this->add_row(html_b("USS (new)"), $result->getUSSNew());
         $this->add_row(html_b("USS (old)"), $result->getUSSOld());
         $this->add_row(html_b("Attached"), SDIFCodeTables::GetAttachedCode($result->getAttachCode()));
         $this->add_row(html_b("Citizen"), SDIFCOdeTables::GetCitizenCode($result->getCitizenCode()));
         $this->add_row(html_b("Birth Date"), $result->getBirthDate(true));
         $this->add_row(html_b("Age or Class"), $result->getAgeOrClass());
         $this->add_row(html_b("Gender"), SDIFCodeTables::GetGenderCode($result->getGender()));
         $this->add_row(html_b("Event Gender"), SDIFCodeTables::GetEventGenderCode($result->getEventGender()));
         $this->add_row(html_b("Event Distance"), $result->getEventDistance());
         $this->add_row(html_b("Stroke Code"), SDIFCodeTables::GetStrokeCode($result->getStrokeCode()));
         $this->add_row(html_b("Event Number"), $result->getEventNumber());
         $this->add_row(html_b("Event Age Code"), $result->getEventAgeCode());
         $this->add_row(html_b("Swim Date"), $result->getSwimDate(true));
         $this->add_row(html_b("Seed Time"), $result->getSeedTime());
         $this->add_row(html_b("Seed Course"), SDIFCodeTables::GetCourseCode($result->getSeedCourseCode()));
         $this->add_row(html_b("Prelim Time"), $result->getPrelimTime());
         $this->add_row(html_b("Prelim Course"), SDIFCodeTables::GetCourseCode($result->getPrelimCourseCode()));
         $this->add_row(html_b("Swim Off Time"), $result->getSwimOffTime());
         $this->add_row(html_b("Swim Off Course"), SDIFCodeTables::GetCourseCode($result->getSwimOffCourseCode()));
         $this->add_row(html_b("Finals Time"), $result->getFinalsTime());
         $this->add_row(html_b("Finals Course"), SDIFCodeTables::GetCourseCode($result->getFinalsCourseCode()));
         $this->add_row(html_b("Prelim Heat Number"), $result->getPrelimHeatNumber());
         $this->add_row(html_b("Prelim Lane Number"), $result->getPrelimLaneNumber());
         $this->add_row(html_b("Finals Heat Number"), $result->getFinalsHeatNumber());
         $this->add_row(html_b("Finals Lane Number"), $result->getFinalsLaneNumber());
         $this->add_row(html_b("Prelim Place Ranking"), $result->getPrelimPlaceRanking());
         $this->add_row(html_b("Finals Place Ranking"), $result->getFinalsPlaceRanking());
         $this->add_row(html_b("Finals Points"), $result->getFinalsPoints());
         $this->add_row(html_b("Event Time Class Code"), $result->getEventTimeClassCode());
         $this->add_row(html_b("Swimmer Flight Status"), $result->getSwimmerFlightStatus());
     } else {
         $this->add_row("No swim result details available.");
     }
 }
예제 #2
0
 /**
  * Construct a summary of the active season.
  *
  */
 function BuildInfoTable($swimmerid = null)
 {
     include_once 'swimteams.class.php';
     //  Alternate the row colors
     $this->set_alt_color_flag(true);
     $swimmer = new Swimmer();
     if (is_null($swimmerid)) {
         $swimmerid = $this->getSwimmerId();
     }
     if (!is_null($swimmerid) || $swimmer->SwimmerExistsById($swimmerid)) {
         $swimmer->LoadSwimmerById($swimmerid);
         $swimteam = new SwimTeam();
         $swimteam->LoadSwimTeamById($swimmer->getSwimTeamId());
         $this->add_row(html_b("Team Name"), $swimteam->getTeamName());
         $this->add_row(html_b("Last Name"), $swimmer->getSwimmerLastName());
         $this->add_row(html_b("First Name"), $swimmer->getSwimmerFirstName());
         $this->add_row(html_b("Middle Name"), $swimmer->getSwimmerMiddleName());
         $this->add_row(html_b("Birth Date"), $swimmer->getBirthDate(true));
         $this->add_row(html_b("USS"), $swimmer->getUSS());
         $this->add_row(html_b("USS (calculated)"), $swimmer->getUSSNew());
         $this->add_row(html_b("Gender"), SDIFCodeTables::GetGenderCode($swimmer->getGender()));
     } else {
         $this->add_row("No swim swimmer details available.");
     }
 }