/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/viewstudents.php

  • Committer: Gustav Hatvigsson
  • Date: 2013-05-28 15:19:50 UTC
  • mfrom: (90.1.18 lenasys2)
  • Revision ID: gustav.hartvigsson@gmail.com-20130528151950-94dkhjql3y0mphyp
merged Jonsson:s changes:
Fixed even/odd line color on cmsindex.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
        Class viewstudents extends CI_Model
 
3
        {
 
4
                /* Loads studentnames names for menu */
 
5
                function getStudents()
 
6
                {
 
7
                        $this -> db -> select('*');
 
8
                        $this -> db -> from('Users'); 
 
9
                        $this -> db -> where('Users.userType', 2); 
 
10
                        $this -> db -> order_by("Users.userName", "asc"); 
 
11
                        
 
12
                        $query = $this -> db -> get();
 
13
                        return $query->result();
 
14
 
 
15
                }
 
16
        }
 
17
?>
 
18