public function __construct() { parent::__construct(); $this->_course_class = C('USER.course_class'); $this->assign('courseclass', $this->_course_class); //获取用户课程学习情况 $this->usercourseinfo = D('User')->gcUserCourseLearn($this->userinfo['userid'], $this->_course_class); $this->assign('usercourseinfo', $this->usercourseinfo); }
public function __construct() { parent::__construct(); $this->_work_class = C('USER.work_class'); $this->assign('workclass', $this->_work_class); $this->_work_type = C('USER.work_type'); $this->assign('worktype', $this->_work_type); //获取用户作业完成情况 $this->userworkinfo = D('User')->getUserWorkDone($this->userinfo['userid'], $this->_work_class); $this->assign('userworkinfo', $this->userworkinfo); }