diff --git a/lam/templates/tools/importexport.php b/lam/templates/tools/importexport.php
index f5aa1ee1..a10a12f4 100644
--- a/lam/templates/tools/importexport.php
+++ b/lam/templates/tools/importexport.php
@@ -12,6 +12,12 @@ use \htmlOutputText;
use \htmlJavaScript;
use \LAMException;
use \htmlLink;
+use \htmlResponsiveInputCheckbox;
+use \htmlResponsiveSelect;
+use \htmlResponsiveInputField;
+use \htmlGroup;
+use \htmlInputField;
+use LAM\TYPES\TypeManager;
/*
@@ -109,6 +115,14 @@ include '../../lib/adminHeader.inc';
?>
+
@@ -145,7 +159,7 @@ function printImportTabContent(&$tabindex) {
$container->addVerticalSpacer('1rem');
$container->add(new htmlResponsiveInputFileUpload('file', _('File'), '750'), 12);
$container->add(new htmlResponsiveInputTextarea('text', '', '60', '20', _('LDIF data'), '750'), 12);
- $container->add(new \htmlResponsiveInputCheckbox('noStop', false, _('Don\'t stop on errors')), 12);
+ $container->add(new htmlResponsiveInputCheckbox('noStop', false, _('Don\'t stop on errors')), 12);
$container->addVerticalSpacer('3rem');
$button = new htmlButton('submitImport', _('Submit'));
@@ -229,4 +243,82 @@ function checkImportData() {
$_SESSION[Importer::SESSION_KEY_STOP_ON_ERROR] = (!isset($_POST['noStop']) || ($_POST['noStop'] != 'on'));
}
+/**
+ * Prints the content area for the export tab.
+ *
+ * @param int $tabindex tabindex
+ */
+function printExportTabContent(&$tabindex) {
+ echo "\n");
+}
+
+/**
+ * Returns the default base DN.
+ *
+ * @return string base DN
+ */
+function getDefaultBaseDn() {
+ $typeManager = new TypeManager();
+ $baseDn = '';
+ foreach ($typeManager->getConfiguredTypes() as $type) {
+ $suffix = $type->getSuffix();
+ if (empty($baseDn) || (!empty($suffix) && (strlen($suffix) < strlen($baseDn)))) {
+ $baseDn = $suffix;
+ }
+ }
+ $treeSuffix = $_SESSION['config']->get_Suffix('tree');
+ if (empty($baseDn) || (!empty($treeSuffix) && (strlen($treeSuffix) < strlen($baseDn)))) {
+ $baseDn = $treeSuffix;
+ }
+ return $baseDn;
+}
+
include '../../lib/adminFooter.inc';