Subversion-Projekte lars-tiefland.ci

Revision

Revision 1957 | Revision 1968 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1939 lars 1
<?php
2
 
3
class Herstellerkatalog extends CI_Controller
4
{
5
	public function __construct()
6
	{
7
		parent::__construct();
1957 lars 8
		$this->load->model('herstellerkatalog_model', 'herstellerkatalog');
1962 lars 9
		$robots = array(
10
			"index,follow",
11
			"index,nofollow",
12
			"noindex,follow",
13
			"noindex,nofollow",
14
			);
15
		$this->smarty->assign('robots', $robots);
1939 lars 16
	}
1957 lars 17
 
1939 lars 18
	public function index()
19
	{
20
		$hersteller = $this->herstellerkatalog->get_list();
1957 lars 21
		$this->smarty->assign('title', 'Herstellerliste');
22
		$this->smarty->assign('hersteller', $hersteller);
1939 lars 23
		$this->smarty->view('herstellerkatalog.tpl');
24
	}
1957 lars 25
	public function edit($id = null)
1939 lars 26
	{
1957 lars 27
		$hst = array();
28
		if ($id)
29
		{
30
			$hst = $this->herstellerkatalog->get($id);
31
		}
32
		$this->smarty->assign('daten', $hst);
33
		$this->smarty->view('single_hersteller.tpl');
1939 lars 34
	}
35
}