示例#1
0
 public function second_team()
 {
     eval(ADMIN);
     try {
         $team_id = xassert(safeget("show"), Error("get"));
         $res = DBModel::getSecondTeamDetail($team_id);
         $tutorlist = DBModel::getByFields('cernet_tutor');
         $types = DBModel::getByFields('cernet_report_type');
         $this->assign('type', $types);
         $this->assign('tutorlist', json_encode($tutorlist));
         $this->assign('teamData', $res);
         $this->assign('mates', $res['teammate']);
         $this->assign('report', $res['report']);
     } catch (Exception $e) {
         throw_exception($e->getMessage());
     }
     $this->assign("less", __FUNCTION__ . ".less");
     eval(NDSP);
 }