From e3e7cf27dd08c22d18b0d115e70954bd285402b0 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 31 Aug 2010 17:35:36 +0000 Subject: [PATCH] minor style update --- lam/lib/lists.inc | 55 +++++++++++++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 21 deletions(-) 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 ''; + ?> + + +