Subversion-Projekte lars-tiefland.ci

Revision

Revision 1924 | Revision 1929 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1924 Revision 1926
Zeile 3... Zeile 3...
3
/**
3
/**
4
 *
4
 *
5
 * @package WebanOS CI
5
 * @package WebanOS CI
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
7
 * @copyright 2016
7
 * @copyright 2016
8
 * @version $Rev: 1924 $
8
 * @version $Rev: 1926 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
class Artikelstamm extends CI_Controller
11
class Artikelstamm extends CI_Controller
12
{
12
{
13
	public function __construct()
13
	public function __construct()
14
	{
14
	{
15
		parent::__construct();
15
		parent::__construct();
16
		$this->load->model('artikel_model', 'artikel');
16
		$this->load->model('artikel_model', 'artikel');
17
		$this->load->model('directory_model', 'directory');
-
 
18
		$aehnlich = array(
-
 
19
			"nein",
-
 
20
			"ja",
-
 
21
			);
17
		$this->load->model('directory_model', 'directory');
22
		$sql = "SELECT
18
		$sql = "SELECT
23
	            id,
19
	            id,
24
	            name
20
	            name
25
	        FROM
21
	        FROM
Zeile 28... Zeile 24...
28
		$res = $this->db->query($sql);
24
		$res = $this->db->query($sql);
29
		while ($row = $res->unbuffered_row('array'))
25
		while ($row = $res->unbuffered_row('array'))
30
		{
26
		{
31
			$typen[$row['id']] = $row['name'];
27
			$typen[$row['id']] = $row['name'];
32
		}
28
		}
33
		$this->smarty->assign("typen", $typen);
-
 
34
		$this->smarty->assign("aehnlich", $aehnlich);
29
		$this->smarty->assign("aehnlich", $aehnlich);
35
	}
30
	}
Zeile 36... Zeile 31...
36
 
31
 
37
	public function index($dir = -1)
32
	public function index($dir = -1)