Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1746 Revision 1754
Zeile 46... Zeile 46...
46
		$this->smarty->assign('hersteller', $hersteller);
46
		$this->smarty->assign('hersteller', $hersteller);
47
		$this->smarty->assign('daten', $daten);
47
		$this->smarty->assign('daten', $daten);
48
		$this->smarty->view('artikel.tpl');
48
		$this->smarty->view('artikel.tpl');
49
	}
49
	}
Zeile -... Zeile 50...
-
 
50
 
-
 
51
	public function del($id = null)
-
 
52
	{
-
 
53
		if ($id)
-
 
54
		{
-
 
55
			$daten = $this->artikel->get($id);
-
 
56
			$name = $daten["kurzbezeichnung"];
-
 
57
			$typ = "Artikel";
-
 
58
			$this->smarty->assign('name', $name);
-
 
59
			$this->smarty->assign('id', $id);
-
 
60
			$this->smarty->assign('typ', $typ);
-
 
61
			$this->smarty->view('del.tpl');
-
 
62
		}
-
 
63
		elseif ($this->input->post('id'))
-
 
64
		{
-
 
65
			$this->artikel->del($this->input->post('id'));
-
 
66
		}
50
 
67
	}
51
	public function save()
68
	public function save()
52
	{
69
	{
53
		$artikel = $this->input->post('artikel');
70
		$artikel = $this->input->post('artikel');
54
		$this->artikel->save($artikel);
71
		$this->artikel->save($artikel);