Subversion-Projekte lars-tiefland.ci

Revision

Revision 2239 | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

<?php

/**
 *
 * @package WebanOS CI
 * @author Lars Tiefland <ltiefland@gmail.com> 
 * @copyright 2016
 * @version $Rev: 2382 $
 */

class Backend extends CI_Controller
{
        public function __construct()
        {
                parent::__construct();
                $werte = parseEnumSet( "systemtermine", "status" );
                $status = array( "alle" => "alle", );
                foreach ( $werte["werte"] as $wert )
                {
                        $status[$wert] = $wert;
                }
                $statusGelesen = false;
                if ( in_array( "gelesen", $status ) )
                {
                        $statusGelesen = true;
                }
                $datum = array(
                        "alle",
                        "heute",
                        "gestern",
                        "vorgestern",
                        "lfd. Woche",
                        "letzte Woche",
                        strftime("%B %Y", strtotime(date("Y-m-01"))),
                        strftime("%B %Y", strtotime("-1 month", strtotime(date("Y-m-01")))),
                        strftime("%B %Y", strtotime("-2 months", strtotime(date("Y-m-01")))),
                        strftime("%B %Y", strtotime("-3 months", strtotime(date("Y-m-01")))),
                        strftime("%B %Y", strtotime("-4 months", strtotime(date("Y-m-01")))),
                        strftime("%B %Y", strtotime("-5 months", strtotime(date("Y-m-01")))),
                        strftime("%B %Y", strtotime("-6 months", strtotime(date("Y-m-01")))),
                        strftime("%B %Y", strtotime("-7 months", strtotime(date("Y-m-01")))),
                        strftime("%Y", strtotime(date("Y-01-01"))),
                        strftime("%Y", strtotime("-1 year", strtotime(date("Y-01-01")))),
                        strftime("%Y", strtotime("-2 years", strtotime(date("Y-01-01")))),
                        "bereich" => "Datumsbereich",
                        );
                /*$this->smarty->assign("ersteller", $tErsteller);*/
                $this->smarty->assign("statusGelesen", $statusGelesen);
                $this->smarty->assign("datum", $datum);
                $this->smarty->assign("status", $status);
                /*$this->smarty->assign("webs", $webs);
                $this->smarty->assign("termine", $termine);*/
                $this->smarty->assign("web_rechte", $GLOBALS["web_rechte"]);
                $this->smarty->assign("user_rechte", $GLOBALS["user_rechte"]);
        }
        public function index()
        {
                if ($this->input->get('clicked_tool')) {
                        $this->session->clicked_tool = $this->input->get('clicked_tool');
                }
                if ($this->input->get('clicked')) {
                        $this->session->clicked = $this->input->get('clicked');
                } else {
                        $this->smarty->view('index.tpl');
                }
        }
}

?>