Exemplo n.º 1
0
 public function assign_exam_admin()
 {
     $pilot_id = $_GET['pilot_id'];
     $exam_id = $_GET['id'];
     ExamsData::assign_exam($pilot_id, $exam_id);
     ExamsData::unrequest_exam($pilot_id, $exam_id);
     $this->set('requests', ExamsData::get_exam_requests());
     $this->set('unapproved', ExamsData::get_exams_unapproved());
     $this->set('questions', ExamsData::get_questions_admin());
     $this->set('exams', ExamsData::get_exams_admin());
     $this->show('exams/exam_admin');
 }