예제 #1
0
파일: PIREPS.php 프로젝트: rallin/phpVMS
 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');
 }
예제 #2
0
 public function viewcomments()
 {
     $this->set('comments', PIREPData::GetComments($this->get->pirepid));
     $this->render('pireps_comments.tpl');
 }
예제 #3
0
 public function viewcomments()
 {
     $this->checkPermission(MODERATE_PIREPS);
     $this->set('comments', PIREPData::GetComments($this->get->pirepid));
     $this->render('pireps_comments.php');
 }