diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index e1bc9229..c52e126e 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -844,10 +844,10 @@ class accountContainer { if (isset($_REQUEST['accountContainerSuffix']) && ($_REQUEST['accountContainerSuffix'] != '')) { $this->dn = $_REQUEST['accountContainerSuffix']; } + // change RDN + if (isset($_POST['accountContainerRDN'])) $this->rdn = $_POST['accountContainerRDN']; if ($this->current_page==0) { if ($this->subpage=='attributes') { - // change RDN - if (isset($_POST['rdn'])) $this->rdn = $_POST['rdn']; // save account if (isset($_POST['create'])) { @@ -1032,6 +1032,12 @@ class accountContainer { $x++; } echo " \n"; + // content header + echo "type . "list\">\n"; + echo "\n"; + $this->printContentHeader(); + echo "\n"; + echo "\n"; echo "type . "list\">\n"; // left controls echo "\n"; @@ -1064,7 +1070,6 @@ class accountContainer { } // content area echo ""; - $this->printContentHeader(); // display html-code from modules $return = array(); if ($this->current_page == 0) { @@ -1095,20 +1100,6 @@ class accountContainer { ))); } else { - // RDN selection - $rdnlist = getRDNAttributes($this->type); - $rdnSelected = array(); - if ($this->rdn != '') { - $rdnSelected[] = $this->rdn; - } - else { - $rdnSelected[] = $rdnlist[0]; - } - $return[] = array( - 0 => array('kind' => 'text', 'text' => _('RDN identifier')), - 1 => array('kind' => 'select', 'name' => 'rdn', 'options' => $rdnlist, 'options_selected' => $rdnSelected, 'noSorting' => true), - 2 => array ('kind' => 'help', 'value' => '301')); - $return[] = array(0 => array('kind' => 'text', 'text' => ' ')); // empty line if ($this->dn_orig!='') $text = _('Modify account'); else $text = _('Create account'); @@ -1138,7 +1129,7 @@ class accountContainer { echo "\n"; // display DN if (isset($this->dn_orig) && ($this->dn_orig != '')) { - echo _("DN") . ": " . htmlspecialchars($this->dn_orig); + echo _("DN") . ": " . htmlspecialchars($this->dn_orig) . ""; } echo "\n"; echo "\n"; @@ -1157,6 +1148,22 @@ class accountContainer { echo "\n";; } echo "\n"; + echo '    '; + // RDN selection + $rdnlist = getRDNAttributes($this->type); + echo _('RDN identifier') . ": "; + echo "\n"; + echo ""; + echo "\"""; + echo "\n"; echo "\n"; echo "\n"; // separator line