getConfiguredType($typeId); // check if account type is ok if ($type->isHidden()) { logNewMessage(LOG_ERR, 'User tried to access hidden upload: ' . $type->getId()); die(); } if (!checkIfNewEntriesAreAllowed($type->getId()) || !checkIfWriteAccessIsAllowed($type->getId())) { logNewMessage(LOG_ERR, 'User tried to access forbidden upload: ' . $type->getId()); die(); } echo '
'; include '../../lib/adminFooter.inc'; /** * Prints a back button to the page where the user enters a file to upload. * * @param String $typeId account type (e.g. user) * @param array $selectedModules selected modules for upload * @param htmlResponsiveRow $container table container */ function massPrintBackButton($typeId, $selectedModules, htmlResponsiveRow &$container) { $backButton = new htmlButton('submit', _('Back')); $backButton->setIconClass('backButton'); $container->add($backButton, 12); $container->add(new htmlHiddenInput('type', $typeId), 12); $createPDF = 0; if (isset($_POST['createPDF']) && ($_POST['createPDF'] == 'on')) { $createPDF = 1; } $container->add(new htmlHiddenInput('createPDF', $createPDF), 12); $container->add(new htmlHiddenInput('pdfStructure', $_POST['pdfStructure']), 12); foreach ($selectedModules as $selectedModule) { $container->add(new htmlHiddenInput($typeId . '___' . $selectedModule, 'on'), 12); } } ?>