minor style update

This commit is contained in:
Roland Gruber 2010-08-31 17:35:36 +00:00
parent 9dd317a467
commit e3e7cf27dd
1 changed files with 34 additions and 21 deletions

View File

@ -342,7 +342,7 @@ class lamList {
printHelpLink(getHelp('', '250'), '250'); printHelpLink(getHelp('', '250'), '250');
echo "</td>\n"; echo "</td>\n";
echo "<td>"; echo "<td>";
echo "<input type=\"submit\" name=\"apply_filter\" value=\"" . _("Filter") . "\">"; echo "<button class=\"smallPadding\" id=\"filterButton\" name=\"apply_filter\">" . _("Filter") . "</button>";
echo "</td>\n"; echo "</td>\n";
// print input boxes for filters // print input boxes for filters
for ($k = 0; $k < sizeof ($this->descArray); $k++) { for ($k = 0; $k < sizeof ($this->descArray); $k++) {
@ -386,9 +386,7 @@ class lamList {
" onDblClick=\"top.location.href='../account/edit.php?type=" . $this->type . "&amp;DN=" . rawurlencode($info[$i]['dn']) . "'\">\n"); " onDblClick=\"top.location.href='../account/edit.php?type=" . $this->type . "&amp;DN=" . rawurlencode($info[$i]['dn']) . "'\">\n");
echo " <td align=\"center\"><input class=\"accountBoxUnchecked\" onClick=\"list_click(this, '" . $rowID . "', '" . $this->type . "')\"" . echo " <td align=\"center\"><input class=\"accountBoxUnchecked\" onClick=\"list_click(this, '" . $rowID . "', '" . $this->type . "')\"" .
" type=\"checkbox\" name=\"" . $rowID . "\"></td>\n"; " type=\"checkbox\" name=\"" . $rowID . "\"></td>\n";
echo " <td align='center' style=\"white-space: nowrap;\">"; $this->listPrintToolLinks($info[$i], $rowID);
$this->listPrintToolLinks($info[$i], $rowID);
echo "</td>\n";
for ($k = 0; $k < sizeof($this->attrArray); $k++) { for ($k = 0; $k < sizeof($this->attrArray); $k++) {
echo ("<td>"); echo ("<td>");
$attrName = strtolower($this->attrArray[$k]); $attrName = strtolower($this->attrArray[$k]);
@ -415,26 +413,36 @@ class lamList {
* @param String $id account ID * @param String $id account ID
*/ */
private function listPrintToolLinks($account, $id) { private function listPrintToolLinks($account, $id) {
$output = '';
$toolCount = 0;
// edit image // edit image
echo "<a href=\"../account/edit.php?type=" . $this->type . "&amp;DN='" . rawurlencode($account['dn']) . "'\">"; $output .= "<a href=\"../account/edit.php?type=" . $this->type . "&amp;DN='" . rawurlencode($account['dn']) . "'\">";
echo "<img src=\"../../graphics/edit.png\" alt=\"" . _("Edit") . "\" title=\"" . _("Edit") . "\">"; $output .= "<img src=\"../../graphics/edit.png\" alt=\"" . _("Edit") . "\" title=\"" . _("Edit") . "\">";
echo "</a>\n "; $output .= "</a>\n ";
$toolCount++;
// delete image // delete image
if (checkIfWriteAccessIsAllowed()) { if (checkIfWriteAccessIsAllowed()) {
echo "<a href=\"deletelink.php?type=" . $this->type . "&amp;DN='" . rawurlencode($account['dn']) . "'\">"; $output .= "<a href=\"deletelink.php?type=" . $this->type . "&amp;DN='" . rawurlencode($account['dn']) . "'\">";
echo "<img src=\"../../graphics/delete.png\" alt=\"" . _("Delete") . "\" title=\"" . _("Delete") . "\">"; $output .= "<img src=\"../../graphics/delete.png\" alt=\"" . _("Delete") . "\" title=\"" . _("Delete") . "\">";
echo "</a>\n "; $output .= "</a>\n ";
$toolCount++;
} }
// pdf image // 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;"; $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 "<input type=\"submit\" style=\"$pdfButtonStyle\" name=\"createPDF_" . $id . "\" value=\" \" title=\"" . _('Create PDF file') . "\">\n "; $output .= "<input type=\"submit\" style=\"$pdfButtonStyle\" name=\"createPDF_" . $id . "\" value=\" \" title=\"" . _('Create PDF file') . "\">\n ";
$toolCount++;
// additional tools // additional tools
$tools = $this->getAdditionalTools(); $tools = $this->getAdditionalTools();
for ($i = 0; $i < sizeof($tools); $i++) { for ($i = 0; $i < sizeof($tools); $i++) {
echo "<a href=\"" . $tools[$i]->getLinkTarget() . "?type=" . $this->type . "&amp;DN='" . rawurlencode($account['dn']) . "'\">"; $output .= "<a href=\"" . $tools[$i]->getLinkTarget() . "?type=" . $this->type . "&amp;DN='" . rawurlencode($account['dn']) . "'\">";
echo "<img src=\"../../graphics/" . $tools[$i]->getImage() . "\" alt=\"" . $tools[$i]->getName() . "\" title=\"" . $tools[$i]->getName() . "\">"; $output .= "<img src=\"../../graphics/" . $tools[$i]->getImage() . "\" alt=\"" . $tools[$i]->getName() . "\" title=\"" . $tools[$i]->getName() . "\">";
echo "</a>\n "; $output .= "</a>\n ";
$toolCount++;
} }
$width = ($toolCount * 20) + 20;
echo "<td align='center' style=\"white-space: nowrap; width: ${width}px\">";
echo $output;
echo "</td>\n";
} }
/** /**
@ -703,13 +711,18 @@ class lamList {
* Prints the HTML footer. * Prints the HTML footer.
*/ */
protected function listPrintFooter() { protected function listPrintFooter() {
echo ("</form></div></div>\n"); ?>
echo '<script type="text/javascript">'; </form></div></div>
echo "jQuery('#tab_$this->type').addClass('ui-tabs-selected');"; <script type="text/javascript">
echo "jQuery('#tab_$this->type').addClass('ui-state-active');"; jQuery(document).ready(function() {
echo "window.onload = listResizeITabContentDiv;"; jQuery('#tab_<?php echo $this->type; ?>').addClass('ui-tabs-selected');
echo "window.onresize = listResizeITabContentDiv;"; jQuery('#tab_<?php echo $this->type; ?>').addClass('ui-state-active');
echo '</script>'; window.onload = listResizeITabContentDiv;
window.onresize = listResizeITabContentDiv;
jQuery('#filterButton').button();
});
</script>
<?php
include '../main_footer.php'; include '../main_footer.php';
} }