Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1333 Revision 2238
Zeile 3... Zeile 3...
3
/**
3
/**
4
 *
4
 *
5
 * @package WebanOS CI
5
 * @package WebanOS CI
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
7
 * @copyright 2016
7
 * @copyright 2016
8
 * @version $Rev: 1333 $
8
 * @version $Rev: 2238 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
class Backend extends CI_Controller
11
class Backend extends CI_Controller
12
{
12
{
13
	public function __construct()
13
	public function __construct()
14
	{
14
	{
-
 
15
		parent::__construct();
-
 
16
		$datum = array(
-
 
17
			"alle",
-
 
18
			"heute",
-
 
19
			"gestern",
-
 
20
			"vorgestern",
-
 
21
			"lfd. Woche",
-
 
22
			"letzte Woche",
-
 
23
			strftime("%B %Y", strtotime(date("Y-m-01"))),
-
 
24
			strftime("%B %Y", strtotime("-1 month", strtotime(date("Y-m-01")))),
-
 
25
			strftime("%B %Y", strtotime("-2 months", strtotime(date("Y-m-01")))),
-
 
26
			strftime("%B %Y", strtotime("-3 months", strtotime(date("Y-m-01")))),
-
 
27
			strftime("%B %Y", strtotime("-4 months", strtotime(date("Y-m-01")))),
-
 
28
			strftime("%B %Y", strtotime("-5 months", strtotime(date("Y-m-01")))),
-
 
29
			strftime("%B %Y", strtotime("-6 months", strtotime(date("Y-m-01")))),
-
 
30
			strftime("%B %Y", strtotime("-7 months", strtotime(date("Y-m-01")))),
-
 
31
			strftime("%Y", strtotime(date("Y-01-01"))),
-
 
32
			strftime("%Y", strtotime("-1 year", strtotime(date("Y-01-01")))),
-
 
33
			strftime("%Y", strtotime("-2 years", strtotime(date("Y-01-01")))),
-
 
34
			"bereich" => "Datumsbereich",
-
 
35
			);
-
 
36
		/*$this->smarty->assign("ersteller", $tErsteller);
-
 
37
		$this->smarty->assign("statusGelesen", $statusGelesen);*/
-
 
38
		$this->smarty->assign("datum", $datum);
-
 
39
		/*$this->smarty->assign("status", $status);
-
 
40
		$this->smarty->assign("webs", $webs);
-
 
41
		$this->smarty->assign("termine", $termine);*/
-
 
42
		$this->smarty->assign("web_rechte", $GLOBALS["web_rechte"]);
15
		parent::__construct();
43
		$this->smarty->assign("user_rechte", $GLOBALS["user_rechte"]);
16
	}
44
	}
17
	public function index()
45
	public function index()
18
	{
46
	{
19
		if ($this->input->get('clicked_tool'))
-
 
20
		{
47
		if ($this->input->get('clicked_tool')) {
21
			$this->session->clicked_tool = $this->input->get('clicked_tool');
48
			$this->session->clicked_tool = $this->input->get('clicked_tool');
22
		}
49
		}
23
		if ($this->input->get('clicked'))
-
 
24
		{
50
		if ($this->input->get('clicked')) {
25
			$this->session->clicked = $this->input->get('clicked');
-
 
26
		}
51
			$this->session->clicked = $this->input->get('clicked');
27
		else
-
 
28
		{
52
		} else {
29
			$this->smarty->view('index.tpl');
53
			$this->smarty->view('index.tpl');
30
		}
54
		}
31
	}
55
	}