Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1485 Revision 1491
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: 1485 $
8
 * @version $Rev: 1491 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
class Artikelstamm extends CI_Controller
11
class Artikelstamm extends CI_Controller
12
{
12
{
Zeile 18... Zeile 18...
18
	}
18
	}
Zeile 19... Zeile 19...
19
 
19
 
20
	public function index($dir = -1)
20
	public function index($dir = -1)
21
	{
21
	{
22
		$dirs = $this->directory->get_list($dir);
-
 
23
		foreach ($dirs as $id => $d)
-
 
24
		{
-
 
25
			$dirs[$id]["items"] = $this->artikel->get_list($d["ID"]);
-
 
26
		}
-
 
27
 
22
		$dirs = $this->directory->get_list($dir);
28
		$this->smarty->assign('dirs', $dirs);
23
		$this->smarty->assign('dirs', $dirs);
29
		if ($dir == -1)
24
		if ($dir == -1)
30
		{
25
		{
31
			$this->smarty->assign('title', 'Artikelverwaltung');
26
			$this->smarty->assign('title', 'Artikelverwaltung');
32
			$this->smarty->display('artstamm.tpl');
27
			$this->smarty->display('artstamm.tpl');
33
		}
28
		}
34
		else
29
		else
-
 
30
		{
-
 
31
			$items = $this->directory->get_list($dir);
35
		{
32
			$this->smarty->assign('items', $items);
36
			$this->smarty->display('artstamm_sub.tpl');
33
			$this->smarty->display('artstamm_sub.tpl');
37
		}
34
		}
38
	}
35
	}
Zeile 39... Zeile -...
39
}
-
 
40
 
36
}
-
 
37
 
41
	?>
38
?>