Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1763 Revision 1793
Zeile 6... Zeile 6...
6
	{
6
	{
7
		parent::__construct();
7
		parent::__construct();
8
		$this->load->model('artikel_model', 'artikel');
8
		$this->load->model('artikel_model', 'artikel');
9
		$this->load->model('herstellerkatalog_model', 'hersteller');
9
		$this->load->model('herstellerkatalog_model', 'hersteller');
10
		$this->load->model('preise_model', 'preise');
10
		$this->load->model('preise_model', 'preise');
11
	}
-
 
12
 
-
 
13
	public function edit($id = null)
-
 
14
	{
-
 
15
		if (isset($GLOBALS["web_rechte"]["online_shop"]["artikel"]["status"]) && $GLOBALS["web_rechte"]["online_shop"]["artikel"]["status"])
11
		if (isset($GLOBALS["web_rechte"]["online_shop"]["artikel"]["status"]) && $GLOBALS["web_rechte"]["online_shop"]["artikel"]["status"])
16
		{
12
		{
17
			$artikelstatus = explode(";", $GLOBALS["web_rechte"]["online_shop"]["artikel"]["status"]);
13
			$artikelstatus = explode(";", $GLOBALS["web_rechte"]["online_shop"]["artikel"]["status"]);
18
			$this->smarty->assign('artikelstatus', $artikelstatus);
14
			$this->smarty->assign('artikelstatus', $artikelstatus);
19
		}
15
		}
Zeile 33... Zeile 29...
33
			"index,nofollow",
29
			"index,nofollow",
34
			"noindex,follow",
30
			"noindex,follow",
35
			"noindex,nofollow",
31
			"noindex,nofollow",
36
			);
32
			);
37
		$hersteller = $this->hersteller->get_list('dropdown');
33
		$hersteller = $this->hersteller->get_list('dropdown');
-
 
34
		$preiseNamen = explode(";", ";".$GLOBALS["web_rechte"]["online_shop"]["artikel"]["preise"]);
-
 
35
		$this->smarty->assign('preisNamen', $preiseNamen);
-
 
36
		$this->smarty->assign('robots', $robots);
-
 
37
		$this->smarty->assign('hersteller', $hersteller);
-
 
38
	}
-
 
39
	
-
 
40
	public function create($father)
-
 
41
	{
-
 
42
		$daten=array("Father"=>$father,);
-
 
43
		$this->smarty->assign('daten', $daten);
-
 
44
		$this->smarty->view('artikel.tpl');
-
 
45
	}
-
 
46
	public function edit($id = null)
-
 
47
	{
38
		$daten = array();
48
		$daten = array();
39
		if ($id)
49
		if ($id)
40
		{
50
		{
41
			$daten = $this->artikel->get($id);
51
			$daten = $this->artikel->get($id);
42
		}
52
		}
43
		$preiseNamen = explode(";", ";".$GLOBALS["web_rechte"]["online_shop"]["artikel"]["preise"]);
-
 
44
		$this->smarty->assign('preisNamen', $preiseNamen);
-
 
45
		$this->smarty->assign('robots', $robots);
-
 
46
		$this->smarty->assign('hersteller', $hersteller);
-
 
47
		$this->smarty->assign('daten', $daten);
53
		$this->smarty->assign('daten', $daten);
48
		$this->smarty->view('artikel.tpl');
54
		$this->smarty->view('artikel.tpl');
49
	}
55
	}
Zeile 50... Zeile 56...
50
 
56