Exemple #1
0
     $content->setVariable("LABEL1", "Lokale Excel-Datei auswählen:");
     $content->setVariable("LABEL2", "Kurs auswählen:");
     $content->setVariable("BUTTON_IMPORT", "Import starten");
     $content->setVariable("VALUE_CUSTOMER_ID", $_SESSION["CURRENT_CUSTOMER_ID"]);
     $content->setVariable("COURSE_COMBOBOX", $viewHelper->getCourseCombobox($_SESSION["CURRENT_CUSTOMER_ID"], false));
     $usermanagementHTMLTemplate->set_context("employees");
     break;
 case "employees-export":
     $customerID = "";
     if ($GLOBALS["USERMANAGEMENT_DATA_ACCESS"]->isCustomerAdmin($currentUserID)) {
         $customerID = $GLOBALS["USERMANAGEMENT_DATA_ACCESS"]->getEmployeeCustomerID($currentUserID);
     } else {
         $customerID = $_SESSION["CURRENT_CUSTOMER_ID"];
     }
     $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());