use new meta HTML classes

This commit is contained in:
Roland Gruber 2010-10-16 16:56:29 +00:00
parent 1a0175249f
commit ad239cc7bd
1 changed files with 11 additions and 18 deletions

View File

@ -56,10 +56,11 @@ foreach ($toSort as $key => $value) {
$tools[] = new $key(); $tools[] = new $key();
} }
echo "<p>&nbsp;</p>\n"; echo "<div class=\"userlist-bright smallPaddingContent\">\n";
// print tools table // print tools table
echo "<table class=\"userlist\" rules=\"none\">\n"; $container = new htmlTable();
$container->addElement(new htmlSubTitle(_('Tools')), true);
for ($i = 0; $i < sizeof($tools); $i++) { for ($i = 0; $i < sizeof($tools); $i++) {
// check access level // check access level
@ -69,25 +70,17 @@ for ($i = 0; $i < sizeof($tools); $i++) {
if ($tools[$i]->getRequiresPasswordChangeRights() && !checkIfPasswordChangeIsAllowed()) { if ($tools[$i]->getRequiresPasswordChangeRights() && !checkIfPasswordChangeIsAllowed()) {
continue; continue;
} }
// print tool // add tool
echo "<tr class=\"userlist-bright\">\n"; $container->addElement(new htmlLink($tools[$i]->getName(), $tools[$i]->getLink(), '../graphics/' . $tools[$i]->getImageLink()));
echo "<td>&nbsp;&nbsp;&nbsp;</td>\n"; $container->addElement(new htmlSpacer('10px', null));
echo "<td><br>"; $container->addElement(new htmlOutputText($tools[$i]->getDescription()), true);
echo "<a href=\"" . $tools[$i]->getLink() . "\">"; $container->addElement(new htmlSpacer(null, '20px'), true);
echo "<img src=\"../graphics/" . $tools[$i]->getImageLink() . "\" alt=\"" . $tools[$i]->getName() . "\">";
echo " &nbsp;<b>" . $tools[$i]->getName() . "</b>";
echo "</a>\n";
echo "<br><br></td>\n";
echo "<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>\n";
echo "<td>";
echo $tools[$i]->getDescription();
echo "</td>\n";
echo "<td>&nbsp;&nbsp;&nbsp;</td>\n";
echo "</tr>\n";
} }
echo "</table>\n"; $tabindex = 1;
parseHtml(null, $container, array(), true, $tabindex, 'user');
echo "</div>";
include 'main_footer.php'; include 'main_footer.php';