diff --git a/lam/lib/lists.inc b/lam/lib/lists.inc index 093c8240..4836222b 100644 --- a/lam/lib/lists.inc +++ b/lam/lib/lists.inc @@ -409,21 +409,22 @@ class lamList { else $table_end = ($this->page * $this->maxPageEntries); // print account list for ($i = $table_begin; $i < $table_end; $i++) { - echo("type . "list\" onMouseOver=\"list_over(this, '" . $info[$i]['LAM_ID'] . "', '" . $this->type . "')\"\n" . - " onMouseOut=\"list_out(this, '" . $info[$i]['LAM_ID'] . "', '" . $this->type . "')\"\n" . - " onClick=\"list_click(this, '" . $info[$i]['LAM_ID'] . "', '" . $this->type . "')\"\n" . + $rowID = base64_encode($info[$i]['dn']); + echo("type . "list\" onMouseOver=\"list_over(this, '" . $rowID . "', '" . $this->type . "')\"\n" . + " onMouseOut=\"list_out(this, '" . $rowID . "', '" . $this->type . "')\"\n" . + " onClick=\"list_click(this, '" . $rowID . "', '" . $this->type . "')\"\n" . " onDblClick=\"parent.frames[1].location.href='../account/edit.php?type=" . $this->type . "&DN=" . $info[$i]['dn'] . "'\">\n"); if (isset($_GET['selectall'])) { - echo " type . "')\"" . - " type=\"checkbox\" checked name=\"" . $info[$i]['LAM_ID'] . "\">\n"; + echo " type . "')\"" . + " type=\"checkbox\" checked name=\"" . $rowID . "\">\n"; } else { - echo " type . "')\"" . - " type=\"checkbox\" name=\"" . $info[$i]['LAM_ID'] . "\">\n"; + echo " type . "')\"" . + " type=\"checkbox\" name=\"" . $rowID . "\">\n"; } - echo " "; - $this->listPrintToolLinks($info[$i], $info[$i]['LAM_ID']); - echo "\n"; + echo " "; + $this->listPrintToolLinks($info[$i], $rowID); + echo "\n"; for ($k = 0; $k < sizeof($this->attrArray); $k++) { echo (""); $attrName = strtolower($this->attrArray[$k]); @@ -550,7 +551,7 @@ class lamList { // create for clicked account if ($option == 'DN') { $_SESSION["accountPDF"] = new accountContainer($this->type, "accountPDF"); - $_SESSION["accountPDF"]->load_account($this->entries[$_POST['clickedAccount']]['dn']); + $_SESSION["accountPDF"]->load_account(base64_decode($_POST['clickedAccount'])); createModulePDF(array($_SESSION["accountPDF"]),$pdfStruct); unset($_SESSION["accountPDF"]); exit; @@ -562,9 +563,8 @@ class lamList { $list = array(); // load accounts from LDAP for ($i = 0; $i < sizeof($accounts); $i++) { - if (!isset($this->entries[$accounts[$i]]['dn'])) continue; $_SESSION["accountPDF-$i"] = new accountContainer($this->type, "accountPDF-$i"); - $_SESSION["accountPDF-$i"]->load_account($this->entries[$accounts[$i]]['dn']); + $_SESSION["accountPDF-$i"]->load_account(base64_decode($accounts[$i])); $list[$i] = $_SESSION["accountPDF-$i"]; } if (sizeof($list) > 0) { @@ -623,10 +623,10 @@ class lamList { $this->listPrintHeader(); - echo '

' . _('Create PDF file') . "

\n"; + echo "
\n"; echo "
type . "&norefresh=true\" method=\"post\">\n"; - echo '

'; + echo '
' . _('Create PDF file') . '
'; echo ''; echo ''; echo ''; echo '
'; @@ -647,7 +647,7 @@ class lamList { echo ''; echo ''; @@ -838,7 +838,6 @@ class lamList { // save position in original $info $infoCount = sizeof($info); for ($i = 0; $i < $infoCount; $i++) { - $info[$i]['LAM_ID'] = $i; if (isset($info[$i]['count'])) unset($info[$i]['count']); } // save results