Subversion-Projekte lars-tiefland.ci

Revision

Revision 1333 | Revision 2239 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
757 lars 1
<?php
2
 
3
/**
4
 *
5
 * @package WebanOS CI
6
 * @author Lars Tiefland <ltiefland@gmail.com>
7
 * @copyright 2016
8
 * @version $Rev: 2238 $
9
 */
10
 
11
class Backend extends CI_Controller
12
{
847 lars 13
	public function __construct()
14
	{
15
		parent::__construct();
2238 lars 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"]);
43
		$this->smarty->assign("user_rechte", $GLOBALS["user_rechte"]);
847 lars 44
	}
757 lars 45
	public function index()
46
	{
2238 lars 47
		if ($this->input->get('clicked_tool')) {
1333 lars 48
			$this->session->clicked_tool = $this->input->get('clicked_tool');
49
		}
2238 lars 50
		if ($this->input->get('clicked')) {
1300 lars 51
			$this->session->clicked = $this->input->get('clicked');
2238 lars 52
		} else {
1301 lars 53
			$this->smarty->view('index.tpl');
54
		}
757 lars 55
	}
56
}
57
 
1333 lars 58
?>