/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk
78.1.1 by Johan Gustavsson
added controller, model and view for View students, so that next imp can continue on it
1
<?php
2
	Class viewstudents extends CI_Model
3
	{
4
		/* Loads studentnames names for menu */
5
		function getStudents()
6
		{
83.2.14 by elof.bigestans at gmail
* Started work on the viewStudents functionality... So far, displaying users works and it outputs correct and standardized html.
7
			$this -> db -> select('*');
78.1.1 by Johan Gustavsson
added controller, model and view for View students, so that next imp can continue on it
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