Ejemplo n.º 1
0
 /**
  * Profile::view()
  * 
  * @param string $pilotid
  * @return
  */
 public function view($pilotid = '')
 {
     $pilotid = PilotData::parsePilotID($pilotid);
     $pilot = PilotData::getPilotData($pilotid);
     $this->title = 'Profile of ' . $pilot->firstname . ' ' . $pilot->lastname;
     $this->set('userinfo', $pilot);
     $this->set('pilot', $pilot);
     $this->set('allfields', PilotData::getFieldData($pilotid, false));
     $pirep_list = PIREPData::getAllReportsForPilot($pilotid);
     $this->set('pireps', $pirep_list);
     $this->set('pirep_list', $pirep_list);
     $this->set('pilotcode', PilotData::getPilotCode($pilot->code, $pilot->pilotid));
     $this->set('allawards', AwardsData::getPilotAwards($pilot->pilotid));
     $this->render('pilot_public_profile.tpl');
     $this->render('pireps_viewall.tpl');
 }
Ejemplo n.º 2
0
 /**
  * Profile::view()
  *
  * @param string $pilotid
  * @return
  */
 public function view($pilotid = '')
 {
     #replacement for OFC charts - Google Charts API - simpilot
     $this->set('chart_url', ChartsData::build_pireptable($pilotid, 30));
     #end
     $pilotid = PilotData::parsePilotID($pilotid);
     $pilot = PilotData::getPilotData($pilotid);
     $this->title = 'Profile of ' . $pilot->firstname . ' ' . $pilot->lastname;
     $this->set('userinfo', $pilot);
     $this->set('pilot', $pilot);
     $this->set('allfields', PilotData::getFieldData($pilotid, false));
     $pirep_list = PIREPData::getAllReportsForPilot($pilotid);
     $this->set('pireps', $pirep_list);
     $this->set('pirep_list', $pirep_list);
     $this->set('pilotcode', PilotData::getPilotCode($pilot->code, $pilot->pilotid));
     $this->set('allawards', AwardsData::getPilotAwards($pilot->pilotid));
     $this->render('pilot_public_profile.tpl');
     $this->render('pireps_viewall.tpl');
 }