Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1008 Revision 1009
Zeile 26... Zeile 26...
26
	{
26
	{
27
		$users = $this->user->user_list();
27
		$users = $this->user->user_list();
28
		$this->smarty->assign('users', $users);
28
		$this->smarty->assign('users', $users);
29
		$this->smarty->view('user.tpl');
29
		$this->smarty->view('user.tpl');
30
	}
30
	}
31
	
31
 
32
	/**
32
	/**
33
	 * User::edit()
33
	 * User::edit()
34
	 * 
34
	 * 
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
		$user = array();
40
		$user = array();
41
		if($id)
41
		if ($id)
42
		{
42
		{
43
			$user = $this->user->get_info($id);
43
			$user = $this->user->get_info($id);
44
		}
44
		}
45
		$nav_pos_sel = $user["navigation_pos"];
45
		$nav_pos_sel = $user["navigation_pos"];
46
		if ($nav_pos_sel == "")
46
		if ($nav_pos_sel == "")
Zeile 52... Zeile 52...
52
			else
52
			else
53
			{
53
			{
54
				$nav_pos_sel = "links";
54
				$nav_pos_sel = "links";
55
			}
55
			}
56
		}
56
		}
-
 
57
		$nav_pos = array(
-
 
58
			"oben" => "oben",
-
 
59
			"links" => "links",
-
 
60
			);
-
 
61
		$this->smarty->assign("nav_pos", $nav_pos);
57
		$this->smarty->assign("nav_pos_sel", $nav_pos_sel);
62
		$this->smarty->assign("nav_pos_sel", $nav_pos_sel);
58
		$this->smarty->assign('user',$user);
63
		$this->smarty->assign('user', $user);
59
		$this->smarty->view('user_edit.tpl');
64
		$this->smarty->view('user_edit.tpl');
60
	}
65
	}
Zeile 61... Zeile 66...
61
 
66
 
62
	/**
67
	/**