public function viewreport($pirepid = '') { if ($pirepid == '') { $this->set('message', 'No report ID specified!'); $this->render('core_error.tpl'); return; } $pirep = PIREPData::getReportDetails($pirepid); if (!$pirep) { $this->set('message', 'This PIREP does not exist!'); $this->render('core_error.tpl'); return; } $this->set('pirep', $pirep); $this->set('fields', PIREPData::GetFieldData($pirepid)); $this->set('comments', PIREPData::GetComments($pirepid)); $this->render('pirep_viewreport.tpl'); $this->render('route_map.tpl'); }
public function viewcomments() { $this->set('comments', PIREPData::GetComments($this->get->pirepid)); $this->render('pireps_comments.tpl'); }
public function viewcomments() { $this->checkPermission(MODERATE_PIREPS); $this->set('comments', PIREPData::GetComments($this->get->pirepid)); $this->render('pireps_comments.php'); }