Esempio n. 1
0
 /**
  * 新增/编辑授课人数类别层对话框DIV
  * @param   int     $csnt_id    若为0表示新增,否则表示编辑
  */
 public function setcsntinfo($csnt_id)
 {
     $csnt_id = intval($csnt_id);
     $data = array();
     $data['csnt_id'] = $csnt_id;
     if ($csnt_id) {
         $data['csnt_info'] = CourseModel::courseStuNumTypeInfo($csnt_id);
     } else {
         $data['csnt_info'] = array('csnt_id' => '', 'csnt_name' => '', 'csnt_memo');
     }
     $this->load->view('course/setcsntinfodlg', $data);
 }