Example #1
0
    // DEKLARATION DER VARIABLEN
    // ----------------------------------------------------------------------------
    include './include/time_variablen_laden.php';
    $_template->_plugin = "modules/sites_plugin/plugin.php";
}
// ----------------------------------------------------------------------------
// Controller Templatedarstellung
// ----------------------------------------------------------------------------
switch ($_action) {
    case "edit_ausz":
        $auszahlung = new auszahlung($_GET['monat'], $_GET['jahr']);
        $_template->_user04 = "sites_admin/admin04_auszahlung.php";
        break;
    case "update_ausz":
        $auszahlung = new auszahlung($_GET['monat'], $_GET['jahr']);
        $auszahlung->save_auszahlung($_POST['anzahl']);
        $_infotext = getinfotext("Jahresübersicht", "td_background_top");
        $_template->_user02 = "sites_year/sites02_year.php";
        $_template->_user04 = "sites_year/sites04_year.php";
        break;
    case "plugins":
        if ($_POST['plugin']) {
            $_SESSION['plugin'] = $_POST['plugin'];
        }
        if ($_POST['plugin'] == "zeiterfassung") {
            header("Location: admin.php");
        }
        $_infotext_org = getinfotext("<b>Plugins werden geladen</b> : " . $_SESSION['plugin'] . " wird geladen.", "td_background_top");
        if (isset($_GET['excel'])) {
            $_datei = $_GET['excel'];
            $_datei = $_datei . "-" . $_time->_jahr;