Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1133 Revision 1172
Zeile 35... Zeile 35...
35
	 * @param mixed $id
35
	 * @param mixed $id
36
	 * @return void
36
	 * @return void
37
	 */
37
	 */
38
	public function edit($id = null)
38
	public function edit($id = null)
39
	{
39
	{
40
		$nav_pos_sel = "";
-
 
41
		$user = array();
-
 
42
		if ($id)
-
 
43
		{
-
 
44
			$user = $this->user->get_info($id);
40
		$order = $this->order->get($id);
45
			$nav_pos_sel = $user["navigation_pos"];
-
 
46
		}
-
 
47
		if ($nav_pos_sel == "")
-
 
48
		{
-
 
49
			if ($GLOBALS["web_rechte"]["general"]["design"]["neu"] == "tabs")
-
 
50
			{
-
 
51
				$nav_pos_sel = "oben";
-
 
52
			}
-
 
53
			else
-
 
54
			{
-
 
55
				$nav_pos_sel = "links";
-
 
56
			}
-
 
57
		}
-
 
58
		$nav_pos = array(
-
 
59
			"oben" => "oben",
-
 
60
			"links" => "links",
-
 
61
			);
-
 
62
		$this->smarty->assign("nav_pos", $nav_pos);
-
 
63
		if ($id)
-
 
64
		{
-
 
65
			$this->smarty->assign("nav_pos_sel", $nav_pos_sel);
-
 
66
			$this->smarty->assign('user', $user);
41
		$this->smarty->assign('order', $order);
67
		}
-
 
68
		$this->smarty->view('user_edit.tpl');
42
		$this->smarty->view('single_order.tpl');
69
	}
43
	}
Zeile 70... Zeile 44...
70
 
44
 
71
	public function save()
45
	public function save()
72
	{
46
	{
Zeile 94... Zeile 68...
94
		{
68
		{
95
			$this->user->save($_POST);
69
			$this->user->save($_POST);
96
			echo "0|";
70
			echo "0|";
97
		}
71
		}
98
	}
72
	}
99
	
73
 
100
	public function del($id = null)
74
	public function del($id = null)
101
	{
75
	{
102
		if ($id)
76
		if ($id)
103
		{
77
		{
104
			$user = $this->user->get_info($id);
78
			$user = $this->user->get_info($id);