use list suffix as default

This commit is contained in:
Roland Gruber 2007-11-06 17:42:37 +00:00
parent db6567a093
commit 1af6bf4315
2 changed files with 6 additions and 3 deletions

View File

@ -150,7 +150,10 @@ class lamList {
else {
// buttons
$this->listPrintButtons(true);
echo ("<hr>\n");
echo ("<hr style=\"background-color: #999999;\">\n");
// navigation bar
$this->listDrawNavigationBar(sizeof($filteredEntries));
echo ("<br>\n");
// account table head
$this->listPrintTableHeader();
echo "</table><br>\n";
@ -469,7 +472,7 @@ class lamList {
if (isset($_POST['new']) || isset($_POST['del']) || isset($_POST['pdf']) || isset($_POST['pdf_all'])){
// add new account
if (isset($_POST['new'])){
metaRefresh("../account/edit.php?type=" . $this->type);
metaRefresh("../account/edit.php?type=" . $this->type . "&amp;suffix=" . $this->suffix);
exit;
}
// delete account(s)

View File

@ -841,7 +841,7 @@ class accountContainer {
if ($this->current_page==0) {
if ($this->subpage=='attributes') {
// change dn
if (isset($_POST['suffix']) && ($_POST['suffix'] != '')) $this->dn = $_POST['suffix'];
if (isset($_REQUEST['suffix']) && ($_REQUEST['suffix'] != '')) $this->dn = $_REQUEST['suffix'];
// change RDN
if (isset($_POST['rdn'])) $this->rdn = $_POST['rdn'];