diff --git a/lam/style/500_layout.css b/lam/style/500_layout.css
index d0b017ac..ae6bf901 100644
--- a/lam/style/500_layout.css
+++ b/lam/style/500_layout.css
@@ -147,6 +147,10 @@ tr.highlight {
padding: 0.1em 0.4em !important;
}
+.smallPaddingContent {
+ padding: 0.5em;
+}
+
/** subtitles */
div.subTitle {
margin: 20px 0px 15px 0px;
diff --git a/lam/templates/delete.php b/lam/templates/delete.php
index 47b02b4f..33e410cc 100644
--- a/lam/templates/delete.php
+++ b/lam/templates/delete.php
@@ -77,11 +77,9 @@ if (isset($_GET['type']) && isset($_SESSION['delete_dn'])) {
$_SESSION['account'] = new accountContainer($_GET['type'], 'account');
// Show HTML Page
include 'main_header.php';
+ echo "
";
echo "
\n";
echo "\n";
+ echo "
\n";
+ ?>
+
+ \n";
echo "\n";
+ ?>
+
+ server()));
+ return $errors;
}
// delete parent DN
$success = @ldap_delete($_SESSION['ldap']->server(), $dn);
diff --git a/lam/templates/ou_edit.php b/lam/templates/ou_edit.php
index cb2b26b2..3f85a976 100644
--- a/lam/templates/ou_edit.php
+++ b/lam/templates/ou_edit.php
@@ -49,7 +49,7 @@ $types = $_SESSION['config']->get_ActiveTypes();
// check if deletion was canceled
if (isset($_POST['abort'])) {
- display_main();
+ display_main(null, null);
exit;
}
@@ -102,16 +102,25 @@ if (isset($_POST['createOU']) || isset($_POST['deleteOU'])) {
if ($sr && $info['count'] == 0) {
// print header
include 'main_header.php';
- echo "
\n" .
- "" . _("Do you really want to delete this OU?") . " " . "\n" .
- "
\n
" . getAbstractDN($_POST['deleteableOU']) . "
\n" .
- "
\n" .
- "";
+ echo '';
+ echo "";
+ echo '
';
include 'main_footer.php';
exit();
}
@@ -132,15 +141,22 @@ display_main($message, $error);
function display_main($message, $error) {
// display main page
include 'main_header.php';
- echo "" . _("OU editor") . "
";
+ echo '';
+ echo ("
\n");
+ echo '
';
include 'main_footer.php';
}
diff --git a/lam/templates/serverInfo.php b/lam/templates/serverInfo.php
index c07ed054..aa42befc 100644
--- a/lam/templates/serverInfo.php
+++ b/lam/templates/serverInfo.php
@@ -85,46 +85,55 @@ if ($result) {
}
include 'main_header.php';
+echo '';
+$tabindex = 1;
+$container = new htmlTable();
-echo "
" . _("Server information") . "
\n";
+$container->addElement(new htmlSubTitle(_("Server information")), true);
-echo "
\n";
+$container->addElement(new htmlOutputText('' . _("Managed suffixes") . '', false));
+$container->addElement(new htmlSpacer('20px', null));
+$container->addElement(new htmlOutputText($namingContexts), true);
-echo "" . _("Managed suffixes") . " | ";
-echo "" . $namingContexts . " |
";
-
-echo "" . _("LDAP version") . " | ";
-echo "" . $supportedldapversion . " |
";
+$container->addElement(new htmlOutputText('' . _("LDAP version") . '', false));
+$container->addElement(new htmlSpacer('20px', null));
+$container->addElement(new htmlOutputText($supportedldapversion), true);
if ($configcontext != '') {
- echo "" . _("Config suffix") . " | ";
- echo "" . $configcontext . " |
";
+ $container->addElement(new htmlOutputText('' . _("Config suffix") . '', false));
+ $container->addElement(new htmlSpacer('20px', null));
+ $container->addElement(new htmlOutputText($configcontext), true);
}
-echo "" . _("Schema suffix") . " | ";
-echo "" . $subschemasubentry . " |
";
+$container->addElement(new htmlOutputText('' . _("Schema suffix") . '', false));
+$container->addElement(new htmlSpacer('20px', null));
+$container->addElement(new htmlOutputText($subschemasubentry), true);
if ($dynamicSubtrees != '') {
- echo "" . _("Dynamic subtrees") . " | ";
- echo "" . $dynamicSubtrees . " |
";
+ $container->addElement(new htmlOutputText('' . _("Dynamic subtrees") . '', false));
+ $container->addElement(new htmlSpacer('20px', null));
+ $container->addElement(new htmlOutputText($dynamicSubtrees), true);
}
-echo "" . _("SASL mechanisms") . " | ";
-echo "" . $supportedsaslmechanisms . " |
";
+$container->addElement(new htmlOutputText('' . _("SASL mechanisms") . '', false));
+$container->addElement(new htmlSpacer('20px', null));
+$container->addElement(new htmlOutputText($supportedsaslmechanisms), true);
if ($vendorname != '') {
- echo "" . _("Vendor name") . " | ";
- echo "" . $vendorname . " |
";
+ $container->addElement(new htmlOutputText('' . _("Vendor name") . '', false));
+ $container->addElement(new htmlSpacer('20px', null));
+ $container->addElement(new htmlOutputText($vendorname), true);
}
if ($vendorversion != '') {
- echo "" . _("Vendor version") . " | ";
- echo "" . $vendorversion . " |
";
+ $container->addElement(new htmlOutputText('' . _("Vendor version") . '', false));
+ $container->addElement(new htmlSpacer('20px', null));
+ $container->addElement(new htmlOutputText($vendorversion), true);
}
-echo "
\n";
-
+parseHtml(null, $container, array(), true, $tabindex, 'user');
+echo '
';
include 'main_footer.php';
?>