use button instead of input for module tabs

This commit is contained in:
Roland Gruber 2010-10-09 15:14:55 +00:00
parent e63b05a659
commit f33bc2f3cb
1 changed files with 9 additions and 11 deletions

View File

@ -1538,18 +1538,16 @@ class accountContainer {
} }
// print button // print button
echo '<li class="ui-state-default ui-corner-top' . $activatedClass . '">'; echo '<li class="ui-state-default ui-corner-top' . $activatedClass . '">';
$buttonImageStyle = ''; $buttonStyle = 'background-color:transparent;;border:0px solid;';
$buttonSpace = ''; echo "<button style=\"" . $buttonStyle . "\" name=\"form_main_".$this->order[$i]."\"";
if ($buttonImage != null) { echo " tabindex=$x";
$buttonImageStyle = 'background-image: url(../../graphics/' . $buttonImage . ');background-position: 2px center;background-repeat: no-repeat;height:32px;margin: 5px;';
$buttonSpace = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
}
$buttonStyle = $buttonImageStyle . 'background-color:transparent;;border:0px solid;';
echo "<input style=\"" . $buttonStyle . "\" name=\"form_main_".$this->order[$i]."\" type=\"submit\" value=\"";
echo $buttonSpace . $this->module[$this->order[$i]]->get_alias();
echo "\" tabindex=$x";
if ($buttonStatus == 'disabled') echo " disabled"; if ($buttonStatus == 'disabled') echo " disabled";
echo ">\n"; echo ">";
if ($buttonImage != null) {
echo "<img class=\"align-middle\" style=\"padding: 3px;\" alt=\"\" src=\"../../graphics/$buttonImage\">&nbsp;";
}
echo $this->module[$this->order[$i]]->get_alias();
echo "&nbsp;</button>\n";
echo "</li>\n"; echo "</li>\n";
$x++; $x++;
} }