Exemplo n.º 1
0
 /**
  * 新增/编辑授课教师来源层对话框DIV
  * @param   int     $ctf_id     若为0表新增,否则表编辑
  */
 public function setctfinfo($ctf_id)
 {
     $ctf_id = intval($ctf_id);
     $data = array();
     $data['ctf_id'] = $ctf_id;
     if ($ctf_id) {
         $data['ctf_info'] = CourseModel::courseTeachfromInfo($ctf_id);
     } else {
         $data['ctf_info'] = array('ctf_id' => '', 'ctf_name' => '');
     }
     $this->load->view('course/setctfinfodlg', $data);
 }