Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1023 Revision 1024
Zeile 15... Zeile 15...
15
	public function __construct()
15
	public function __construct()
16
	{
16
	{
17
		parent::__construct();
17
		parent::__construct();
18
		$this->load->model('user_model', 'user');
18
		$this->load->model('user_model', 'user');
19
	}
19
	}
20
	/**
-
 
21
	 * User::index()
-
 
22
	 * 
-
 
23
	 * @return
-
 
24
	 */
-
 
25
	public function index()
-
 
26
	{
-
 
27
		$users = $this->user->user_list();
-
 
28
		$this->smarty->assign('users', $users);
-
 
29
		$this->smarty->view('user.tpl');
-
 
30
	}
-
 
Zeile 31... Zeile 20...
31
 
20
 
32
	/**
21
	/**
33
	 * User::edit()
22
	 * User::edit()
34
	 * 
23
	 * 
35
	 * @param mixed $id
24
	 * @param mixed $id
36
	 * @return void
25
	 * @return void
37
	 */
26
	 */
38
	public function edit($id = null)
27
	public function edit($id = null)
39
	{
-
 
40
		$nav_pos_sel = "";
-
 
41
		$user = array();
-
 
42
		if ($id)
-
 
43
		{
-
 
44
			$user = $this->user->get_info($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
		$this->smarty->assign("nav_pos_sel", $nav_pos_sel);
-
 
64
		$this->smarty->assign('user', $user);
28
	{
65
		$this->smarty->view('user_edit.tpl');
29
		$this->smarty->view('user_rechte.tpl');
Zeile 66... Zeile 30...
66
	}
30
	}
67
 
31
 
68
	/**
32
	/**