} $content->setVariable("CUSTOMERID", $customerID); $content->setVariable("COURSE_COMBOBOX", $viewHelper->getExportCourseComboBox($_SESSION["CURRENT_CUSTOMER_ID"])); $usermanagementHTMLTemplate->set_context("employees"); break; case "employees-history": lms_portal::get_instance()->set_prototype_enabled(false); lms_portal::get_instance()->add_javascript_src("usermanagement", "/styles/standard/javascript/jquery-1.4.2.min.js"); lms_portal::get_instance()->add_javascript_src("usermanagement", "/styles/standard/javascript/collapse.js"); lms_portal::get_instance()->add_javascript_onload("usermanagement", "animatedcollapse.init();"); $logFiles = $GLOBALS["USERMANAGEMENT_DATA_ACCESS"]->getCustomerCreationLogFiles($_SESSION["CURRENT_CUSTOMER_ID"]); foreach ($logFiles as $logfile) { lms_portal::get_instance()->add_javascript_code("usermanagement", "animatedcollapse.addDiv('" . str_replace(".", "_", $logfile["name"]) . "', 'group=log,hide=1');"); } //lms_portal::get_instance()->add_javascript_code("usermanagement", "animatedcollapse.init();"); $content->setVariable("USER_HISTORY", $viewHelper->createHistoryEntries($logFiles)); $usermanagementHTMLTemplate->set_context("employees"); $portal->add_javascript_code("usermanagement_index", $viewHelper->jsCheckAllCheckboxes()); break; case "branches": // Add customers combobox $content->setVariable("CUSTOMERS_COMBOBOX", $viewHelper->getCustomersCombobox()); // Set template placeholders $content->setVariable("VALUE_HEADLINE_ADD_BRANCH", "Neue Filiale hinzufügen"); $content->setVariable("VALUE_HEADLINE_MODIFY_BRANCH", "Filialen bearbeiten"); $content->setVariable("LABEL_NAME", "Name"); $content->setVariable("LABEL_CUSTOMER", "Kunde"); $content->setVariable("VALUE_ADD_BUTTON", "Filiale anlegen"); $content->setVariable("TABLE_COL_1", "Filiale-ID"); $content->setVariable("TABLE_COL_2", "Kunde"); $content->setVariable("TABLE_COL_3", "Name");