Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1502 Revision 1924
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: 1502 $
8
 * @version $Rev: 1924 $
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
			);
-
 
22
		$sql = "SELECT
-
 
23
	            id,
-
 
24
	            name
-
 
25
	        FROM
-
 
26
	            content_management.medien_typ
-
 
27
	    ";
-
 
28
		$res = $this->db->query($sql);
-
 
29
		while ($row = $res->unbuffered_row('array'))
-
 
30
		{
-
 
31
			$typen[$row['id']] = $row['name'];
-
 
32
		}
-
 
33
		$this->smarty->assign("typen", $typen);
17
		$this->load->model('directory_model', 'directory');
34
		$this->smarty->assign("aehnlich", $aehnlich);
Zeile 18... Zeile 35...
18
	}
35
	}
19
 
36
 
20
	public function index($dir = -1)
37
	public function index($dir = -1)