$content->setVariable("TABLE_COL_1", "Filiale-ID"); $content->setVariable("TABLE_COL_2", "Kunde"); $content->setVariable("TABLE_COL_3", "Name"); $content->setVariable("TABLE_COL_4", "Aktionen"); $customerID = ""; if ($GLOBALS["USERMANAGEMENT_DATA_ACCESS"]->isCustomerAdmin($currentUserID)) { $customerID = $GLOBALS["USERMANAGEMENT_DATA_ACCESS"]->getEmployeeCustomerID($currentUserID); } // Add table rows for available branches to modify foreach ($GLOBALS["USERMANAGEMENT_DATA_ACCESS"]->getAllBranches($customerID) as $branchID => $branchName) { $content->setCurrentBlock("BLOCK_BRANCHES"); $content->setVariable("BRANCH_ENTRY", $viewHelper->getBranchRow($branchID, $branchName)); $content->parse("BLOCK_BRANCHES"); } // Some JavaScript $portal->add_javascript_code("usermanagement_index", $viewHelper->jsSetCommandValue()); // Set context $usermanagementHTMLTemplate->set_context("branches"); break; case "customers": // Set template placeholders $content->setVariable("VALUE_HEADLINE_ADD_CUSTOMER", "Neues Unternehmen hinzufügen"); $content->setVariable("VALUE_HEADLINE_MODIFY_CUSTOMER", "Unternehmen bearbeiten"); $content->setVariable("LABEL_NAME", "Name*"); $content->setVariable("LABEL_ID", "ID*"); $content->setVariable("VALUE_ADD_BUTTON", "Unternehmen anlegen"); $content->setVariable("TABLE_COL_1", "ID"); $content->setVariable("TABLE_COL_2", "Name"); $content->setVariable("TABLE_COL_3", "Aktionen"); // Set table rows for all customers foreach ($GLOBALS["USERMANAGEMENT_DATA_ACCESS"]->getAllCustomers() as $customerID => $customerName) {