コード例 #1
0
ファイル: results.class.php プロジェクト: rjoverph/flip-turn
 /**
  * Construct a summary of the active season.
  *
  */
 function BuildInfoTable($eventid = null)
 {
     //  Alternate the row colors
     $this->set_alt_color_flag(true);
     $result = new SwimResult();
     if (is_null($eventid)) {
         $eventid = $this->getEventId();
     }
     if (!is_null($eventid) || $event->EventExistsById($eventid)) {
         $event = explode($eventid, '-');
         $result->setEventCode($event[0]);
         $result->setAgeGroupCode($event[1]);
         $result->setEventCode($event[2]);
         //$event->LoadEventById($eventid) ;
         $this->add_row("Event details available.");
         //$this->add_row(html_b("Organization"), SDIFCodeTables::GetOrgCode($event->getOrgCode())) ;
         //$this->add_row(html_b("Event Code"), $event->getEventCode()) ;
         //$this->add_row(html_b("Event Name"), $event->getEventName()) ;
         //$this->add_row(html_b("Event Name Abbreviation"), $event->getEventNameAbrv()) ;
         //$this->add_row(html_b("Event Addresss 1"), $event->getEventAddress1()) ;
         //$this->add_row(html_b("Event Addresss 2"), $event->getEventAddress2()) ;
         //$this->add_row(html_b("City"), $event->getEventCity()) ;
         //$this->add_row(html_b("State"), $event->getEventState()) ;
         //$this->add_row(html_b("Postal Code"), $event->getEventPostalCode()) ;
         //$this->add_row(html_b("Country"), SDIFCodeTables::GetCountryCode($event->getEventCountryCode())) ;
         //$this->add_row(html_b("Region"), SDIFCodeTables::GetRegionCode($event->getRegionCode())) ;
         //$this->add_row(html_b("Event Code 5th Character"), $event->getEventCode5()) ;
     } else {
         $this->add_row("No event details available.");
     }
 }