/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/application/models/admin/admin_model.php

  • Committer: elof.bigestans at gmail
  • Date: 2013-05-22 11:39:03 UTC
  • mto: This revision was merged to the branch mainline in revision 94.
  • Revision ID: elof.bigestans@gmail.com-20130522113903-j31cvd4i191k7mkz
Fixed various bugs in the ManageCourses function

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
        }
31
31
 
 
32
        function editCourse($cid, $name, $courseData) {
 
33
                $data = array(
 
34
                        'name' => $name,
 
35
                        'courseData' => $courseData
 
36
                );
 
37
 
 
38
                $this->db->where('courseID', $cid);
 
39
                $this->db->update('Courses', $data);
 
40
        }
 
41
 
32
42
        function getMenu(){
33
43
                $menu = array();
34
44
                $courses = $this->db->get("Courses");