';
+$container = new htmlTable();
$selectedModules = explode(',', $_POST['selectedModules']);
if ($_FILES['inputfile'] && ($_FILES['inputfile']['size'] > 0)) {
@@ -168,8 +170,11 @@ if ($_FILES['inputfile'] && ($_FILES['inputfile']['size'] > 0)) {
// if input data is invalid just display error messages (max 50)
if (sizeof($errors) > 0) {
- for ($i = 0; $i < sizeof($errors); $i++) StatusMessage("ERROR", $errors[$i][0], $errors[$i][1]);
- massPrintBackButton($scope, $selectedModules);
+ for ($i = 0; $i < sizeof($errors); $i++) {
+ $container->addElement(new htmlStatusMessage("ERROR", $errors[$i][0], $errors[$i][1]), true);
+ }
+ $container->addElement(new htmlSpacer(null, '10px'), true);
+ massPrintBackButton($scope, $selectedModules, $container);
}
// let modules build accounts
@@ -193,7 +198,9 @@ if ($_FILES['inputfile'] && ($_FILES['inputfile']['size'] > 0)) {
}
// print errors if DN could not be built
if (sizeof($errors) > 0) {
- for ($i = 0; $i < sizeof($errors); $i++) StatusMessage("ERROR", $errors[$i][0], $errors[$i][1], $errors[$i][2]);
+ for ($i = 0; $i < sizeof($errors); $i++) {
+ $container->addElement(new htmlStatusMessage("ERROR", $errors[$i][0], $errors[$i][1], $errors[$i][2]), true);
+ }
}
else {
// store accounts in session
@@ -218,34 +225,33 @@ if ($_FILES['inputfile'] && ($_FILES['inputfile']['size'] > 0)) {
$_SESSION['mass_pdf']['structure'] = null;
}
// show links for upload and LDIF export
- echo "
\n";
- echo "
" . _("LAM has checked your input and is now ready to create the accounts.") . "
\n";
- echo "";
- echo "
\n";
- echo "
" . _("Upload accounts to LDAP") . "";
- echo " ";
- echo "
" . _("Show LDIF file") . "";
- ?>
-
- addElement(new htmlTitle(_("LAM has checked your input and is now ready to create the accounts.")), true);
+ $container->addElement(new htmlSpacer(null, '10px'), true);
+ $buttonContainer = new htmlTable();
+ $buttonContainer->addElement(new htmlLink(_("Upload accounts to LDAP"), 'massDoUpload.php', '../graphics/up.gif', true));
+ $buttonContainer->addElement(new htmlLink(_("Show LDIF file"), 'massBuildAccounts.php?showldif=true', '../graphics/edit.png', true));
+ $buttonContainer->addElement(new htmlSpacer('10px', null));
+ massPrintBackButton($scope, $selectedModules, $buttonContainer);
+ $container->addElement($buttonContainer, true);
}
}
else {
- massPrintBackButton($scope, $selectedModules);
+ $container->addElement(new htmlSpacer(null, '10px'), true);
+ massPrintBackButton($scope, $selectedModules, $container);
}
}
}
else {
- StatusMessage('ERROR', _('Please provide a file to upload.'));
- massPrintBackButton($scope, $selectedModules);
+ $container->addElement(new htmlStatusMessage('ERROR', _('Please provide a file to upload.')), true);
+ $container->addElement(new htmlSpacer(null, '10px'), true);
+ massPrintBackButton($scope, $selectedModules, $container);
}
+$tabindex = 1;
+parseHtml(null, $container, array(), false, $tabindex, $scope);
+
echo '
';
+echo '