/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-24 09:37:27 UTC
  • mto: This revision was merged to the branch mainline in revision 94.
  • Revision ID: elof.bigestans@gmail.com-20130524093727-i8t7zm9u4g3got57
* Updated ManageCourses, including JS+Jquery, popups, controller.
* Updated ajax.php, mainly function popup(). Also added some helpers related to ManageCourses

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
                return $query->result();
20
20
        }
21
21
 
22
 
        public function setCourseHidden($courseID) {
 
22
        function setCourseHidden($courseID) {
23
23
                $this->db->where("courseID", $courseID);
24
 
                $this->db->update("Courses", array("isHidden" => 0));
 
24
                $this->db->update("Courses", array("isHidden" => 1));
25
25
        }
26
26
 
27
 
        public function unsetCourseHidden($courseID){
 
27
        function unsetCourseHidden($courseID){
28
28
                $this->db->where("courseID", $courseID);
29
29
                $this->db->update("Courses", array("isHidden" => 0));
30
30
        }