コード例 #1
0
ファイル: index.php プロジェクト: rolwi/koala
     if ($request->getParameter("initialPasswordChanging") == "1") {
         $_SESSION["changedInitialPassword"] = "******";
         header("Location: " . PATH_URL . "home/");
     }
     $usermanagementHTMLTemplate->set_context("user");
     break;
 case "user-changeAdminPerspective":
     $content->setVariable("CUSTOMER_COMBOBOX", $viewHelper->getCustomersCombobox($_SESSION["CURRENT_CUSTOMER_ID"]));
     $usermanagementHTMLTemplate->set_context("user");
     break;
 case "employees-modify":
     $content->setVariable("HEADLINE", "Benutzer bearbeiten");
     //$content->setVariable("LABEL_FILTER", "Filter auswählen:");
     //$content->setVariable("HEADLINE_FILTER", "Filter");
     $content->setVariable("FILTER_COMBOBOX", $viewHelper->getFilterComboBox($_SESSION["CURRENT_CUSTOMER_ID"]));
     $content->setVariable("EMPLOYEES_TABLE", $viewHelper->getEmployeesTable($_SESSION["CURRENT_CUSTOMER_ID"]));
     $usermanagementHTMLTemplate->set_context("employees");
     break;
 case "employees-create":
     $content->setVariable("AVAILABLE_BRANCH", $viewHelper->getBranchesAsOptions(true, $request->getParameter("branchID")));
     $content->setVariable("VALUE_FIRSTNAME", $request->getParameter("firstname"));
     $content->setVariable("VALUE_LASTNAME", $request->getParameter("lastname"));
     $content->setVariable("VALUE_EMAIL", $request->getParameter("email"));
     $content->setVariable("VALUE_CUSTOMER_ID", $_SESSION["CURRENT_CUSTOMER_ID"]);
     $content->setVariable("LABEL2", "Kurs auswählen:");
     $content->setVariable("COURSE_COMBOBOX", $viewHelper->getCourseCombobox($_SESSION["CURRENT_CUSTOMER_ID"], false));
     $usermanagementHTMLTemplate->set_context("employees");
     break;
 case "employees-import":
     $content->setVariable("HEADLINE", "Benutzer aus Excel-Liste importieren");
     $content->setVariable("LABEL1", "Lokale Excel-Datei auswählen:");