Subversion-Projekte lars-tiefland.ci

Revision

Revision 2238 | 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: 2239 $
9
 */
10
 
11
class Backend extends CI_Controller
12
{
847 lars 13
	public function __construct()
14
	{
15
		parent::__construct();
2239 lars 16
        $werte = parseEnumSet( "systemtermine", "status" );
17
        $status = array( "alle" => "alle", );
18
        foreach ( $werte["werte"] as $wert )
19
        {
20
            $status[$wert] = $wert;
21
        }
22
        $statusGelesen = false;
23
        if ( in_array( "gelesen", $status ) )
24
        {
25
            $statusGelesen = true;
26
        }
2238 lars 27
		$datum = array(
28
			"alle",
29
			"heute",
30
			"gestern",
31
			"vorgestern",
32
			"lfd. Woche",
33
			"letzte Woche",
34
			strftime("%B %Y", strtotime(date("Y-m-01"))),
35
			strftime("%B %Y", strtotime("-1 month", strtotime(date("Y-m-01")))),
36
			strftime("%B %Y", strtotime("-2 months", strtotime(date("Y-m-01")))),
37
			strftime("%B %Y", strtotime("-3 months", strtotime(date("Y-m-01")))),
38
			strftime("%B %Y", strtotime("-4 months", strtotime(date("Y-m-01")))),
39
			strftime("%B %Y", strtotime("-5 months", strtotime(date("Y-m-01")))),
40
			strftime("%B %Y", strtotime("-6 months", strtotime(date("Y-m-01")))),
41
			strftime("%B %Y", strtotime("-7 months", strtotime(date("Y-m-01")))),
42
			strftime("%Y", strtotime(date("Y-01-01"))),
43
			strftime("%Y", strtotime("-1 year", strtotime(date("Y-01-01")))),
44
			strftime("%Y", strtotime("-2 years", strtotime(date("Y-01-01")))),
45
			"bereich" => "Datumsbereich",
46
			);
2239 lars 47
		/*$this->smarty->assign("ersteller", $tErsteller);*/
48
		$this->smarty->assign("statusGelesen", $statusGelesen);
2238 lars 49
		$this->smarty->assign("datum", $datum);
2239 lars 50
		$this->smarty->assign("status", $status);
51
		/*$this->smarty->assign("webs", $webs);
2238 lars 52
		$this->smarty->assign("termine", $termine);*/
53
		$this->smarty->assign("web_rechte", $GLOBALS["web_rechte"]);
54
		$this->smarty->assign("user_rechte", $GLOBALS["user_rechte"]);
847 lars 55
	}
757 lars 56
	public function index()
57
	{
2238 lars 58
		if ($this->input->get('clicked_tool')) {
1333 lars 59
			$this->session->clicked_tool = $this->input->get('clicked_tool');
60
		}
2238 lars 61
		if ($this->input->get('clicked')) {
1300 lars 62
			$this->session->clicked = $this->input->get('clicked');
2238 lars 63
		} else {
1301 lars 64
			$this->smarty->view('index.tpl');
65
		}
757 lars 66
	}
67
}
68
 
1333 lars 69
?>