/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: a10rolch
  • Date: 2013-05-20 09:33:34 UTC
  • mto: This revision was merged to the branch mainline in revision 80.
  • Revision ID: a10rolch@student.his.se-20130520093334-yznvrx0bmj74wyu4
- Updated admin_model function addCourse to also include courseData.
- New files:
        Controllers:
        - ManageCourses.php
        Views:
        - manageCoursesBody.php

- Manage courses page loads courses from database and can also add new courses.
- Layout is almost complete on this view.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
                return $query->result();
18
18
        }
19
19
 
20
 
        function addCourse($cid, $name){
 
20
        function addCourse($cid, $name, $courseData){
21
21
                $data = array(
22
22
                        'courseID' => $cid ,
23
 
                        'name' => $name
 
23
                        'name' => $name,
 
24
                        'courseData' => $courseData
24
25
                        );
25
26
 
26
27
                $this->db->insert('Courses', $data);