diff --git a/lam/lib/lists.inc b/lam/lib/lists.inc index 28defa76..d2cdb3e0 100644 --- a/lam/lib/lists.inc +++ b/lam/lib/lists.inc @@ -342,7 +342,7 @@ class lamList { printHelpLink(getHelp('', '250'), '250'); echo "\n"; echo ""; - echo ""; + echo ""; echo "\n"; // print input boxes for filters for ($k = 0; $k < sizeof ($this->descArray); $k++) { @@ -386,9 +386,7 @@ class lamList { " onDblClick=\"top.location.href='../account/edit.php?type=" . $this->type . "&DN=" . rawurlencode($info[$i]['dn']) . "'\">\n"); echo " type . "')\"" . " type=\"checkbox\" name=\"" . $rowID . "\">\n"; - echo " "; - $this->listPrintToolLinks($info[$i], $rowID); - echo "\n"; + $this->listPrintToolLinks($info[$i], $rowID); for ($k = 0; $k < sizeof($this->attrArray); $k++) { echo (""); $attrName = strtolower($this->attrArray[$k]); @@ -415,26 +413,36 @@ class lamList { * @param String $id account ID */ private function listPrintToolLinks($account, $id) { + $output = ''; + $toolCount = 0; // edit image - echo "type . "&DN='" . rawurlencode($account['dn']) . "'\">"; - echo "\"""; - echo "\n "; + $output .= "type . "&DN='" . rawurlencode($account['dn']) . "'\">"; + $output .= "\"""; + $output .= "\n "; + $toolCount++; // delete image if (checkIfWriteAccessIsAllowed()) { - echo "type . "&DN='" . rawurlencode($account['dn']) . "'\">"; - echo "\"""; - echo "\n "; + $output .= "type . "&DN='" . rawurlencode($account['dn']) . "'\">"; + $output .= "\"""; + $output .= "\n "; + $toolCount++; } // pdf image $pdfButtonStyle = "background-image: url(../../graphics/pdf.png);background-position: -1px -1px;background-repeat: no-repeat;width:20px;height:20px;background-color:transparent;border-style:none;"; - echo "\n "; + $output .= "\n "; + $toolCount++; // additional tools $tools = $this->getAdditionalTools(); for ($i = 0; $i < sizeof($tools); $i++) { - echo "getLinkTarget() . "?type=" . $this->type . "&DN='" . rawurlencode($account['dn']) . "'\">"; - echo "getImage() . "\" alt=\"" . $tools[$i]->getName() . "\" title=\"" . $tools[$i]->getName() . "\">"; - echo "\n "; + $output .= "getLinkTarget() . "?type=" . $this->type . "&DN='" . rawurlencode($account['dn']) . "'\">"; + $output .= "getImage() . "\" alt=\"" . $tools[$i]->getName() . "\" title=\"" . $tools[$i]->getName() . "\">"; + $output .= "\n "; + $toolCount++; } + $width = ($toolCount * 20) + 20; + echo ""; + echo $output; + echo "\n"; } /** @@ -703,13 +711,18 @@ class lamList { * Prints the HTML footer. */ protected function listPrintFooter() { - echo ("\n"); - echo ''; + ?> + + +